Milvus is a database that stores, indexes, and manages massive embedding vectors generated by deep neural networks and other machine learning (ML) models.In the walkthrough, we’ll demo the
SelfQueryRetriever
with a Milvus
vector store.
uri
and token
as well.
NOTE: The self-query retriever requires you to have lark
installed (pip install lark
). We also need the langchain_milvus
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.