Soren-ABT/dsh-knowledge
DeepSeek Harness(DSH)的知识库与RAG插件:分块、本地嵌入、混合搜索、管理面板
Project Overview项目介绍
dsh-knowledge is a native retrieval-augmented generation (RAG) knowledge base plugin built exclusively for DeepSeek Harness (DSH), distributed as an open-source standalone bundle. It includes full document management features like knowledge base grouping, multi-source document import, text chunking, and multiple vectorization options that support local models, OpenAI-compatible APIs, Ollama, and keyword fallback when no embedding is configured. It also delivers hybrid retrieval, a browser-based management interface, and search tools that DSH models can call directly.
This plugin is designed for DSH users who want to integrate their own private knowledge base into agent conversations. It connects the entire RAG workflow from document import, parsing, and chunking to retrieval, evidence organization, and automatic context injection into model prompts. It works out of the box with zero configuration, can run fully offline with local models, and does not require users to deploy any separate external knowledge base service.
To install dsh-knowledge, you need Node.js 22.19.0 or newer and pnpm 10 or newer, and the project is released under the open-source AGPL-3.0 license. Known limitations include that Intel Macs cannot run onnxruntime-based local embedding and OCR, no rich text editor is provided for text notes, and local document parsing is used when no MinerU API key is configured. You must add required build permissions to your DSH profile’s pnpm-workspace.yaml before running the install command.
dsh-knowledge 是专为 DeepSeek Harness(DSH)打造的原生知识库插件,以独立开源 bundle 形式发布,为 DSH 提供完整的 RAG 能力。它支持知识库分组、文档多来源导入与管理,可完成文本分块、多模式向量化(支持本地模型、OpenAI 兼容接口、Ollama 及关键词降级 fallback)、混合检索,还自带浏览器端管理面板和供模型调用的工具。
这款插件面向需要在 DSH 对话中接入私有自定义知识库的用户,整合了从文档导入、解析、分块、检索到证据组织、上下文注入的全 RAG 工作流。它支持零配置开箱即用,也可完全使用本地模型离线运行,不需要额外部署独立的外部知识库服务,导入完成后可自动在模型回答前注入相关知识库证据。
该插件要求 Node.js 22.19.0 以上版本和 pnpm 10 以上,采用 AGPL-3.0 开源许可证。已知局限包括 Intel Mac 无法运行基于 onnxruntime 的本地向量化和 OCR,不支持富文本编辑,未配置 MinerU API 时仅使用本地文档解析。安装时需提前在 profile 的 pnpm-workspace.yaml 中添加对应构建许可。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-knowledge(Soren-ABT/dsh-knowledge)
仓库:https://github.com/Soren-ABT/dsh-knowledge
本站详情页:https://www.yhbd.top/plugins/soren-abt-dsh-knowledge/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 AGPL-3.0 · ⭐ 62 · 最近提交 2026-10-02 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-knowledge
把 Soren-ABT/dsh-knowledge 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-knowledge
DSH 的知识库插件
一个深度的知识库系统,作为 DeepSeek Harness(DSH)的独立、可开源 bundle 插件。提供知识库(含分组)与文档管理、文本分块、向量化(OpenAI 兼容 / Ollama / 本地模型 / 关键词降级)、检索,以及模型可见工具与浏览器管理面板。
为什么选择 dsh-knowledge
dsh-knowledge 把文档导入、解析、分块、检索、证据组织和模型续读整合进 DSH。它既可以零向量配置运行,也可以完全使用本地模型,不要求额外部署独立的知识库服务。
| 能力 | 说明 |
|---|---|
| 文档来源 | 文件、目录、网页和文本笔记;本地路径可持续重扫和重新索引 |
| 混合检索 | FTS5 BM25、向量召回、RRF 融合、MMR 去重以及可选重排 |
| 证据上下文 | 按文档顺序动态生成 ContextWindow,支持围绕命中位置继续阅读 |
| 本地运行 | 本地 embedding、本地 rerank、本地 OCR;也支持 OpenAI 兼容接口和 Ollama |
| 文档处理 | 常见办公格式、扫描 PDF、PaddleOCR、Tesseract 回退及可选 MinerU |
| 管理界面 | 知识库分组、批量导入、预览、召回测试、模型管理和索引重建 |
快速开始
1. 准备环境
- Node.js:
^22.19.0 || >=24.0.0 - pnpm:
>=10 - 已安装并初始化 DeepSeek Harness
在安装插件之前,将以下构建许可合并到目标 profile 的 pnpm-workspace.yaml 中已有的 allowBuilds 映射。不要重复添加第二个 allowBuilds: 键,否则 YAML 会失效。这些依赖包含安装期构建;pnpm 10 默认拒绝执行时,dsh plugin add 会在登记 bundle 前退出。
allowBuilds:
esbuild: true
onnxruntime-node: true
protobufjs: true
sharp: true
tesseract.js: false
2. 安装插件
dsh plugin --profile <name> add dsh-knowledge
插件安装在 profile 层。无论 DSH 来自 npm 还是源码 checkout,都使用同一条命令。安装完成后重启 web 服务,并刷新页面加载管理面板。
3. 完成首次配置
- 点击侧边栏底部、设置旁的“知识库”入口。
- 新建知识库并导入文件、目录、网页或文本。
- 如需本地向量检索,在“设置 > 本地模型”下载 embedding 模型;也可以配置 OpenAI 兼容服务或 Ollama。
- 如需识别扫描件,再下载约 21 MB 的 OCR 模型。
- 在“召回测试”中检查结果,再让模型通过
knowledge_search使用知识库。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
ruvnet/ruflo
Tencent/WeKnora
EverMind-AI/EverOS
MemTensor/MemOS
plastic-labs/honcho
agentscope-ai/ReMe
zilliztech/memsearch
vshulcz/deja-vu