PGVector is a vector similarity search package for Postgres
data base.
In the notebook, we’ll demo the SelfQueryRetriever
wrapped around a PGVector
vector store.
lark
installed (pip install lark
). We also need the “ package.
OpenAIEmbeddings
so we have to get the OpenAI API Key.
k
: the number of documents to fetch.
We can do this by passing enable_limit=True
to the constructor.