DSH Plugins
返回列表
🧠

docindex

记忆 更新于 2026.08.25

在终端中运行以下命令:

dsh plugin install JohnXu22786/docindex

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在 DeepSeek Harness 中运行 dsh plugin install JohnXu22786/docindex 即可完成安装,插件源码位于 https://github.com/JohnXu22786/docindex 。

插件介绍

You know the feeling — dozens or hundreds of Markdown notes, PDF reports, and Office files piled up in a workspace, and the moment you need a specific conclusion you resort to Ctrl+F or manual browsing. docindex turns that into a single search box: it scans a directory you specify, builds a local semantic index over every document, and lets you ask in natural language or type keywords to get back matched snippets with exact line numbers and relevance scores.

Under the hood, retrieval runs two parallel tracks. Lexical search is powered by SQLite FTS5 with a built-in CJK n-gram tokenizer, so Chinese keyword search works without any native dependencies. Semantic search goes through a pluggable embedding slot — the default is a zero-dependency n-gram feature-hashing embedder that runs fully offline, and you can optionally switch to a Hugging Face transformers multilingual encoder for true cross-lingual recall. The two ranked lists are merged with Reciprocal Rank Fusion for a stable, interpretable order. Indexing is incremental by default with an optional file watcher; only changed files are re-processed, and a full rebuild is always available as a fallback.

It is built for two kinds of users. If you work inside DeepSeek Harness (dsh), the four model-facing tools — doc_scan, doc_query, doc_reindex, doc_stats — become available to the agent immediately, and any other plugin can call the same engine through the ctx.docIndex service. If you simply want local document search in your terminal, install it from npm and run the docindex CLI with no dsh environment at all. The core engine has zero runtime dependencies, making it a good fit for offline and privacy-sensitive setups.

使用场景

  • 在 dsh 工作区中快速检索大量 Markdown 笔记与 PDF 报告
  • 为 AI Agent 提供本地文档语义检索能力
  • 离线环境下对 Office 文档进行关键词与语义混合搜索

适合人员

  • 需要本地文档检索能力的 DeepSeek Harness 开发者
  • 希望为 Agent 增加知识库检索工具的插件作者
  • 偏好离线零依赖方案的个人知识管理用户