Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Evaluates retrieval and generation quality in RAG pipelines, scoring recall, precision, MRR, faithfulness and completeness separately.
59% 95%+36 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 13 of 22 without it.
What is the default top-K document retrieval depth evaluated by /eval-rag when the --k parameter is omitted from the command?
Identifies 5 as the default retrieval depth K
3 of 3 safety checks passed
Evaluate retrieval + generation quality in RAG pipelines.
Assess a Retrieval-Augmented Generation pipeline by evaluating retrieval and generation independently, then measuring end-to-end quality. Retrieval scoring checks if the right documents are fetched (recall, precision, MRR, NDCG). Generation scoring checks if the answer is faithful to retrieved context (no hallucination), relevant to the question, and complete. Identifies whether failures originate in retrieval, generation, or both, so you know where to invest improvement effort.
# Full RAG evaluation
/eval-rag --pipeline rag/ --queries eval/queries.jsonl --golden eval/golden.jsonl
# Evaluate retrieval only
/eval-rag --pipeline rag/ --queries eval/queries.jsonl --golden eval/golden.jsonl --stage retrieval
# Evaluate generation only (with pre-fetched contexts)
/eval-rag --contexts retrieved.jsonl --queries eval/queries.jsonl --golden eval/golden.jsonl --stage generation
# Custom retrieval depth
/eval-rag --pipeline rag/ --queries eval/queries.jsonl --golden eval/golden.jsonl --k 10
# Compare two retrieval configurations
/eval-rag --pipeline rag-v1/ --pipeline-b rag-v2/ --queries eval/queries.jsonl --golden eval/golden.jsonl
| Flag | Type | Default | Description |
|---|---|---|---|
--pipeline | string | required | Path to RAG pipeline configuration or directory |
--pipeline-b | string | — | Second pipeline for A/B comparison |
--queries | string | required | Path to evaluation queries (JSONL) |
--golden | string | required | Path to golden answers with relevant doc IDs (JSONL) |
--contexts | string | — | Pre-retrieved contexts (skips retrieval stage) |
--stage | enum | both | Evaluate: retrieval, generation, both |
--k | int | 5 | Retrieval depth (top-K documents) |
--output | string | stdout | Write report to file |
--format | enum | markdown | Output format: markdown, json |
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.