Learn how to use local JSON files in your knowledge base.
knowledge_base
with an Agent
:
Parameter | Type | Default | Description |
---|---|---|---|
path | Union[str, Path] | - | Path to JSON files.Can point to a single JSON file or a directory of JSON files. |
reader | JSONReader | JSONReader() | A JSONReader that converts the JSON files into Documents for the vector database. |
JSONKnowledgeBase
is a subclass of the AgentKnowledge class and has access to the same params.