Breeze136/dsh-kb-rag ↗★ 11

dsh-kb-rag

Repo-root manifest for dsh-kb-rag. The installable plugin bundle is published from npm-package/ as dsh-kb-rag; this file exists so the repository itself declares a dsh.bundle (registry tooling reads <repo>/HEAD/package.json) and points at that bundle. Not published: version is intentionally 0.0.0, the real version lives only in npm-package/package.json. 适合需要整理研究资料、检索论文段落并追溯页码和引用来源的用户。支持文件夹导入及Zotero同步。

패키지
dsh-kb-rag
호환성
미검증
버전
0.0.0
라이선스
MIT
최근 업데이트
2026. 9. 20.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Breeze136/dsh-kb-rag

Configuration

VariableDefaultApplies toDescription
KB_EMBED_MODELBAAI/bge-small-zh-v1.5EngineEmbedding model; downloaded to the Hugging Face cache on first use
KB_RERANK_MODELBAAI/bge-reranker-baseEngineReranking model
KB_DEVICEautoEngineauto uses the GPU whenever a CUDA build of torch finds a working device; cpu / cuda / cuda:1 / mps force a choice. Any device failure falls back to CPU automatically
KB_GPU_PROBE1Engine0 skips the one-off "can this device actually compute?" probe (a tiny matmul) and goes straight to the model load — an escape hatch for unusual environments
KB_EMBED_BATCHGPU 128 / CPU 32 (tiered below 8 GB VRAM)EngineEmbedding batch size for ingest and search. Raising it does not help on small models — measured throughput is flat from 32 to 256
KB_RERANK_BATCHGPU 64 / CPU 16 (tiered below 8 GB VRAM)EngineReranking batch size
KB_MODEL_RETRY_SECS120EngineHow long a failed model load is remembered before retrying (0 = every call, negative = never retry)
HF_ENDPOINTnoneEngineSet to https://hf-mirror.com on restricted networks
KB_AUTO_PIP0npm package1 installs missing Python dependencies at startup (fixed argv; by default only the command is printed). The dynamic plugin host reports but does not install
KB_RAG_ROOTDSH: session workspace .kb; MCP: ~/.kb-ragMCPKnowledge base directory; per-call override with kb_root
KB_RAG_PYTHONcurrent interpreterMCPInterpreter used for the engine, to avoid a bare python resolving elsewhere
KB_ASYNC_THRESHOLD25EnginePending file count above which kb_ingest forks a background job and returns a job_id (poll with kb_status)
KB_SQLITE_WALoffEngine1 enables SQLite WAL; the default is safer when the .kb directory is synchronised
UNPAYWALL_EMAILbuilt-in placeholderEngineContact address used by kb_fetch for Unpaywall queries; set your own