Breeze136/dsh-kb-rag

Indexes PDFs and Zotero libraries into one local SQLite knowledge base and answers with the passage, page and DOI behind each claim.

Papers go in from a folder (kb_ingest), a Zotero library (kb_zotero), a DOI or an arXiv ID (kb_fetch — publisher version first, which works on campus or through an institutional subscription, then open access). Everything is indexed into a single SQLite file, and a kb_rag call returns the passages that answer the question, each carrying its section, physical page and DOI plus the citations attached to that passage, with [in-library] marking cited works already indexed. Deep mode reranks with BAAI/bge-reranker-base and reports cache hits. Because retrieval is local and passage-level, the answer can be checked against the exact page it came from instead of trusting a summary.

Learning & Research ★ 15
View on GitHub ↗

Install

dsh plugin --profile web add dsh-kb-rag@1.6.8

The npm line from the README, shipped pinned on purpose: the README warns that a DSH profile is a pnpm workspace and pnpm's minimumReleaseAge policy can silently resolve an unpinned install to the previous version. The installer chain also handles Python dependencies, an engine smoke test and model pre-download (--no-models skips it). Do not run npm install dsh-kb-rag inside a DSH profile — the README says it writes an npm-style node_modules beside pnpm's symlink store and makes later dsh plugin operations unpredictable.

Compatibility

The DSH desktop app must be 0.2 or newer; 1.6.7 and earlier fail that version's compatibility check, and 1.6.8 is the first release that passes it. The first search downloads two models (~1.2 GB) and kb_stats reports whether they are present. Indexing, embedding and reranking run locally with no API cost. The README notes the tool interface is in Chinese today and the sample output in the README is a translation.

Details

Alternatives

benz-ai-x/dsh-research-graph · 7starsseeker/dsh-fact-check · qzhqzh/dsh-bio-workflows

More plugins in Learning & Research

Browse more in Learning & Research

Guides for Learning & Research plugins