Skip to content
mentoor

Topic 3 of 5 · 4 min read

End-to-end answer correctness

Goal: Define an end-to-end rubric for answers and score a set of outputs, including correct refusals.

Score the final answer with a small rubric of separate checks, not one overall grade. Retrieval and faithfulness metrics tell you where a pipeline breaks. An end-to-end score tells you whether the user got what they needed.

Check yourself · 1 of 3

An answer states the correct refund window but omits that refunds go only to the original card. Which rubric check fails?

Choose one answer

Why it matters

An answer can retrieve the right chunk, stay faithful to it and still fail: it leaves out the exception, cites the wrong source or answers a question it should have declined. A single "good or bad" mark hides which of those happened.

A rubric that works

For each question, write a short gold answer, the key facts the answer must contain, and whether it is answerable from your corpus. Then score these separately, each pass or fail:

  • Correctness: does the answer agree with the gold answer on the key facts? Check numbers, names and conditions.
  • Completeness: are all required facts present? "Refunds take 5 days" is correct but incomplete if the gold answer also says "only to the original card".
  • Citation accuracy: does each cited source actually contain the claim it is attached to? A real link that does not support the sentence counts as a failure.
  • Refusal accuracy: for unanswerable questions, did the system say it could not find the answer? For answerable ones, did it avoid refusing?
  • Format and tone: only if the product needs it, such as a required language or length.

Who scores

Use code where you can: exact match for ids and numbers, a check that cited ids were in the retrieved set. Use an LLM judge for meaning, giving it the question, the gold answer, the key facts and the answer, and asking for a verdict per rubric line with a one-sentence reason. Calibrate it on a human-labelled sample, as for faithfulness.

Before and after

Weak: "Quality score: 7/10." Fixed: "Of 50 questions: 41 correct, 36 complete, 38 with accurate citations. Of 10 unanswerable questions, 6 were refused and 4 got an invented answer." The second report says where to work: the 4 invented answers and the incomplete ones.

What goes wrong

  • Rewarding fluent refusals. A system that refuses everything scores perfectly on unanswerable questions. Always report refusal on both answerable and unanswerable sets.
  • Judge sees only the answer. Without the gold answer, the judge guesses at truth from its own memory.
  • One metric to rank changes. An update can raise correctness and lower citation accuracy. Keep the columns separate.
  • Stale gold answers. When the source document changes, update the gold answer, or correct answers start to fail.

Examples

A scored output set

Q Answerable Correct Complete Citation ok Refused
q1 yes pass pass pass no
q2 yes pass fail pass no
q3 yes fail fail fail no
q4 no n/a n/a n/a yes
q5 no n/a n/a n/a no

q2 is correct but leaves out the exception. q5 should have been refused and was not, which is the failure users trust least.

A judge prompt for one rubric line

Question: {question}
Gold answer: {gold}
Key facts required: {facts}
System answer: {answer}

For each key fact, say present or missing. Then give
completeness as pass only if every fact is present.
Return JSON: {"facts": [...], "completeness": "pass|fail", "reason": "..."}

One rubric line per call gives clearer verdicts than asking for a grade.

Key points

  • Score correctness, completeness, citation accuracy and refusal accuracy as separate pass or fail checks.
  • Give the judge the question, the gold answer and the key facts, not only the answer.
  • Report refusals on answerable and unanswerable questions, since refusing everything games one side.
  • Check each citation against the text it points to, not just whether the link exists.
  • Keep gold answers in step with the source documents so they do not go stale.

Common mistakes

  • Giving one overall quality grade that hides whether the failure was correctness, completeness or citation.
  • Scoring only answerable questions, so invented answers to unanswerable ones go unseen.
  • Counting a citation as correct because the link resolves, without checking that it supports the claim.
  • Letting gold answers drift away from the current source documents.

Check yourself · 2 of 3

A system refuses every question it is given. On a set of 10 unanswerable questions it scores 10 of 10 on refusals. Why is this score misleading alone?

Choose one answer

Check yourself · 3 of 3

An answer cites a document link that opens fine, but the page does not mention the claim. How should citation accuracy be scored?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic