This project provides a Dockerfile to build a custom PostgreSQL-based image with extensions for vector search. You can customize the build by adjusting the variables in the Makefile.
git clone <repository_url>
cd codecad-rag/retrieval/docker
make build
To customize the build, you can modify the following variables in the Makefile:
0.3.14 15 16 17.pgvector extension. Default is 0.8.0.pg_search extension. Default is 0.15.8.pgvectorscale extension. Default is 0.5.1.For example, to build with PostgreSQL 15 and a custom build version:
# Edit the Makefile and set:
BUILD_VERSION = 1.0
Makefile, you can build the Docker image with:make build
.deb files:make clean
make prune
make push
The following variables in the Makefile can be tuned to adjust the build process:
0.3.pg_search extension to download and install. Default is 0.15.8.pgvectorscale extension to download and install. Default is 0.5.1.14 15 16 17.PGVECTOR_BASE_VERSION and PostgreSQL version to form the base image tag.By adjusting these variables, you can customize the Docker image to use different versions of PostgreSQL or the extensions.
For a detailed history of changes, see the CHANGELOG.