lightporta/dsh-knowledge-center ↗★ 1
dsh-knowledge-center
提炼文档为知识库并授权会话检索 适合需要将本地文档转化为Markdown笔记并让Agent检索调用的用户。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lightporta/dsh-knowledge-center說明文件
閱讀完整 README ↗使用
-
点击左侧栏的知识图标打开整页知识中心(或打开 Settings → 知识中心)。
-
选择工作区,点击「扫描文档」,勾选需要提炼的文档,选择目标知识库与生成语言(简体中文 / English),点击「生成知识」。生成由默认模型逐篇完成,耗时取决于文档长度。
-
切换到「知识库」页签浏览结果:点击条目查看渲染效果;可切换 Markdown 源码、复制、下载、编辑保存或删除。
-
切换到「权限与设置」,为需要使用知识的工作区打开「允许模型调用」。
-
在该工作区的会话中直接向模型提问,例如:
请先检索知识中心里关于发布流程的笔记,再按其中的清单检查这次改动。
模型会调用
knowledge_search找到条目、用knowledge_read读取全文,并基于知识回答;只有被授权的工作区才能这样做。
Usage
-
Click the knowledge icon in the sidebar to open the full-page Knowledge Center (or open Settings → Knowledge Center).
-
Choose a workspace, click Scan documents, select files, choose the target library and language (简体中文 / English), then click Generate. The default model distills each document; duration depends on document length.
-
Open the Knowledge Base tab to browse the results: click an entry for the rendered preview, switch to Markdown source, copy, download, edit or delete.
-
Open Access & Settings and enable Allow model access for the workspaces that should use this knowledge.
-
In a session of that workspace, ask the model to use the knowledge, for example:
Search the Knowledge Center for our release process notes, then check this change against that checklist.
The model calls
knowledge_searchto find entries andknowledge_readfor the full note — only in granted workspaces.