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.text import DocxKnowledgeBase from phi.vectordb.pgvector import PgVector from resources import vector_db knowledge_base = DocxKnowledgeBase( path="data/docs", # Table name: ai.docx_documents vector_db=PgVector( table_name="docx_documents", db_url=vector_db.get_db_connection_local(), ), )
path
Union[str, Path]
formats
List[str]
[".doc", ".docx"]
reader
DocxReader
DocxReader()
Documents
DocxKnowledgeBase
AgentKnowledge
Optional[Reader]
None
vector_db
Optional[VectorDb]
num_documents
int
2
optimize_on
Optional[int]
1000
driver
str
"knowledge"
Was this page helpful?