ragrails doctor is a production-readiness check. It validates your .ragrails.toml, the provider packages you’ve installed, your API keys, and (optionally) vector database connectivity, then reports what’s wrong and how to fix it.
Start with the Setup Wizard
doctor is most useful after the setup wizard has written .ragrails.toml. Run bare ragrails first:
ragrails setup subcommand. The setup wizard is the bare ragrails command.
What it checks
- Config file:
.ragrails.tomlexists and is valid TOML. - Required sections:
vector_store,embedding,llm,rerankerare present. - Provider choices:
vector_store.provideris one ofqdrant,qdrant_cloud,pinecone,weaviate;llm.provideris one ofopenai,anthropic,google. - Required values: collection, embedding provider/model, LLM model and max tokens are set.
- Installed packages: the provider packages your config needs are importable (with the install hint if not).
- Environment variables: the API keys for your configured providers are set.
- Connectivity (with
--connections): Qdrant or Qdrant Cloud is reachable.
OK, WARN, or FAIL with a one-line fix.
Flags
In CI
--json prints a structured report and exits non-zero if any check fails, so you can gate a deploy on a healthy config:

