Session 7. Retrieval and grounding metrics — Tue 22 Sep

Quick quiz (ungraded)

Q1: Why does this session measure hit rate rather than recall and precision?

  • It is the coarser one. Hit rate @3 says the document was somewhere in the top three, not that it ranked first or that the other two were useful.

  • Correct. Recall and precision need every relevant passage judged for every query; hit rate needs one pair, and five cases beat zero cases by infinity.

  • They are the standard retrieval pair. They are just expensive to label, which is the whole reason hit rate is the day-one metric.

Q2: The expansion rule takes the labeled set from 80% to 100%. What do you report?

  • It is measured on the five cases the rule was written to fix. On four probe queries it never saw, hit rate @1 fell from 75% to 0%.

  • Correct. One change, measured twice — once where it was designed to help and once where it was not.

  • That is a mood, not a regression. A regression sentence names what fires, on what, and the number it moved.

Q3: A fake that answers every question with the same sentence and cites rag-basics every time scores 50% on the golden set. Which passes were free?

  • Three of the eight cases retrieve nothing, so the agent refuses before any model call. The fake's answer never ran on them.

  • Correct. Those cases measure the retriever and the refusal path. Split refusal from grounded and the fake scores 1/5 on the half that is about grounding.

  • Those are failures, not passes. They fail because the expected doc id is missing from the citations.

Q4: Case 1 passed with the answer "Everything is in rag-basics, trust me." and the citation rag-basics. What is wrong with the pass condition?

  • The citation is correct and the sentence is supported by nothing. A correct doc id next to an empty claim is exactly the false positive to hunt.

  • Correct. That is claim support, and it is missing. The capstone grader adds it as the claim_support gate.

  • It is not fabricated. Retrieval did return rag-basics for that question, so the agent's fabricated-citation strip has nothing to remove.

Q5: Your golden set scores 100%. What is the next thing you do?

  • A perfect score is evidence about the system and about the evaluator at the same time, and you cannot yet tell which.

  • Useful later, and it does not answer the question. More cases graded by the same weak pass condition inherit the same blind spot.

  • Correct. Until you have attacked the evaluator on purpose, the pass rate is a guess about what your pass rate means.