OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:slder/local-knowledge-base
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A local-first RAG knowledge base for DeepSeek Harness (DSH). Drag documents into a folder, choose per-file vector retrieval, preview the original PDF/Markdown, and let the agent answer with citations.
本地优先的 DSH 知识库插件:把文件拖进目录,即可在对话中检索、阅读并引用;支持 PDF 解析、文件级 RAG 开关,以及一个专用的「知识库问答」智能体模式。
A community plugin. Not affiliated with DeepSeek. MIT licensed.
The plugin is published on npm as local-knowledge-base.
Profile CLI (no prompts, nothing to confirm):
dsh plugin --profile web add local-knowledge-base
Replace web with your profile name. Restart dsh once — a newly added bundle is not applied to a running process — then open 本地知识库 / Knowledge base in the left sidebar.
From the DSH Web UI instead:
local-knowledge-base.Or ask the agent to install it with plugin_manager:
install_bundle target: local-knowledge-base
dsh plugin --profile web add local-knowledge-base@1.0.4
The explicit pin matters: pnpm holds back very recent releases, so a bare add can resolve to an older version.
The package ships a format-1 market index. Add one of these URLs under Plugins → Discover → Manage index sources:
https://unpkg.com/local-knowledge-base@1.0.4/market-index.json
https://cdn.jsdelivr.net/npm/local-knowledge-base@1.0.4/market-index.json
The bundle installs two rows:
knowledge-base — the Host/Client plugin and the knowledge_base tool.preset-knowledge-qa — the 知识库问答 Agent Preset.pdfjs-dist; the extracted text is cached under %DSH_HOME%\knowledge-base-cache, so later searches are fast.RAG toggle. RAG files use local TF-IDF vector cosine retrieval; non-RAG files use BM25 keyword retrieval. Results are merged and tagged [RAG] or [keyword].knowledge_base with list, search, read, add, import, and delete actions. Search results include path, line range, snippet, and retrieval mode.path:startLine-endLine, and must not invent an answer when nothing matches./raw route and rendered by the browser's PDF viewer; Markdown is rendered with headings, lists, code blocks, and links, with a source toggle.%DSH_HOME%\knowledge-base-settings.json. DSH_KB_DIR or the plugin row's config.directory takes precedence.Open 本地知识库 / Knowledge base in the sidebar:
RAG button to change one file later.Default directory:
%DSH_HOME%\knowledge-base
On Windows this is usually C:\Users\<name>\.dsh\knowledge-base.
Start a new session and select the 知识库问答 preset, then ask normally:
根据知识库解释反向传播和梯度下降的区别。
知识库里有哪些关于动态规划的内容?
The agent calls knowledge_base automatically. No per-session import is needed.
.md, .markdown, .mdx, .txt, .rst, .json, .jsonl, .csv, .tsv, .yaml, .yml, .toml, .ini, .log, .html, .xml, and common source-code extensions..pdf (text layer required; scanned image-only PDFs need OCR).RAG means retrieval-augmented generation. This plugin owns the retrieval layer; the selected DSH model performs the generation.
retrieval: 'rag' | 'keyword'.%DSH_HOME%\knowledge-base-rag.json, grouped by knowledge-base directory.Origin/Sec-Fetch-Site cross-site requests.path values are resolved inside the configured knowledge-base directory; traversal is rejected.X-Content-Type-Options: nosniff; the raw route supports byte ranges for the browser PDF viewer.0.2.x (the Web UI profile).pdfjs-dist@4.dsh web; the browser half mounts into @deepseek-ai/dsh-client-ui-layout.index.js Host plugin: scanning, chunking, PDF extraction, retrieval, tools, HTTP API
client.js Web UI: sidebar panel, drag/drop, preview, RAG toggles
cordis.patch.yml Bundle rows: the plugin and the Knowledge Q&A preset
locale/ Plugin Manager title/description
icon.svg Bundle icon
The Host requires pdfjs-dist@4.10.38 or a compatible 4.x release. It is declared as a dependency and installed with the package.
If you develop against a local checkout, link it into a profile instead of installing from npm:
dsh plugin --profile web add link:/absolute/path/to/local-knowledge-base
MIT — see LICENSE. pdfjs-dist is distributed under the Apache-2.0 license; see its package for details.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: rag、knowledge-base。