最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

artificial intelligence - PhidataAgno - WebsiteKnowledgeBase does not loading website content into DB - Stack Overflow

programmeradmin7浏览0评论

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?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论