Skip to main content

Retrieval-Augmented Generation Evaluation in the Era of Large Language Models

Paper: Retrieval Augmented Generation Evaluation in the Era of Large Language Models: A Comprehensive Survey Authors: Aoran Gan et al. arXiv: 2504.14891, submitted April 21, 2025. (arXiv) Read the original paper on arXiv

1. What is this paper about?

The paper is not mainly proposing a new RAG algorithm. Instead, it asks:
How do we properly evaluate whether a RAG system is actually good?
A RAG system has multiple stages:
Therefore, simply checking whether the final answer looks good is not enough. The paper divides RAG evaluation into:
This internal vs. external evaluation structure is one of the most important ideas in the paper. (arXiv)

2. Why is RAG evaluation difficult?

A traditional LLM can be evaluated mainly by looking at its generated response. RAG is different because the final answer depends on several components:
A bad answer could therefore come from:
  • Bad document
  • Bad chunking
  • Bad embedding
  • Bad retrieval
  • Bad ranking
  • Missing context
  • LLM hallucination
  • Incorrect reasoning
  • Poor prompt
  • Safety problem
The paper emphasizes that RAG performance depends not only on individual components but also on their interactions. (arXiv)

3. What exactly should we evaluate?

The paper identifies two fundamental problems:

Retrieval

Did we retrieve the right information?

Generation

Did the LLM use that information correctly?
This gives us six major concepts: (arXiv)

4. Retrieval Evaluation

Suppose the user asks:
“What is the refund policy for product X?”
The retriever returns:
We need to determine whether these documents are useful.

4.1 Retrieval Relevance

Question:
Are the retrieved documents relevant to the user’s query?
Example:
High relevance. But:
Low relevance. The paper describes retrieval relevance as measuring how well retrieved documents match the information needed by the query. (arXiv)

5. Recall@K

Recall asks:
How many of the relevant documents did we retrieve?
Formula: Recall@K=Relevant documents retrieved in top KTotal relevant documentsRecall@K = \frac{\text{Relevant documents retrieved in top K}} {\text{Total relevant documents}} Example: There are 10 relevant documents. Your top-5 retrieval contains 8 relevant documents: Recall@5=810=0.8Recall@5 = \frac{8}{10}=0.8 So: Recall@5 = 80% The paper includes Recall@K as a conventional retrieval metric. (arXiv)

6. Precision@K

Precision asks:
How many of the retrieved documents are actually relevant?
Suppose we retrieve 5 documents:
3 are relevant. Precision@5=35=60%Precision@5 = \frac{3}{5}=60\% So:

7. F1 Score

F1 combines:
Formula: F1=2×Precision×RecallPrecision+RecallF1 = \frac{2 \times Precision \times Recall} {Precision + Recall} It is useful when you want a balance between retrieving enough information and avoiding irrelevant information. (arXiv)

8. Ranking Metrics

Retrieval is not only about what we retrieve. It is also about where we place it. Imagine:
versus:
The second retrieval is generally more useful because the important information appears earlier. The paper discusses rank-based metrics such as:
  • MRR
  • MAP
  • nDCG
  • Hit@K
These appear across the surveyed RAG benchmarks and frameworks. (arXiv)

9. Comprehensiveness / Coverage

This is an important concept. Imagine a question requires three pieces of information:
The retriever returns:
The retrieved information is relevant, but incomplete. So we need to measure coverage. The paper defines coverage in terms of how much of the relevant information is actually retrieved. (arXiv) Think:

10. Retrieval Diversity

Suppose your top-5 results are:
They may all be relevant, but they don’t provide much additional information. Therefore, RAG evaluation can also consider diversity among retrieved documents using approaches such as embedding/cosine similarity. (arXiv)

11. Generation Evaluation

Once we have retrieved documents, the LLM generates the answer. Now we need to evaluate three important things:

12. Answer Relevance

Question:
Does the generated answer actually answer the user’s question?
Example:
Good relevance. But:
is not relevant. The paper defines response-query relevance as alignment between the answer and the intent/content of the original query. (arXiv)

13. Faithfulness

This is one of the most important RAG metrics. Faithfulness asks:
Is the generated answer supported by the retrieved documents?
Suppose the retrieved document says:
LLM says:
Good faithfulness. But if the LLM says:
then the answer is not faithful to the retrieved context. So:
The paper explicitly defines faithfulness as consistency between the generated response and relevant source documents. (arXiv)

14. Correctness

Correctness asks:
Is the generated answer actually correct compared with a ground-truth answer?
Example:
This is different from faithfulness.

Faithfulness vs Correctness

This distinction is extremely important for interviews.

Case 1

Retrieved document:
Generated:
Correct: Yes Faithful: Yes

Case 2

Retrieved document contains an incorrect statement:
Ground truth:
Generated answer:
Faithful to retrieved context: Yes Actually correct: No Therefore:
This is why evaluating only the final answer isn’t enough.

15. Traditional Generation Metrics

The survey discusses traditional NLG metrics such as:

Exact Match

Very strict.

ROUGE

Measures overlap between generated text and reference text.

BLEU

Uses n-gram overlap, historically common in machine translation.

METEOR

Considers things such as stemming and synonym matching.

BERTScore

Uses contextual embeddings to measure semantic similarity rather than relying only on exact word overlap. (arXiv)

16. Why traditional metrics aren’t enough

Consider: Reference:
“The refund period is 30 days.”
Generated:
“Customers can get their money back within thirty days.”
Word overlap might be low. But semantically, the answer is correct. This is why modern RAG evaluation increasingly uses:
rather than relying only on lexical overlap.

17. LLM-as-a-Judge

One of the biggest developments discussed in the paper is using another LLM to evaluate the RAG output. For example:
The evaluator could be prompted:
The survey identifies systems such as RAGAS and Databricks Eval that use LLM-driven evaluation approaches. (arXiv)

18. Why use an LLM as an evaluator?

Traditional metrics can struggle with:
An LLM judge can potentially evaluate these more flexibly. For example:
A lexical metric might see differences. An LLM can recognize the semantic equivalence.

19. But LLM-as-a-Judge has problems

This is an important part of the paper. LLM-based evaluation can itself be:
  • Expensive
  • Prompt-sensitive
  • Model-dependent
  • Difficult to reproduce
  • Potentially biased
  • Affected by the evaluator’s own errors
The paper specifically notes concerns around the black-box nature, stability, security, and cost of LLM-based evaluation. (arXiv) So:
This is an important research problem.

20. Upstream Evaluation

A very useful section of the paper is that evaluation shouldn’t start only at retrieval. You should also evaluate:

Chunking Evaluation

Bad chunking can cause bad retrieval. Example:
Bad chunks:
Good chunks preserve useful context. The paper discusses evaluating chunking both intrinsically and by measuring its downstream effect on retrieval and response quality. (arXiv)

21. Embedding Evaluation

The embedding model determines how text is represented in vector space. For example:
A good embedding model should place semantically related text close together. The paper points to benchmarks such as:
  • MTEB
  • MMTEB
for evaluating embedding models. (arXiv)

22. External Evaluation

Internal evaluation asks:
“Are the RAG components working?”
External evaluation asks:
“Is the whole system suitable for real-world use?”
The paper focuses particularly on:
(arXiv)

23. Safety Evaluation

A RAG system can have security and safety problems. For example:
The survey discusses areas including:

Privacy

  • PII leakage
  • Information extraction attacks
  • Membership inference

Fairness

  • Bias
  • Stereotypes
  • Unequal performance

Transparency

  • Citation accuracy
  • Traceability
  • Explanation quality
(arXiv)

24. Efficiency Evaluation

A RAG system must also be fast and affordable. Important metrics include:

TTFT

Time To First Token How long the user waits before seeing the first generated token.

Total latency

Time from:
The paper specifically identifies TTFT and total response latency as important efficiency measures. (arXiv)

25. Important RAG Evaluation Frameworks

The survey covers many frameworks and benchmarks. Some important ones to know: The survey’s framework table shows that different benchmarks target different aspects rather than using one universal metric. (arXiv)

26. The paper’s major observation

The authors analyzed 582 papers from high-level NLP/AI venues to study RAG evaluation practices. (arXiv) One important finding was:
while:
So research has historically focused more on whether RAG can retrieve and generate correctly than on whether it is safe and efficient in real-world deployment. (arXiv)

27. Traditional metrics vs LLM-based metrics

The paper highlights an interesting trend.

Traditional metrics

Examples:
Advantages:
  • Simple
  • Relatively reproducible
  • Cheap
  • Easy to compare

LLM-based metrics

Examples:
Advantages:
  • Better suited to semantic evaluation
  • Can handle more complex outputs
  • More flexible
Disadvantages:
  • More expensive
  • Prompt-dependent
  • Model-dependent
  • Less reproducible
The survey reports that traditional metrics still dominate usage, although LLM-based evaluation has been increasing. (arXiv)

28. Main challenges identified by the paper

Challenge 1 - LLM evaluator reliability

An LLM judge can make mistakes.
The judge itself isn’t guaranteed to be correct.

Challenge 2 - Evaluation cost

Large-scale RAG evaluation can become expensive because you’re evaluating:
The paper identifies evaluation cost as an important open problem. (arXiv)

Challenge 3 - Dynamic knowledge

RAG often uses changing information. For example:
A benchmark using static documents may not properly test real-world freshness. This motivates benchmarks using live or rapidly changing sources. (arXiv)

Challenge 4 - Multilingual evaluation

Many existing frameworks focus heavily on languages such as:
The authors highlight the need for more linguistically diverse evaluation frameworks. (arXiv)

Challenge 5 - End-to-end evaluation isn’t enough

A final score might tell you:
But it doesn’t necessarily tell you why. Was the problem:
The paper calls for more fine-grained functional decomposition and deeper evaluation. (arXiv)

29. The most important mental model

Remember RAG evaluation as:

30. Practical RAG evaluation pipeline

If you build a RAG application, don’t evaluate only the final answer. Use this:

31. What you should remember for AI Engineer interviews

If an interviewer asks:

“How do you evaluate a RAG system?”

A strong concise answer is:
I evaluate RAG at both the retrieval and generation levels. For retrieval, I use metrics such as Recall@K, Precision@K, MRR or nDCG to measure whether relevant documents are retrieved and ranked properly. For generation, I evaluate answer relevance, faithfulness to the retrieved context, and correctness against a ground-truth answer. For production systems, I also measure latency, cost, safety, citation accuracy, and robustness. LLM-as-a-judge methods such as RAGAS can complement traditional metrics, but they should be validated because the evaluator itself can introduce bias or errors.

32. The biggest takeaway from the paper

The paper’s central message can be simplified to:
A RAG system should not be judged only by whether its final answer looks correct. We need to evaluate the entire pipeline—from chunking and embeddings to retrieval, generation, safety, and efficiency.
The paper essentially moves the question from:
to:
That is the key idea behind RAG evaluation. (arXiv)