Evaluate retrieval and generation separately
What it is
A RAG answer is produced by two parts in sequence, and each can fail on its own.
- Retrieval evaluation asks: did the search bring back the chunks that contain the answer?
- Generation evaluation asks: given those chunks, did the model write a correct, grounded answer?
An end-to-end score, judging only the final answer, tells you something is wrong but not where.
Why it matters
The fix depends entirely on which half failed.
- Poor retrieval is fixed with chunking, hybrid search or reranking.
- Poor generation is fixed with the prompt, the context layout or the model.
- Without separate scores, teams spend weeks rewriting prompts for a problem that lives in the search step.
- This is the single most important idea in RAG evaluation.
In the real world: A team about to switch to a more expensive model first measures retrieval, finds the right chunk is missing for 30 percent of questions, and fixes the search instead.
Visual example
DiagnosisThe pair of scores tells you which half to work on.
Judging the system by reading a few answers and deciding they 'look good'. Fluent answers hide retrieval failures: the model writes a confident reply from whatever it was given.