AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Plugin] astrbot_plugin_knowledge_base

Open lxfight opened this issue 1 year ago • 2 comments

插件仓库

https://github.com/lxfight/astrbot_plugin_knowledge_base

描述

插件名: astrbot_plugin_knowledge_base 插件作者: lxfight 插件简介: astrbot_plugin_knowledge_base 是一个为 AstrBot 聊天机器人框架量身定制的强大知识库插件。 它允许您的机器人连接到自定义的知识源,通过先进的检索增强生成 (RAG) 技术, 让机器人能够基于准确、具体的私有信息进行对话,而不仅仅依赖预训练模型的通用知识。 支持的消息平台:QQ,微信,飞书等 标签:RAG,知识库 社交链接:(可选, 将会在插件市场作者名称上作为可点击的链接)

Code of Conduct

  • [x] 我已阅读并同意遵守该项目的 行为准则。

lxfight avatar May 19 '25 13:05 lxfight

其实框架本身已经提供了插件数据存储路径(想起来文档忘写了...): 使用这个函数获得数据存储目录:

Image

你可以from astrbot.api.star import StarTools导入这个模块, 使用StarTools.get_data_dir("你的插件名")来获得数据存储的路径

anka-afk avatar May 19 '25 13:05 anka-afk

好的,我会修改代码,使用新的文件路径

lxfight avatar May 19 '25 13:05 lxfight