{"id":50105311,"url":"https://github.com/jin6yang/astrbot_plugin_external_knowledgebase","last_synced_at":"2026-05-23T10:06:25.877Z","repository":{"id":352238345,"uuid":"1212816294","full_name":"jin6yang/astrbot_plugin_external_knowledgebase","owner":"jin6yang","description":"AstrBot plugin providing an online knowledge base for AI.","archived":false,"fork":false,"pushed_at":"2026-04-18T23:26:56.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-18T23:36:45.286Z","etag":null,"topics":["astrbot-plugin","knowledgebase","python","rag"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jin6yang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-16T19:02:14.000Z","updated_at":"2026-04-18T23:27:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jin6yang/astrbot_plugin_external_knowledgebase","commit_stats":null,"previous_names":["jin6yang/astrbot_plugin_ol_knowledgebase","jin6yang/astrbot_plugin_external_knowledgebase"],"tags_count":null,"template":false,"template_full_name":"Soulter/helloworld","purl":"pkg:github/jin6yang/astrbot_plugin_external_knowledgebase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jin6yang%2Fastrbot_plugin_external_knowledgebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jin6yang%2Fastrbot_plugin_external_knowledgebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jin6yang%2Fastrbot_plugin_external_knowledgebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jin6yang%2Fastrbot_plugin_external_knowledgebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jin6yang","download_url":"https://codeload.github.com/jin6yang/astrbot_plugin_external_knowledgebase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jin6yang%2Fastrbot_plugin_external_knowledgebase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33390984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astrbot-plugin","knowledgebase","python","rag"],"created_at":"2026-05-23T10:06:24.951Z","updated_at":"2026-05-23T10:06:25.868Z","avatar_url":"https://github.com/jin6yang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n  \u003cimg src=\"logo.png\" alt=\"\" width=\"128\"\u003e\n\u003c/div\u003e\n\n\u003ch2 align=\"center\"\u003e\nExternal Knowledge Base Retrieval\n\u003c/h2\u003e\n\n\u003ch2 align=\"center\"\u003e\nAstrbot Plugin\n\u003c/h2\u003e\n\u003ch2 align=\"center\"\u003e\nAstrbot 插件 - 外部知识库检索\n\u003c/h2\u003e\n\n\u003cdiv align=\"center\"\u003e\n💖 一款可以让 AstrBot Bot 自由访问外部知识库的插件，使用 Python 编写 😎\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n由 POINTER 用 ❤️ 制作\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[中文 README](README.md) | [English README](README_en.md)\n\n\u003c/div\u003e\n\n\u003cdiv align=center\u003e\n\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/)\n[![Ask Zread](https://img.shields.io/badge/Ask_Zread-_.svg?style=flat\u0026color=00b0aa\u0026labelColor=000000\u0026logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuOTYxNTYgMS42MDAxSDIuMjQxNTZDMS44ODgxIDEuNjAwMSAxLjYwMTU2IDEuODg2NjQgMS42MDE1NiAyLjI0MDFWNC45NjAxQzEuNjAxNTYgNS4zMTM1NiAxLjg4ODEgNS42MDAxIDIuMjQxNTYgNS42MDAxSDQuOTYxNTZDNS4zMTUwMiA1LjYwMDEgNS42MDE1NiA1LjMxMzU2IDUuNjAxNTYgNC45NjAxVjIuMjQwMUM1LjYwMTU2IDEuODg2NjQgNS4zMTUwMiAxLjYwMDEgNC45NjE1NiAxLjYwMDFaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik00Ljk2MTU2IDEwLjM5OTlIMi4yNDE1NkMxLjg4ODEgMTAuMzk5OSAxLjYwMTU2IDEwLjY4NjQgMS42MDE1NiAxMS4wMzk5VjEzLjc1OTlDMS42MDE1NiAxNC4xMTM0IDEuODg4MSAxNC4zOTk5IDIuMjQxNTYgMTQuMzk5OUg0Ljk2MTU2QzUuMzE1MDIgMTQuMzk5OSA1LjYwMTU2IDE0LjExMzQgNS42MDE1NiAxMy43NTk5VjExLjAzOTlDNS42MDE1NiAxMC42ODY0IDUuMzE1MDIgMTAuMzk5OSA0Ljk2MTU2IDEwLjM5OTlaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik0xMy43NTg0IDEuNjAwMUgxMS4wMzg0QzEwLjY4NSAxLjYwMDEgMTAuMzk4NCAxLjg4NjY0IDEwLjM5ODQgMi4yNDAxVjQuOTYwMUMxMC4zOTg0IDUuMzEzNTYgMTAuNjg1IDUuNjAwMSAxMS4wMzg0IDUuNjAwMUgxMy43NTg0QzE0LjExMTkgNS42MDAxIDE0LjM5ODQgNS4zMTM1NiAxNC4zOTg0IDQuOTYwMVYyLjI0MDFDMTQuMzk4NCAxLjg4NjY0IDE0LjExMTkgMS42MDAxIDEzLjc1ODQgMS42MDAxWiIgZmlsbD0iI2ZmZiIvPgo8cGF0aCBkPSJNNCAxMkwxMiA0TDQgMTJaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik00IDEyTDEyIDQiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K\u0026logoColor=ffffff)](https://zread.ai/)\n[![Ask Code Wiki](https://img.shields.io/badge/-Ask_Code_Wiki-0e182e?style=flat\u0026logo=googlegemini\u0026logoColor=6192f7\u0026labelColor=000000)](https://codewiki.google/)\n\n\u003c/div\u003e\n\n\u003e [!NOTE]\n\u003e 本插件正在开发中......\n\u003e\n\u003e 本插件暂未上架 AstrBot 插件市场\n\u003e\n\u003e 本插件因为还在开发中，所以版本号可能会保持不变\n\n## 主要功能\n\n让 AstrBot Bot 自由访问外部知识库，并且提供3种决策方案供用户选择\n\n## 更新路线图\n\n- [x] 加入查询知识库的决策层\n\n## 安装\n\nAstrBot Web UI - 插件 - 右下角\"+\"号 - 从链接安装\n\n## 使用\n\n按 AstrBot Web UI 中本插件设置的引导使用\n\n也可以查看下面 `## 插件配置` 获取详细信息\n\n## 支持的外部知识库\n\n[Dify](https://dify.ai/)（推荐）\n\n[Flowise](https://flowiseai.com/)\n\n[RAGFlow](https://ragflow.io/)（未经过完善测试）\n\n## 插件配置\n\n### 决策模式\n\nL1: 总是发送知识库查询并把匹配到的内容注入提示词\n\nL2: 通过关键词判断是否执行 `L1`\n\nL3: 调用大模型进行意图识别（推荐使用输出速度快的模型以保证整体的回复速度）\n\n### 默认提示词\n\n#### L2\n\n请问,解释,文档,是什么,介绍,怎么,如何,帮我,可以,帮\n\n#### L3\n\n你是一个意图识别引擎。\n用户语境:\n{history}\n用户当前输入: {user_msg}\n判断用户上述输入是否是在提问查资料并需要通过外部知识库或文档检索进一步的背景知识。如果需要检索额外资料，回答YES，否则如果只是日常聊天或不需要检索资料，回答NO。只输出YES或NO。\n\n#### 查询重写\n\n根据以下对话历史，将用户的最新输入重写为独立的搜索查询词。核心任务是：解决指代不明，将代词(他,那个等)替换为具体提及的实体；如果不需要重写，直接输出用户输入内容。只输出重写后的内容，不要作答或解释。\n\n对话历史:\n{history}\n\n用户最新的需重写输入: {user_msg}\n\n#### 知识库检索结果注入\n\n请参考以下背景知识来回答用户的问题（如果背景知识与问题无关可以忽略）：\n{context_str}\n\n请结合以上背景知识回答问题。\n\n### 知识库 API 基地址\n\n#### 官方云服务\n\nDify: https://api.dify.ai/v1\n\nRAGFlow: N/A (仅支持本地部署)\n\nFlowise: https://cloud.flowiseai.com/api/v1\n\n#### 本地部署（包括 Docker 部署）\n\n请修改 API 端点（API 基地址）为你的可访问地址，比如 `http://127.0.0.1:3000/api/v1`\n\n### 插件安装位置\n\nWindows: `%USERPROFILE%\\.astrbot\\data\\plugins\\astrbot_plugin_external_knowledgebase`\n\n## 感谢\n\n[Dependencies](https://github.com/jin6yang/astrbot_plugin_external_knowledgebase/network/dependencies)\n\n[AstrBotDevs/AstrBot✨](https://github.com/AstrBotDevs/AstrBot)\n\n## 开发支持\n\n- [AstrBot Repo](https://github.com/AstrBotDevs/AstrBot)\n- [AstrBot Plugin Development Docs (Chinese)](https://docs.astrbot.app/dev/star/plugin-new.html)\n- [AstrBot Plugin Development Docs (English)](https://docs.astrbot.app/en/dev/star/plugin-new.html)\n\n## 许可证\n\n![](agplv3-155x51.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjin6yang%2Fastrbot_plugin_external_knowledgebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjin6yang%2Fastrbot_plugin_external_knowledgebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjin6yang%2Fastrbot_plugin_external_knowledgebase/lists"}