Logotipo de Autorag Doctor

Autorag Doctor

OrganizaciónPopular
Marker-Inc-Korea
autorag-doctor

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 gateway, and every CLI-backed datasource (lazykatok, discrawl, slacrawl, wacrawl, telecrawl, notcrawl, qmd, mailcrawl, rclone, Spotlight), 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 gateway will not start, or the user asks to check, diagnose, verify, or repair AutoRAG.

Add to TypingMind

Descripción general

EditorMarker-Inc-Korea
RepositorioAutoRAG
Nombre de la habilidadautorag-doctor
Estrellas
5.1K
Forks
446
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por Marker-Inc-Korea en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Autorag Doctor en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Marker-Inc-Korea/AutoRAG/tree/main/skills/autorag-doctor
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Marker-Inc-Korea/AutoRAG.git /tmp/AutoRAG
mkdir -p .claude/skills
cp -r /tmp/AutoRAG/skills/autorag-doctor .claude/skills/autorag-doctor
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Autorag Doctor en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Autorag Doctor automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Autorag Doctor no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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

  • Never delete, move, or edit source documents.
  • Never delete a datasource's native store (~/Library/Application Support/katok, ~/.discrawl, ~/.mailcrawl, .qmd, Telegram/WhatsApp/Notion archives). AutoRAG only reads them; rebuilding them is the owning CLI's job.
  • Only AutoRAG-owned state under AUTORAG_HOME and the workspace .autorag directory 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

bash
autorag status --json
autorag health --json
autorag gateway status --format json
  • status reports state, stale, diagnostics, and per-component state for minsync, jikji, and datasources. stale: true or any stale-index diagnostic means the corpus changed since the last successful refresh.
  • health resolves the single search model and does one live completion probe. --skip-probes only proves config shape, never live access; do not claim a healthy model from it.
  • The gateway is on-demand: stopped is normal when nothing is embedding. unavailable while a refresh is running is a real failure.

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.

DatasourceNative checkRe-sync when empty or stale
MinSync (local docs)minsync status, minsync check, minsync verifyautorag refresh --method minsync
Jikji (discovery)jikji doctorautorag refresh --method jikji
Everything (Windows file names)autorag status --json → components.everythingautorag refresh --method everything --json
KakaoTalklazykatok doctorlazykatok sync && lazykatok index
Discorddiscrawl --json metadatadiscrawl sync
Slackslacrawl --json doctorslacrawl sync
WhatsAppwacrawl --json doctorwacrawl import
Telegramtelecrawl --json doctor, telecrawl --json statustelecrawl import
Notionnotcrawl doctor, notcrawl statusnotcrawl sync --source desktop
Obsidian / notesqmd statusqmd update && qmd embed
Mailmailcrawl doctor, mailcrawl statusmailcrawl sync && mailcrawl index
Cloud driverclone listremotesautorag refresh --method datasources
Spotlight (macOS)mdutil -s /indexed by the OS; no AutoRAG sync
Lark / Feishulark-cli auth status --format jsonno 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. telecrawl and slacrawl return JSON null (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';" against slacrawl 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. Probe retrieval per datasource through the model-free MCP tools, then once end to end:

text
autorag.status {}
autorag.search {"query":"a word that certainly appears","topK":3}
autorag.search {"query":"recent topic","datasourceIds":["discord"],"topK":3}
autorag.search {"query":"recent mail subject","scope":"/mailcrawl/**","topK":3}
bash
autorag search "summarize the collection" --top-k 3 --json --debug
  • Always read the diagnostics returned by MCP autorag.search. A run that silently dropped a whole retrieval method still looks successful, just with fewer results; only the diagnostics name it (retrieval-method-failed). The model-backed CLI autorag search --json hides diagnostics, sessionId, and per-result evidence unless --debug is set, so pass --debug when diagnosing that path.
  • A method missing from the returned method values means that method contributed nothing. During a full MinSync re-sync this is expected: the store is being rebuilt, minsync status reports NotSynced, and local-file hits stay absent until it finishes. Confirm with minsync status before treating it as a failure, and never kill a running sync to "fix" it.
  • MCP autorag.search needs no model, so it isolates retrieval from model failures.
  • Use MCP datasourceIds to select configured connections before retrieval; scope narrows results within scope-capable datasources. Discover connection IDs with autorag.datasources.list; descriptor tags are metadata only, not search filters. Every configured connection is searchable — if one returns nothing, investigate its native store, connector, or the query itself.
  • autorag.evidence {"sessionId":"...","resultNumber":N} shows the exact chunk behind a numbered result; use it to confirm a hit is real and its source is readable. The CLI autorag evidence SESSION --json remains for terminal repair.
  • Local-file hits must map to an absolute, existing path. Datasource hits keep source-native identities such as /kakao/personal/chunks/42; those are not filesystem paths and must never be passed to cat.

4. Repair playbook

Orphan lock

The embedding runtime keeps embedding-runtime.lock, embedding-runtime.pid, and embedding-runtime.port in AUTORAG_HOME. It reclaims them automatically when the recorded PID is dead; a lock-conflict means the PID is alive.

bash
autorag gateway status --format json
autorag gateway stop

Only when gateway stop cannot clear it, and the recorded PID is confirmed dead (kill -0 PID fails), remove the three files by hand and retry.

Index locks are owned by their engines: MinSync/tantivy locks under <workspace>/.autorag/, and per-CLI locks such as <workspace>/.autorag/datasources/discrawl/.discrawl-sync.lock. Delete one only after confirming no owning process is alive; otherwise wait for the run that holds it.

Orphan process

bash
pgrep -fl 'autorag|autorag-gateway|minsync' | grep -v pgrep

A refresh that was killed mid-run can leave the gateway or a minsync child alive. Stop the gateway with autorag gateway stop first; only kill a PID directly when it is confirmed orphaned (no parent CLI, no live refresh). Re-run autorag status --json afterwards to confirm inFlight: false.

Embedding model mismatch

embedding-identity-mismatch or a dimension error means the vectors on disk were built with a different embedder than the configured one. Vectors of two different dimensions can never be compared, so the index must be rebuilt:

bash
autorag models prefetch --profile qwen3-embedding-0.6b
autorag index rebuild --method minsync

The current default is the local native:Qwen/Qwen3-Embedding-0.6B runtime at 1024 dimensions. A workspace still pinned to the legacy 768-dimension Ollama/TEI path must be reindexed explicitly, or pinned to an explicit profile. Changing embedder.dimension in config without a rebuild leaves retrieval silently empty. Keep embeddings local; do not point the embedder at a remote endpoint to work around a local failure.

Stale index

stale-index diagnostics or stale: true mean sources changed after the last refresh.

bash
autorag refresh --method parsed,minsync --json
autorag refresh --force --json

Use --force only when incremental refresh does not clear it. For continuous freshness install an hourly autorag watch --once job (cron, launchd, systemd timer, or Task Scheduler).

Missing or wrong setup

  • unknown-datasource-skill: the config key is not a builtin template and has no "type". It is skipped, not fatal — fix the name or add "type".
  • datasource-index-failed / sync-failed: the backing CLI errored. Run that CLI's own check from the table above and fix it there.
  • A missing MinSync binary is not a diagnostic: autorag search, autorag refresh and MCP tools fail with MinSync is required ... and a non-zero exit. Install it (cargo install minsync) or leave minSync.autoInstall on, then retry.
  • jikji-unavailable: the binary is missing and auto-install failed. It installs through cargo; verify the Rust toolchain, then autorag refresh --method jikji to retry.
  • auth-error / rate-limited: model or datasource credentials. Report the missing environment-variable name and let the user supply it.
  • A configured datasource that returns nothing is a native store, connector, or query problem — every configured connection is searchable. Run its native check from the table above and fix it there.

Diagnostic codes

CodeMeaningFirst move
stale-indexSources changed since last refreshautorag refresh --method parsed,minsync
index-not-readyIndex missing or never builtautorag refresh --json
minsync-sync-failedMinSync indexing failed; the message carries MinSync's own reasonFix the reported cause, then autorag refresh --method minsync
jikji-unavailableJikji binary missing or install failedCheck cargo, retry refresh
everything-index-failedWindows Everything instance could not start or index; message carries ES exit code and stderrFix the reported cause, autorag refresh --method everything --json
embedding-identity-mismatchIndexed vectors use a different embedderautorag index rebuild --method minsync
embedder-unavailableEmbedding gateway or runtime downautorag gateway status --format json
lock-conflictAnother runtime holds the lockautorag gateway stop
datasource-index-failedBacking CLI failed to indexRun that CLI's own doctor
datasource-emptyStore has no matching contentRe-sync with the CLI, or accept as empty
unknown-datasource-skillConfig name is not a known templateFix the name or add "type"
retrieval-method-failedOne method errored during the queryRead --debug diagnostics
auth-errorCredentials missing or rejectedReport the env var name
query-route-fallbackJev routing unavailable (often OPENROUTER_API_KEY unset); searched local with the original questiontest -n "$OPENROUTER_API_KEY"; report the env var name, never its value
query-decomposition-failedDecomposition model call failed; searched the original questionCheck queryDecomposition.model resolves (autorag models list --provider openrouter)
follow-up-check-fallbackJev post-fast-answer check unavailable; the run verifiedSame as query-route-fallback
datasource-selection-fallbackJev datasource check unavailable; no datasource was searched before the fast answerSame as query-route-fallback
query-routed / datasources-selected / follow-up-skippedInfo: Jev's branch and queries / datasources searched and skipped / fast answer judged finalNone; working as intended. A datasource that is never selected usually needs a clearer description in the config

Report

Always end with this table, one row per datasource and per AutoRAG component:

SourceConfiguredIndexedSearchableIssue foundFix applied
minsyncyesyesyes (3 hits)––
discordyesyesnostale archivediscrawl sync
telegramno––CLI not installedreported

Searchable must come from an actual query in step 3, never inferred from index state. Follow the table with the exact remaining action for every row that is not fully green.

Completion condition

Done only when: core triage is clean or every remaining diagnostic is explained, every configured datasource passed its native check, every one of them returned a real hit or is proven empty, every repair was re-verified by re-running the failing check, and the report table was delivered.

Preguntas frecuentes

¿Qué hace la habilidad de IA Autorag Doctor?

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 gateway, and every CLI-backed datasource (lazykatok, discrawl, slacrawl, wacrawl, telecrawl, notcrawl, qmd, mailcrawl, rclone, Spotlight), 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 gateway will not start, or the user a...

¿Por qué usar Autorag Doctor en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Autorag Doctor está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Autorag Doctor en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Marker-Inc-Korea/AutoRAG/tree/main/skills/autorag-doctor. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Autorag Doctor?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Autorag Doctor?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Autorag Doctor con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Autorag Doctor?

Sí. Marker-Inc-Korea la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇