autorag-doctor
它能做什么
它检查 AutoRAG、已连接的来源以及嵌入后端,然后修复过时或冲突的部分。它适用于 AutoRAG 搜索只能部分工作的人。
适用场景
- ✓当你已连接的某个来源在 AutoRAG 搜索中没有任何结果时。
- ✓当 AutoRAG 报告索引过时或设置损坏时。
- ✓当你想对 AutoRAG 及其已连接的来源进行全面健康检查时。
技能链接
https://github.com/Marker-Inc-Korea/AutoRAG/blob/main/skills/autorag-doctor/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的 AutoRAG 搜索在我的 Slack 导出文件中找不到任何内容。请帮我诊断并修复。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会运行 AutoRAG 的状态和健康检查,然后为每个来源进行真实搜索测试。它只修复 AutoRAG 自身保存的状态,并以状态表的形式汇报。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
AutoRAG doctor
Goal: every configured datasource is indexed and actually returns
hits. A green status is not enough — the run is done only when a real query
returns a real hit per datasource, or the datasource is reported as genuinely
empty or not configured.
Always finish with the status table in Report.
Safety
- Diagnosis and repair never delete, move, or edit source documents; a doctor run changes only AutoRAG-owned state.
- Never delete a datasource's native store (
~/Library/Application Support/katok,~/.discrawl,~/.mailcrawl, Telegram/WhatsApp/Notion archives). AutoRAG only reads them; rebuilding them is the owning CLI's job. - Only AutoRAG-owned state under
AUTORAG_HOMEand the workspace.autoragdirectory may be reset. - Never print token or password values. Report credential names only.
- Kill a process only after confirming it is an AutoRAG-owned orphan.
1. Triage the core
autorag status --json
autorag health --json
autorag setup --format json
statusreportsstate,stale,diagnostics, and per-component state forminsync,jikji, anddatasources.stale: trueor anystale-indexdiagnostic means the corpus changed since the last successful refresh.healthresolves the single search model and does one live completion probe.--skip-probesonly proves config shape, never live access; do not claim a healthy model from it.setup --format jsonreportsembedding.backend(remote,daemon, orin-process) and the resolvedprovider/model/dimensionwhen a backend is alive, orembedding.reasonand aremediationwhen none is. It only probes; it never starts a daemon. Semantic search needs the daemon (or a remote endpoint) to be running: a backend that is absent is a realembedding-unavailablestate, not normal.
Config lives at --config, AUTORAG_CONFIG, $AUTORAG_HOME/config.json, or
~/.autorag/config.json. Read searchPaths, workspacePath, minSync,
jikji, and datasources before changing anything.
If the CLI itself is missing or the config does not exist, stop and run the
autorag-setup skill first — doctor repairs an existing install, it does not
create one.
2. Probe every datasource natively
Each CLI owns its archive, so ask the CLI, not AutoRAG. A datasource is only
active when its binary exists, its store is present, and its own check passes.
| Datasource | Native check | Re-sync when empty or stale |
|---|---|---|
| MinSync (local docs) | minsync status, minsync check, minsync verify |
autorag refresh --method minsync |
| Jikji (discovery) | jikji doctor |
autorag refresh --method jikji |
| Everything (Windows file names) | autorag status --json → components.everything |
autorag refresh --method everything --json |
| KakaoTalk | lazykatok doctor |
lazykatok sync && lazykatok index |
| Discord | discrawl --json metadata |
discrawl sync |
| Slack | slacrawl --json doctor |
slacrawl sync |
wacrawl --json doctor |
wacrawl import |
|
| Telegram | telecrawl --json doctor, telecrawl --json status |
telecrawl import |
| Notion | notcrawl doctor, notcrawl status |
notcrawl sync --source desktop |
| Obsidian / notes | autorag status (AutoRAG-owned index) |
autorag refresh --method datasources; if corrupt, delete .autorag/datasources/obsidian/<instance> first |
mailcrawl doctor, mailcrawl status |
mailcrawl sync && mailcrawl index |
|
| Lark / Feishu | lark-cli auth status --format json |
no local sync; search is remote |
Rules:
- A missing binary is not configured, not a failure. Report it with the install command and move on.
- An empty store is a legitimate zero-hit result.
telecrawlandslacrawlreturn JSONnull(not[]) for no hits — treat that as empty, not broken. - A configured datasource whose native check fails is a failure and must be repaired or reported explicitly. Never report a skip as a pass.
- Zero hits with a non-empty store means the CLI's search path is suspect, not
the data. Cross-check against the raw index before concluding (for example
slacrawl sql "select count(*) from message_fts where message_fts match 'x';"againstslacrawl search x). A populated index plus an empty CLI result is an upstream bug: report it with the exact reproduction instead of re-syncing.
3. Prove searchability
Indexing without retrieval is a failed run
常见问题
这会删除我的原始文档吗?
不会。技能绝不删除或编辑来源文档,它只重置 AutoRAG 自身保存的数据。
修复过程会显示我的密码或令牌吗?
不会。它只报告凭据的名称,绝不显示其值。
什么时候算修复完成?
当每个来源的真实搜索都返回真实结果,或某个来源被确认为空或未设置时,修复即完成。
详情
作者的原始描述
Diagnose and repair a broken or half-working AutoRAG install so every configured source is both indexed and searchable. Checks AutoRAG, MinSync, Jikji, the embedding backend, and every CLI-backed datasource (lazykatok, discrawl, slacrawl, wacrawl, telecrawl, notcrawl, mailcrawl), then fixes orphan locks, orphan processes, embedding dimension or identity mismatches, stale indexes, and missing setup. Use when search returns nothing or too little, refresh hangs or fails, a datasource disappeared from results, indexes look stale, the embedder is unavailable, or the user asks to check, diagnose, ve
repo: Marker-Inc-Korea/AutoRAG
热度
- GitHub 星标
- 5.3k
- 排名
- #15013
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
organize
5.3k帮你的智能体安全地整理、移动、重命名或转换电脑上的文件和文件夹,并提供计划和每项更改的清单。
autorag-lite-setup
5.3k帮你的智能体安装并连接 AutoRAG Lite,这是一种无需搜索模型的文档搜索工具,并检查它是否正常工作。
autorag-setup
5.3k帮你的智能体安装并设置 AutoRAG,选择其搜索模型和文档文件夹,并在索引或检查失败时进行修复。
autorag
5.3k帮你的智能体在你配置的 AutoRAG 资料库中搜索、总结并比较本地 PDF、笔记和数据源中的答案。