返回目录
文件与数据 插件

dsh-plugin-rag

YYTbit/dsh-plugin-rag

Local knowledge base RAG for DeepSeek Harness

Stars
1
Forks
0
Issues
0
更新
4 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:YYTbit/dsh-plugin-rag

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-plugin-rag

Local knowledge base RAG for DeepSeek Harness.

What it does

Indexes project files (markdown, code, configs) and provides keyword search to find relevant context. No external APIs or embedding models needed -- pure local TF-IDF search.

Install

dsh plugin --profile your-profile add dsh-plugin-rag

CLI

# Search for relevant files
rag "authentication" ./src

# Show index stats
rag --index ./src ./docs

What gets indexed

  • Markdown (.md, .txt)
  • Code (.ts, .js, .py, .rs, .go, .java, .c, .cpp)
  • Config (.json, .yaml, .toml, .env)
  • Docs (.html, .xml, .sql, .graphql)

Skips: node_modules, .git, dist, build, pycache

Configuration

- id: rag
  name: dsh-plugin-rag
  config:
    indexPaths: ['.']
    maxResults: 3
    maxBytes: 4096
    enableInjection: true

How it works

  1. Scans directories for text files
  2. Builds a keyword index (TF-IDF scoring)
  3. Injects index stats into system prompt
  4. Agent uses CLI to search when needed

No embedding models, no external APIs, no heavy dependencies.

License

MIT -- YYTbit

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类文件与数据
规则置信度

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: rag。