mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-07-22 17:35:24 -04:00
pgvector store with OpenAI embeddings
Start Postgres:
docker-compose up -d
postgres.Dockerfile extends the official Postgres image and installs the pgvector extension.
create_extension.sql enables the pgvector extension and should run automatically when the container starts for the
first time.
Run the example:
export OPENAI_API_KEY=<your key>
go run pgvector_vectorstore_example.go