Evaluate RAG answer quality automatically
Score groundedness, relevance, and completeness with judge prompts plus deterministic checks wired into CI.
Track: 🤖 AI Engineering · Domain: RAG Pipelines · Level: advanced · ~45 min
Who this is for: AI Engineers, ML Engineers, LLM App Developers, Agent Builders
When to Use This Skill
Score groundedness, relevance, and completeness with judge prompts plus deterministic checks wired into CI. Use it whenever a matching task appears in conversation — the agent loads these instructions on demand.
Steps
- Freeze 30-100 test questions with known-good source passages
- Run deterministic checks first: citation present, answer not empty, no refusal
- Use an LLM judge with rubric scores 1-5 for groundedness and relevance
- Swap judge models occasionally; if two judges disagree widely, fix the rubric
- Log every eval artifact: question, chunks used, answer, scores, cost, latency
- Block merges when groundedness average drops more than 0.3 below baseline
Common Pitfalls
- Judging with the same model that generated the answer, inflating scores
- Evals only run manually, drifting from production reality
Success Signals
- Groundedness average 4.3+ of 5
- Eval suite runtime under 10 minutes
Commands
Install with skills CLI
npx skills add aniruddhaadak80/skills --skill rag-pipelines-eval-rag-quality
Install globally
npx skills add aniruddhaadak80/skills --skill rag-pipelines-eval-rag-quality -g
Part of aniruddhaadak80/skills · Browse all at https://skills.sh/aniruddhaadak80/skills