Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat-cnb

基于 CNB 知识库的 AstrBot 插件。用户发送 /cnb 问题 指令或在指令中指定知识库(例如 /cnb user/repo 问题/cnb repo:user/repo 问题)后,插件会:

  1. 调用 CNB 知识库查询接口获取相关内容;
  2. 构造 RAG 提示词并调用 AI 对话接口生成回答;
  3. 返回包含参考资料链接的回复。

配置

_conf_schema.json 中设置 token,以及可选的 repo(未设置时默认为 cnb/docs),用于访问 CNB API。

使用

发送 /cnb 你的问题 即可使用默认知识库得到回答;若需查询其他知识库,使用 /cnb user/repo 你的问题/cnb repo:user/repo 你的问题

若需要同时查看模型的思考内容,可发送 /cnb think on 开启;使用 /cnb think off 关闭(默认关闭)。

About

客服机器人插件

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

Generated from Soulter/helloworld