IdeaCredIdeaCred

balavenkatesh3322/rag-doctor

75

๐Ÿฉบ Agentic RAG pipeline failure diagnosis tool. Tells you why your RAG failed โ€” chunk fragmentation, retrieval miss, position bias, hallucination, or query mismatch โ€” with a root cause ID and concrete fix. CLI + Python SDK + Ollama support.

What's novel

๐Ÿฉบ Agentic RAG pipeline failure diagnosis tool. Tells you why your RAG failed โ€” chunk fragmentation, retrieval miss, position bias, hallucination, or query mismatch โ€” with a root cause ID and concrete fix. CLI + Python SDK + Ollama support.

Code Analysis

17 files read ยท 4 rounds

Diagnoses why a RAG pipeline produced a wrong answer by running six structural and semantic checks (retrieval recall, position bias, chunk quality, hallucination grounding, query rewriting, chunk optimization) in a priority-ordered decision tree and returning a classified root cause with an actionab

Strengths

Clean tool-based architecture with a practical 4-tier embedding fallback chain (sentence-transformers โ†’ Ollama โ†’ TF-IDF โ†’ char-frequency) that works with zero hard dependencies; the hallucination tracer's claim-level grounding and the chunk optimizer's grid search with recall@k measurement are genuinely useful algorithms.

Weaknesses

The 'agentic' branding overstates what is a sequential if/else decision tree; models.py contains dead duplicate classes (Document, ToolResult) that are never imported, and the hallucination tracer's hardcoded 0.80 pass threshold is inconsistent with its configurable 0.60 faithfulness_threshold parameter.

Score Breakdown

Innovation
6 (25%)
Craft
78 (35%)
Traction
15 (15%)
Scope
67 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+2

Craft

Ci+5
Tests+8
Polish+3
Releases+4
Has License+5
Code Quality+21
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+0
Has Dependency Mgmt+5

Traction

Forks+6
Stars+6
Hn Points+0
Watchers+3
Early Traction+0
Devto Reactions+0
Community Contribs+0

Scope

Commits+3
Languages+5
Subsystems+13
Bloat Penalty+0
Completeness+7
Contributors+0
Authored Files+12
Readme Code Match+3
Architecture Depth+5
Implementation Depth+8

Evidence

Commits

6

Contributors

0

Files

79

Active weeks

1

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

1

Forks

1

License

MIT