The RAG Debugging Challenge
Retrieval-Augmented Generation (RAG) applications fail in specific ways that generic metrics cannot diagnose. When a RAG system produces a poor response, the failure could originate in any of three stages:- Retrieval — The system retrieved irrelevant or insufficient documents
- Generation — The LLM generated content not grounded in the retrieved documents
- Query understanding — The response doesn’t address what the user actually asked
The RAG Health Metrics Triad
RAG Health Metrics is a purpose-built diagnostic framework consisting of three evaluators that work together to pinpoint exactly where RAG pipelines fail:
All three evaluators return detailed
reasoning explaining the score, enabling you to understand not just what failed but why.
Availability
Diagnostic Workflow
Use the three evaluators together to diagnose specific failure modes in your RAG pipeline:Scenario 1: Hallucination (High Relevance, Low Faithfulness)
The response addresses the user’s question (high Answer Relevance) but includes claims not supported by the retrieved documents (low RAG Faithfulness). This indicates the LLM is generating plausible-sounding content rather than grounding its response in the provided context. Root cause: Generation layer — the LLM is not sufficiently constrained by the retrieved documents. Actions to investigate:- Review the system prompt — does it instruct the LLM to only use provided context?
- Check if the retrieved documents contain enough detail to answer the question
- Consider adding explicit grounding instructions to the prompt
Scenario 2: Off-Topic Response (Low Relevance, High Faithfulness)
The response accurately reflects the retrieved documents (high RAG Faithfulness) but doesn’t answer what the user asked (low Answer Relevance). The LLM faithfully summarized the wrong information. Root cause: Retrieval layer — the retrieved documents are relevant enough to generate a response, but don’t contain the information needed to answer the specific query. Actions to investigate:- Review the retrieval query — is it capturing the user’s intent?
- Check if the knowledge base contains the needed information
- Consider improving query expansion or embedding quality
Scenario 3: Bad Retrieval (Low Context Relevance)
The retrieved documents are not relevant to the user’s query at all (low Context Relevance). Downstream evaluators may score unpredictably because the entire pipeline is working with the wrong source material. Root cause: Retrieval mechanism — the vector search, keyword matching, or hybrid retrieval is pulling wrong documents. Actions to investigate:- Review the embedding model — does it capture semantic similarity for your domain?
- Check chunking strategy — are documents split at appropriate boundaries?
- Examine the retrieval query formulation — is the user’s intent preserved?
- Consider re-indexing with a domain-adapted embedding model
Using RAG Health Metrics
In Experiments (Evals SDK)
Evaluate RAG pipelines systematically against test datasets:In Agentic Monitoring
Configure Evaluator Rules to continuously evaluate production RAG spans. Navigate to your application’s Evaluator Rules tab and add rules for Answer Relevance, Context Relevance, and RAG Faithfulness. Map the evaluator inputs to your span attributes. See Evaluator Rules for step-by-step configuration instructions.RAG Faithfulness vs Faithfulness (Centor Model)
Fiddler provides two separate faithfulness evaluators with different architectures:
Choose RAG Faithfulness when you need detailed reasoning and diagnostic context as part of the RAG Health Metrics triad. Choose Faithfulness (Centor Model) when you need sub-100ms latency for production guardrails.
Complementary Metrics
RAG Health Metrics works alongside Fiddler’s existing 80+ LLM metrics. RAG systems fail in specific ways that generic metrics cannot diagnose — RAG Health Metrics provides the targeted diagnostics, while metrics like toxicity, PII detection, coherence, and sentiment provide complementary quality and safety coverage.Next Steps
- RAG Health Metrics Tutorial — End-to-end hands-on guide
- Experiments Getting Started — RAG evaluation use case
- Evaluator Rules — Configure production monitoring