Learn how to use a LlamaIndex retriever or vector store as a knowledge base.
Parameter | Type | Default | Description |
---|---|---|---|
retriever | BaseRetriever | None | LlamaIndex retriever used for querying the knowledge base. |
loader | Optional[Callable] | None | Optional callable function to load documents into the knowledge base. |
LlamaIndexKnowledgeBase
is a subclass of the AgentKnowledge class and has access to the same params.