I have created a knowledge base using agno (previously known as phidata) framework -
I tried running it but in console it shows below messages
(.venv) SYSTEM-MAC TestApp % python knowledge_base.py
INFO Loading knowledge base
INFO Loaded 0 documents to knowledge base
(.venv) SYSTEM-MAC TestApp %
Python code
from agno.knowledge.website import WebsiteKnowledgeBase
from agno.vectordb.pgvector import PgVector
airtel_knowledge_base = WebsiteKnowledgeBase(
urls=[";],
max_depth=3,
max_links=10,
debug_mode=True,
vector_db=PgVector(
table_name="website_documents",
db_url="postgresql+psycopg2://{user}:{password}@{host}:5432/{db}",
),
)
airtel_knowledge_base.load()
There is no issue in DB connection and that's how I have created 'website_documents' table
CREATE TABLE website_documents(
id BIGINT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
content TEXT,
author_id BIGINT,
embedding VECTOR(1538)
);
Any idea, how can I make it work?