Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
from phi.knowledge.json import JSONKnowledgeBase from phi.vectordb.pgvector import PgVector from resources import vector_db knowledge_base = JSONKnowledgeBase( path="data/json", # Table name: llm.json_documents vector_db=PgVector( table_name="json_documents", db_url=vector_db.get_db_connection_local(), ), )
path
Union[str, Path]
JSON
reader
JSONReader
JSONReader()
Documents
JSONKnowledgeBase
AgentKnowledge
Optional[Reader]
None
vector_db
Optional[VectorDb]
num_documents
int
2
optimize_on
Optional[int]
1000
driver
str
"knowledge"
Was this page helpful?