Soren-ABT/dsh-knowledge 预览 preview

Soren-ABT/dsh-knowledge

Plugin插件 Native原生 ⭐ 62 AGPL-3.0 Memory & 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 中添加对应构建许可。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • 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 的知识库插件

English · 中文

npm version npm downloads Node.js >= 22 TypeScript SQLite License: AGPL-3.0

一个深度的知识库系统,作为 DeepSeek Harness(DSH)的独立、可开源 bundle 插件。提供知识库(含分组)与文档管理、文本分块、向量化(OpenAI 兼容 / Ollama / 本地模型 / 关键词降级)、检索,以及模型可见工具与浏览器管理面板。

image

为什么选择 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. 完成首次配置

  1. 点击侧边栏底部、设置旁的“知识库”入口。
  2. 新建知识库并导入文件、目录、网页或文本。
  3. 如需本地向量检索,在“设置 > 本地模型”下载 embedding 模型;也可以配置 OpenAI 兼容服务或 Ollama。
  4. 如需识别扫描件,再下载约 21 MB 的 OCR 模型。
  5. 在“召回测试”中检查结果,再让模型通过 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 →

← 上一个 Prev dsh-desktop-hub 下一个 Next opencues →