How should a team measure whether its RAG system improved after a change?
- Exam domain
- Retrieval-augmented generation
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why B is the answer
Run a fixed set of questions with expected answers and score retrieval and answers
A fixed evaluation set lets you compare versions on the same questions, scoring both whether the right passages were retrieved and whether the answers are correct and grounded.
Remember: Measure on a fixed set.
In detail
- Fixed test set.
- Score retrieval and answers.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Ask the developer whether answers feel betterWrong
Opinions are not repeatable.
B. Run a fixed set of questions with expected answers and score retrieval and answersRight
Measure on a fixed set.
C. Count the number of documents in the index, since more documents means better answersWrong
Index size says nothing about quality.
D. Check that the latency went downWrong
Faster is not the same as better.
Use case
An illustrative scenario, not a real incident.
Illustrative: a team keeps 200 graded questions and runs them on every change.
See it in different ways
flowchart LR S0["Build a question set"] --> S1["Run old and new"] --> S2["Score retrieval"] --> S3["Score answers"]
How to read this chart
- Read it in order: Build a question set, then Run old and new, then Score retrieval, then Score answers.
mindmap
root(("RAG evaluation"))
n1["Retrieval"]
n2["Right passages found"]
n3["Answer"]
n4["Correct"]
n5["Grounded"]
n6["Cites source"]How to read this chart
- The centre is "RAG evaluation".
- "Retrieval" covers "Right passages found".
- "Answer" covers "Correct", "Grounded", "Cites source".