Skip to main content

Setup

Example

agent_with_knowledge.py
LangChainVectorDb wraps a vectorstore you already manage with LangChain. Pass a retriever with knowledge_retriever, or pass the vectorstore itself with vectorstore and Agno creates a retriever on the first search.
LangChainVectorDb is search-only. insert() and upsert() raise NotImplementedError. Load documents through LangChain, then wire the retriever to Agno. Filter expressions are not supported. Dictionary filters apply only when Agno builds the retriever from vectorstore; a retriever passed with knowledge_retriever ignores them.

LangChainVectorDb Params