mirror of
https://github.com/james-m-jordan/morphik-core.git
synced 2025-05-09 19:32:38 +00:00

* 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
25 lines
526 B
Docker
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 |