Bundle
dsh-qknowledge-base
Local knowledge base for DeepSeek Harness: document CRUD, keyword search and a kb_search model tool.
- Source
- 2128627267
- stars
- 2 stars
- License
- MIT
- Updated
- Updated yesterday
Readme
# dsh-qknowledge-base 知识库
为 DeepSeek Harness 增加本地知识库:
- 文档增删改查(标题、内容、标签)
- 关键词评分检索(模型通过 `kb_search` 工具自动查阅;UI 中也可手动搜索)
- 数据默认存于工作区 `.dsh-features/knowledge-base.json`(可通过 `config.json` 的 `kbPath` 配置其他位置)
## Host RPC(HTTP JSON)
| 方法 | 入参 | 说明 |
|------|------|------|
| `POST /dsh-qknowledge-base/list` | — | 全部库与文档 |
| `POST /dsh-qknowledge-base/library/save` | `{ library }` | 新增/更新库 |
| `POST /dsh-qknowledge-base/library/delete` | `{ id }` | 删除库 |
| `POST /dsh-qknowledge-base/doc/save` | `{ libraryId, doc }` | 新增/更新文档 |
| `POST /dsh-qknowledge-base/doc/delete` | `{ libraryId, id }` | 删除文档 |
| `POST /dsh-qknowledge-base/search` | `{ query, limit? }` | 关键词检索,返回文本片段列表 |
## 模型工具
- `kb_search`:在知识库中检索文档片段
## 安装(原生 bundle,与 dshmarket 同类)
本插件是标准 DSH bundle:安装后作为普通插件运行,**不产生 Cordis 动态插件、无需批准、无需任何手动激活**。
```bash
dsh plugin --profile web add dsh-qknowledge-base
```
重启 `dsh web` 后:
- 设置页“知识库”直接挂载;
- `kb_search` 直接注册为普通模型工具;
- 不出现 `qkbsr-*`,也没有 `run-*` 消息。
## 仓库
- GitHub:https://github.com/2128627267/dsh-qknowledge-base
- Topic:`dsh-plugin`(发布时请在仓库设置里添加该 topic)
---
Install
dsh plugin --profile web add github:2128627267/dsh-qknowledge-base
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-qknowledge-base from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.