PGVectorStore
PGVectorStore
is an implementation of a LangChain vectorstore using postgres
as the backend.
This notebook goes over how to use the PGVectorStore
API.
The code lives in an integration package called: langchain-postgres.
Setup
This package requires a PostgreSQL database with the pgvector
extension.
You can run the following command to spin up a container for a pgvector
enabled Postgres instance:
docker run --name pgvector-container -e POSTGRES_USER=langchain -e POSTGRES_PASSWORD=langchain -e POSTGRES_DB=langchain -p 6024:5432 -d pgvector/pgvector:pg16