How to use it
- Install it with pip install rag-doctor.
- Pass your query, the answer, the retrieved documents and the expected answer.
- Read the root cause, its severity and a suggested configuration fix.
How it's built
A Python library with a set of diagnostic checks for common RAG failures (chunk fragmentation, retrieval misses, context position bias) that returns a structured report.
Why it matters for businesses
RAG systems fail silently and teams burn time guessing. A root cause in seconds turns debugging into a checklist and protects trust in AI answers.
In real life
A support bot keeps citing the wrong policy. RAG Doctor shows the right document was retrieved but buried, and suggests turning on a reranker.

