What You’ll Learn
- Set up a RAG experiment pipeline with the Fiddler Evals SDK
- Use Answer Relevance, Context Relevance, and RAG Faithfulness together
- Interpret diagnostic results to identify pipeline failures
- Distinguish between retrieval and generation problems
Prerequisites
- Fiddler Account: Active account with API access
- Python 3.11+
- Fiddler 26.25 or later
- Fiddler Evals SDK 0.8.0 or later:
pip install "fiddler-evals>=0.8.0" - Familiarity with: Experiments Getting Started
Step 1: Connect and Set Up
Step 2: Create a RAG Experiment Dataset
Create test cases that include user queries and retrieved documents. The quality of your evaluation depends on realistic, representative test cases.Step 3: Define Your RAG Task
The task function represents your RAG application. It receives inputs and returns the generated response.Step 4: Run the RAG Health Experiment
Use all three evaluators together for comprehensive diagnostics:Step 5: Analyze Diagnostic Results
Examine the results to identify which pipeline stage is causing issues:Step 6: Compare RAG Configurations
Use experiments to compare different RAG configurations:Understanding the Results
Score Interpretation
Common Diagnostic Patterns
Next Steps
- RAG Health Diagnostics — Conceptual deep-dive into the diagnostic framework
- Evals SDK Advanced Guide — Advanced evaluation patterns
- Evaluator Rules — Set up continuous RAG monitoring in production