morphik-core/postgres.dockerfile
LukeZekes 5d76521059
Change in max_sim function for newer postgresql versions (#54)
* add filename option for text documents

* fix: duplicated env variables

* Include chunk score in query response

* don't initialize colpali store if one is not provided

* Add score to ChunkSource

* Add huggingface cache volume to avoid redownloads

* Replace <~> in maximum_similarity calculation

* Add dev_mode setup to default configuration

* Dump with databridge documents (no pdfs)

* Add dev_mode setup to default configuration

* Comment docker instructions for api host

* Use empty dump file
2025-03-18 14:41:39 -04:00

25 lines
526 B
Docker

FROM postgres:15-alpine
# Install build dependencies
RUN apk add --no-cache \
git \
build-base \
clang \
llvm \
postgresql-dev
# Clone and build pgvector
RUN git clone --branch v0.5.1 https://github.com/pgvector/pgvector.git \
&& cd pgvector \
&& make OPTFLAGS="" \
&& make install
# Cleanup
RUN apk del git build-base clang llvm postgresql-dev \
&& rm -rf /pgvector
# Copy initialization scripts
COPY init.sql /docker-entrypoint-initdb.d/
# Copy data dump
COPY dump.sql /tmp/dump.sql