FDEInterviews logo
★ Read firstEACL 2024

Ragas: Automated Evaluation of Retrieval Augmented Generation

The 2023 paper that split RAG quality into three checks you can run without reference answers: is the context focused, is the answer grounded in it, does it address the question.

Breakdown by FDE Interviews · 11 min read · Updated

About the original · 2023
AUTHORS
Es, James, Espinosa-Anke, Schockaert
FROM
Exploding Gradients, Cardiff University, AMPLYFI
PUBLISHED
Sep 2023 · EACL 2024
CITED BY
1,201Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 21% of this breakdown.

01

The paper in one minute

A RAG system can fail in several ways. The retriever can return the wrong passages, or the right ones buried in noise. The generator can ignore the passages and answer from memory, or answer a slightly different question. A single "was the answer good?" score cannot tell these apart, and in 2023 most teams had nothing better, partly because good evaluation seemed to need human-written reference answers they did not have.

Ragas, from Exploding Gradients and Cardiff University, proposes three metrics that need no reference answer, only the question, the retrieved context and the generated answer.

  • Faithfulness: is every claim in the answer supported by the context? A model breaks the answer into short statements, then checks each against the context. The score is the fraction supported.
  • Answer relevance: does the answer address the question? A model writes questions that the answer would answer; the score is how similar those questions are to the real one, measured with embeddings.
  • Context relevance: is the retrieved context focused? A model extracts the sentences needed to answer; the score is the share of the context they make up.

To test the metrics, the authors built WikiEval: 50 recent Wikipedia pages, questions about them, and pairs of answers or contexts that two human annotators compared. Ragas agreed with the humans 95% of the time on faithfulness, 78% on answer relevance and 70% on context relevance, well ahead of simply asking a model for a score.

THE IDEA, VISUALLY
THREE CHECKS, NO REFERENCE ANSWER NEEDED Question from the user Context what was retrieved Answer what was generated Context relevance focused on the question? Faithfulness claims backed by context? Answer relevance answers the question? Each check is broken into small model calls: list the claims, verify each one. AGREEMENT WITH HUMANS, WIKIEVAL pairwise choices matching people, Table 1 .95 .72 .54 faithfulness .78 .52 .40 answer relevance .70 .63 .52 context relevance Ragas score 0-10 pick the better one
Three relationships, three metrics. Each pair of question, context and answer gets its own check, so a failing score points at the stage that failed.
Research notes: the problem, approach and results
0.95

agreement with human judges on faithfulness, against 0.72 for a model asked to score 0 to 10

3metrics

faithfulness, answer relevance and context relevance, none needing a reference answer

50pages

in WikiEval, the authors' human-labeled test set, built from Wikipedia pages newer than the model's training data

THE PROBLEM

RAG systems fail in different places (retrieval, grounding, relevance), but teams scored them with one number, or not at all, because reference answers were rarely available.

THE IDEA

Measure each relationship separately with small, targeted model calls: break the answer into claims and verify each against the context; reverse-engineer the question from the answer; extract the useful sentences from the context.

THE RESULT

Faithfulness agreed with human judgments 95% of the time on the authors' test set, far above asking a model for a single score, and the metrics became a common default for RAG evaluation.

02

Why it matters to an FDE

When a customer says "the assistant gives wrong answers", Ragas-style metrics turn the complaint into a location.

Low faithfulness means the generator is the problem. The answer says things the context does not. Fix the prompt, tell the model to say when the context is insufficient, or change models. Retrieval was not the issue.

Low context relevance means retrieval is noisy. The right passage may be there, surrounded by irrelevant ones. Fewer, better-ranked passages usually help, both for cost and because models use focused context better.

Low answer relevance means it answered the wrong question, or half of it, or padded it. Often a prompt or query-rewriting issue.

Two cautions come from reading the paper closely. First, its test set contrasted easy cases, such as an answer written with the source against one written without it. Real failures are subtler, so treat 95% as an upper bound and calibrate on the customer's data. Second, nothing in the three metrics checks whether the retrieved context contained the needed information at all. An answer can be perfectly faithful to an incomplete context. Measuring that, retrieval recall, needs labeled questions, so keep a small labeled set alongside the reference-free metrics.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 49 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦3 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The ideas to keep, each metric's recipe, what it misses, and the misreadings to avoid

    Free account
  2. 04How it works

    The three prompts in detail, the WikiEval construction and the baselines, with a diagram

    Premium
  3. 05The numbers that matter

    The agreement table, the annotator baseline, and what the comparison does and does not show

    Premium
  4. 06Try it yourself

    Faithfulness and context relevance from scratch, with a stand-in verifier and three answers to score

    Premium
  5. 07Where it breaks

    The validation gaps, the metric blind spots, and what practitioners added

    Premium
  6. 08Using it on a deployment

    Two layers: labeled questions for recall, reference-free metrics for the rest

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →