glossary

Evals

RAG evaluation

RAG evaluation is two checks, not one: whether retrieval returned the passages that contain the answer, and whether the reply stayed faithful to those passages without adding a fact they do not support.

Abracadabra Team Glossary

How it works

Split the grade in two. The retrieval check asks whether the passages that support the answer were actually returned. The faithfulness check asks whether the reply says only what those passages support. For a staff handbook bot, a question about parental leave can fail the first check when the leave passage never appears, and fail the second when the passage appears and the reply adds a week the passage does not grant. A single "the answer looked right" mark hides which of the two broke.

Do not let a fluent reply pass both checks. A reply can sound right, match a reviewer's memory, and still add a fact the retrieved page does not contain. That is a faithfulness fail even if retrieval succeeded. The reverse is also common: retrieval missed the page, and the reply happened to be correct from the model's memory. That is a retrieval fail, and it will break the day the handbook changes. Keep the two results in separate columns. Fixing the chunker will not fix a model that embellishes.

A worked example

Parental leave in a staff handbook

A person asks how many weeks of parental leave the handbook allows. In this example the leave passage states twelve weeks and was the right page to retrieve. On one run the retriever returns the expenses page, and the reply says twelve weeks anyway, from the model's memory. Retrieval fails, and the reply is not credited as faithful because it was not grounded in the passages returned. On the next run the retriever returns the leave passage, and the reply says thirteen weeks. Retrieval passes. Faithfulness fails, because the extra week is not in the passage. The two runs need different fixes, a retrieval fix and a reply fix, which is why one blended score would have sent the work to the wrong place.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • Only the final sentence is graded, retrieval of the expenses page is invisible, and the team rewrites the prompt when the index was the thing that missed.
  • The check passes whenever any passage comes back, the leave page is not among them, and a nearby policy is treated as the right evidence.
  • A faithfulness judge prefers a smooth paraphrase, nods at the thirteenth week, and the added fact survives because it was written in a confident sentence in the reply.

How to measure it

Report retrieval and faithfulness as two marks on each case. A case that fails both is not one bug, and the next edit should name which mark it is meant to move.

Read fails where the reply was right and the passages were wrong, separately from fails where the passages were right and the reply added a fact. Those are different queues. Keep those two queues apart when planning the edit.

Further reading

How Abracadabra helps

When an answer is wrong, separate a missed passage from an unfaithful reply by reading the turn beside the retrieved text. The next case should name which of the two checks failed.

Abracadabra does not run the eval or the simulation. Search by meaning, and by tool event, for the sessions that stopped, and use that wording when you write the case. After a change, compare task success for that task and cohort with the previous period.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.