Skip to content
Skills Library
AI & agents · Testing

rag-evaluation

/rag-evaluation

Measure retrieval and generation separately against a judged set, so you know whether a wrong answer came from the search or the model. Use when a RAG system is unreliable and every fix is a guess.

Repository
AI-SKILLS ↗
Licence
MIT
Last repository change
05.09.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Measure retrieval and generation separately against a judged set, so you know whether a wrong answer came from the search or the model. Use when a RAG system is unreliable and every fix is a guess.

Original author description

Measure retrieval and generation separately against a judged set, so you know whether a wrong answer came from the search or the model. Use when a RAG system is unreliable and every fix is a guess.

How it works

  1. Method
  2. Boundaries
Original SKILL.md headings · 39 lines, 271 words
SKILL.md preview
---
name: rag-evaluation
description: Measure retrieval and generation separately against a judged set, so you know whether a wrong answer came from the search or the model. Use when a RAG system is unreliable and every fix is a guess.
---

# RAG evaluation

A RAG system fails in two distinct places: it retrieved the wrong
material, or it retrieved the right material and answered badly.
Evaluating end to end tells you it is broken; evaluating the stages
separately tells you where.

## Method

1. **Build a judged set from real questions.** Actual user questions
   with the passages that answer them and an acceptable answer,
   assembled once and maintained.
2. **Measure retrieval independently.** Was the answering passage in the
   top results? This single number isolates half the system and is the
   cheapest to improve (see relevance-tuning).
3. **Measure faithfulness separately.** Given the retrieved context, is
   the answer supported by it? An unfaithful answer with correct
   retrieval is a generation problem.
4. **Check for the confident empty case.** When nothing relevant was
   retrieved, does the system say so or invent an answer? This is the
   most damaging failure and the least measured.
5. **Test the questions your corpus cannot answer.** A system that
   refuses appropriately is working correctly, and a judged set of only
   answerable questions never tests it.
6. **Re-run on every change.** Chunking, embedding model, prompt, and
   reranker all interact, and a change that improves one stage can
   degrade the whole (see agent-eval-design).
7. **Track disagreement with human judgement.** Automated scoring drifts
   from what users consider a good answer, so periodic human review
   calibrates it.

## Boundaries

Evaluation measures the cases in the judged set, which ages as the
corpus and the questions change. Automated faithfulness scoring is
imperfect and can be gamed by hedging. Good scores on a small set do not
generalise to a long tail of unusual questions.

Versions

RepositoryScoreLicence
This page · Amey-Thakur/AI-SKILLS90MIT
claude-dev-suite/claude-dev-suite100MIT
latestaiagents/agent-skills98MIT
andreibesleaga/gabbe90CC-BY-4.0

Database snapshot: 13.11.2026 · package version c6095eee1209 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100retrieval-evaluation
    Evaluate a RAG or search feature in two stages, retrieval then generation. Use when answers are wrong or cite the wrong document, before changing the LLM, or for a new embedding model or re-index.
  • 90monitor-rag-quality
    Use this to measure and monitor the quality of a RAG (retrieval-augmented generation) pipeline - whether it retrieves the right context and answers faithfully. Trigger on "my RAG gives wrong answers", "is my retrieval any good", "the chatbot makes things up", "evaluate my RAG",…
  • 100rag-architecture-designer
    Design a Retrieval-Augmented Generation (RAG) pipeline architecture: ingestion, indexing, retrieval, generation, and evaluation components. Use when working on RAG architecture, retrieval pipelines, vector stores.
  • 100evaluate-rag
    Guides evaluation of RAG pipeline retrieval and generation quality. Use when evaluating a retrieval-augmented generation system, measuring retrieval quality, assessing generation faithfulness or relevance, generating synthetic QA pairs for retrieval testing, or optimizing chunking strategies.
  • 100rag-systems
    Designs, builds and debugs retrieval-augmented generation (RAG) - ingestion and parsing, chunking, embeddings, hybrid search with reranking, access control at retrieval time, grounded answers with citations, and retrieval and answer evaluation. Use when building search or Q&A…
  • 90rag-architect
    Use when the user asks to design RAG pipelines, optimize retrieval strategies, choose embedding models, implement vector search, or build knowledge retrieval systems.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.