from phi.knowledge.document import DocumentKnowledgeBase
from phi.vectordb.pgvector import PgVector
knowledge_base = DocumentKnowledgeBase(
path="data/docs",
# Table name: ai.documents
vector_db=PgVector(
table_name="documents",
db_url="postgresql+psycopg://ai:ai@localhost:5532/ai",
),
)