Postgres Embedding
pg_embedding is an open-source package for vector similarity search using
Postgres
and theHierarchical Navigable Small Worlds
algorithm for approximate nearest neighbor search.
Installation and Setupβ
We need to install several python packages.
pip install openai
pip install psycopg2-binary
pip install tiktoken
Vector Storeβ
See a usage example.
from langchain.vectorstores import PGEmbedding