-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(postgres): support loading tables with
pgvector
column types (#…
- Loading branch information
Showing
4 changed files
with
77 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
FROM postgis/postgis:15-3.3-alpine AS pgvector-builder | ||
RUN apk add --no-cache git | ||
RUN apk add --no-cache build-base | ||
RUN apk add --no-cache clang15 | ||
RUN apk add --no-cache llvm15-dev llvm15 | ||
WORKDIR /tmp | ||
RUN git clone --branch v0.6.2 https://github.com/pgvector/pgvector.git | ||
WORKDIR /tmp/pgvector | ||
RUN make | ||
RUN make install | ||
|
||
FROM postgis/postgis:15-3.3-alpine | ||
RUN apk add --no-cache postgresql15-plpython3 | ||
COPY --from=pgvector-builder /usr/local/lib/postgresql/bitcode/vector.index.bc /usr/local/lib/postgresql/bitcode/vector.index.bc | ||
COPY --from=pgvector-builder /usr/local/lib/postgresql/vector.so /usr/local/lib/postgresql/vector.so | ||
COPY --from=pgvector-builder /usr/local/share/postgresql/extension /usr/local/share/postgresql/extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters