dsh-learn-wiki
边做边学知识库:CRAG 式纠错检索(L1 Markdown wiki + L2 Hindsight)→ 未命中后台经 L3 限流联网补料 → 蒸馏落 staged → 两段式 commit 升入 L1。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Dayi-Z/dsh-learn-wiki说明文档
阅读完整 README ↗配置
配置来源(后者覆盖前者):代码内默认值 → /wiki.config.json → apply(ctx, config) 第二参数。
刻意不使用 Cordis 的 Config schema:rc 阶段要能容忍未知键,严格 schema 会把用户多写的一个键变成加载失败。
关键项(完整列表见 lib/config.js):
| 键 | 默认 | 说明 |
|---|---|---|
wikiRoot | D:\\Harness\\dsh-wiki | L1 仓库根目录 |
autoContext | true | 旋钮 A:每轮第一步自动注入 |
autoAcquire | true | 旋钮 B2:未命中后后台补料(非阻塞) |
hitThreshold | 0.20 | score ≥ 此值 → hit(注入正文) |
weakThreshold | 0.13 | score ≥ 此值 → weak(只注入标题索引);低于 → miss |
injectOncePerSession | true | 内容不变则只注入一次(KV cache 友好) |
maxAcquisitionsPerRun | 2 | 单次后台补料最多处理的缺口数 |
webMaxResults | 5 | 每次联网取多少条结果 |