Skip to content

Commit

Permalink
Add pgvector (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianstanton authored Jul 14, 2023
1 parent 1a462b5 commit cd6769e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contrib/pgvector/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

# Clone repository
RUN git clone https://github.com/pgvector/pgvector.git

ARG RELEASE=v0.4.4

# Build extension
RUN cd pgvector && \
git fetch origin ${RELEASE} && \
git checkout ${RELEASE} && \
make
20 changes: 20 additions & 0 deletions contrib/pgvector/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[extension]
name = "pgvector"
version = "0.4.4"
repository = "https://github.com/pgvector/pgvector"
license = "PostgreSQL"
description = "Open-source vector similarity search for Postgres"
homepage = "https://github.com/pgvector/pgvector"
documentation = "https://github.com/pgvector/pgvector"
categories = ["machine_learning"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgvector && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""

0 comments on commit cd6769e

Please sign in to comment.