Skip to main content
PDFUrlKnowledgeBaseURL 读取 PDF,将其转换为向量嵌入,并加载到向量数据库中。

用法

我们在示例中使用了本地 PgVector 数据库。确保它正在运行
knowledge_base.py
然后将 knowledge_base 与 Agent 一起使用:
agent.py

PDFUrlKnowledgeBase 也支持异步加载。

我们在示例中使用了本地 Qdrant 数据库。确保它正在运行
async_knowledge_base.py

参数

PDFUrlKnowledgeBaseAgentKnowledge 类的一个子类,拥有相同的参数访问权限。

开发者资源