Knowledge
LangChain Knowledge Base
The LangchainKnowledgeBase allows us to use a LangChain retriever or vector store as a knowledge base.
Usage
langchain_kb.py
Params
Parameter | Type | Default | Description |
---|---|---|---|
loader | Optional[Callable] | None | LangChain loader. |
vectorstore | Optional[Any] | None | LangChain vector store used to create a retriever. |
search_kwargs | Optional[dict] | None | Search kwargs when creating a retriever using the langchain vector store. |
retriever | Optional[Any] | None | LangChain retriever. |
LangChainKnowledgeBase
is a subclass of the AgentKnowledge class and has access to the same params.
Developer Resources
- View Cookbook