An exercise to try
Compare two versions case by case
A higher total can hide cases that got worse. Sort fifty results into four piles, overall and by language, and find what the totals leave out.
- Time
- 15 minutes
- What you need
- This page and a place to write. No chatbot or code is needed.
Illustration. The library assistant, its versions and every result here are invented teaching material, not outputs from a model.
The story so far
A public library's AI assistant answers patrons' questions from a six-passage notice and cites the passage behind each claim. Its first candidate, version B, failed on questions asked in Hindi and was held back. The team fixed how it handles Hindi questions and called the result version C. This is the second round.
- Version A. The assistant as it runs today.
- Version C. Rewritten instructions for shorter answers and stricter citing, now with the Hindi fix. Same model, same notice.
Both versions answered the same 50 fresh held-out cases: questions kept aside and opened only after the grading rules were frozen. Twenty were asked in English and thirty in Hindi, shown here in English. Each answer was graded pass or fail on four rules: answer every part, state the policy correctly, make no unsupported claim, and cite a supporting passage.
The report's headline: version A passed 39 of 50, version C passed 43 of 50.
The fourteen cases that are not “both pass”
| Case | Language | A | C |
|---|---|---|---|
| R15 | English | fail | pass |
| R16 | English | fail | pass |
| R17 | English | fail | pass |
| R18 | English | fail | pass |
| R19 | English | pass | fail |
| R20 | English | fail | fail |
| R43 | Hindi | fail | pass |
| R44 | Hindi | fail | pass |
| R45 | Hindi | fail | pass |
| R46 | Hindi | pass | fail |
| R47 | Hindi | pass | fail |
| R48 | Hindi | fail | fail |
| R49 | Hindi | fail | fail |
| R50 | Hindi | fail | fail |
What went wrong in each, in one line. The next exercise prints version C's answers in full for the cases it fails.
- R15. A gave the opening hours with no citation; C cites D3.
- R16. A answered the return part only; C also answers the fee part.
- R17. A left out the “unless reserved” condition; C states it.
- R18. A cited D2 for the membership claim; C cites D6.
- R19. C says a book can be renewed twice and leaves out “for two weeks each time”.
- R20. A question about parking: both answer it instead of saying the notice does not cover it.
- R43. A answered the return part and skipped the fee part; C answers both.
- R44. A gave the opening hours with no citation; C cites D3.
- R45. A left out the photo ID; C includes it.
- R46. C gives the renewal rule with no citation.
- R47. C answers the return part and skips the fee part.
- R48. Asked about a lost book, both say only that there is no late fee and leave out the replacement charge.
- R49. Both say correctly that borrowed books have no late fees, but cite D1, the returns passage.
- R50. Both say the desk is open on public holidays; D3 says it is closed.
The other 36 cases passed under both versions: 14 asked in English and 22 in Hindi.
The library notice, six passages
D1. Returns. The outdoor book drop accepts returns every day. The library desk is closed on Sundays.
D2. Fees. Borrowed books have no late fees. Lost books can incur replacement charges.
D3. Opening hours. The library desk is open Monday to Saturday, 9 am to 6 pm. It is closed on Sundays and public holidays.
D4. Renewals. A borrowed book can be renewed twice, for two weeks each time, unless another member has reserved it.
D5. Lost books. The replacement charge for a lost book is the price printed in the library catalogue.
D6. Membership. Membership is free for residents. Bring one photo ID to join.
Step 1. Check the headline
Count the passes under A and under C from the table and the 36 shared passes. Do you get 39 and 43?
Step 2. Sort all fifty into four piles
The piles are both pass, only A passes, only C passes, and both fail. Write the count and the case numbers for each. The four counts add up to 50.
Step 3. Sort again by language
Make the same four piles for the 20 English cases and for the 30 Hindi cases. Then write each version's pass count in each language.
Step 4. Write what the totals hid
In two or three sentences, write what the headline 39 against 43 did not show. Leave the release decision for the next exercise.
Check your work
- Headline: A passes 36 + 3 = 39. C passes 36 + 7 = 43.
- All 50: both pass 36; only A 3 (R19, R46, R47); only C 7 (R15 to R18, R43 to R45); both fail 4 (R20, R48, R49, R50).
- English, 20 cases: both pass 14, only A 1, only C 4, both fail 1. A passes 15 of 20, C passes 18 of 20.
- Hindi, 30 cases: both pass 22, only A 2, only C 3, both fail 3. A passes 24 of 30, C passes 25 of 30.
What the totals hid:
- Ten cases changed, not four. C fixed seven and broke three; the gain of 4 is the difference between them.
- In Hindi, C fixed three and broke two, so its lead there is a single case: 25 against 24 of 30.
- Two of C's three losses leave something out: R19 drops “for two weeks each time”, and R47 skips the fee part. Shorter answers have a cost. The third, R46, drops a citation.
- Four cases fail under both versions, three of them in Hindi. A comparison of A and C never flags them, but they still need fixing.
The common wrong answer reads 43 against 39 as “C fixed four things and broke nothing”. Only the case-by-case piles show the three losses, and only the language column shows how thin the Hindi lead is.
Comparing case by case works because both versions answered the same questions, so a hard question is hard for both. Anthropic's note on statistics for evaluations recommends this paired analysis because it removes the variation in question difficulty.
Try a different case
Suppose the report had not recorded which language each question was asked in. Which of your four findings could you still make, and which would vanish? Name one field you would record with every case from now on.
Check this one too
Findings 1 and 3 survive: the ten changed cases and the losses that leave something out can be read from the case notes. Finding 2 vanishes, and so does the language half of finding 4, because nothing says which cases were Hindi. Record the language of every case, and any other group the release brief protects.
Where this sits: Compare two versions case by case in the long read. Next step: decide whether to release version C.