Skip to main content
A search assistant is asked how automotive technicians get paid. It retrieves three passages and writes a fluent answer: pay varies by state, highest in Alaska at 23.70anhour,"andthelowestaveragepayinMississippi(23.70 an hour, "and the lowest average pay in Mississippi (18.60 per hour or $38,900 per year)”. Alaska is in the passages. Mississippi is not. The model made it up, and nothing in the answer’s tone says so. A decision model can read the passages and the answer and say whether anything in the answer goes beyond them. This cookbook builds that check and measures it on answers people have already marked.

The rows

RAGTruth (MIT) holds answers that six models wrote to real search questions from the passages they were given, with every unsupported span marked by human annotators. Its QA test split has 900 answers; 160 contain something the passages don’t support.
answer_support.yml
Checking all 900 took 15 seconds and cost $0.03. The Mississippi answer: unsupported yes, at 0.93.

How good is it

The two sides of the dial say different things. When the check is sure an answer is supported, it is right: at 0.7 it passes 489 of the 900 answers, and 4 of those had something the annotators marked. When it says unsupported, it is often stricter than the annotators: of the 270 answers it leans yes on, 142 were marked. So the spec never rejects on its own (yes: 1.0): a person sees every answer the check isn’t sure is supported, 46% of them here, and 156 of the 160 marked answers are among them. Some of that strictness is the question working. Its most confident disagreement, at 0.96, is an answer on how the body’s systems work together that adds “the skeletal system provides support and structure” and more, none of it in the passages. The annotators let textbook knowledge pass; the question asks about the passages only. Which rule you want is a product decision, and hunch review records it as gold either way.

Which model to ship

The same check, grouped by the model that wrote the answer: It orders the six models as the annotators do, without their labels. That makes it a cheap way to compare a new model or a new retrieval setup on your own questions before switching.

Use it

In an app, before an answer is shown:
Replace the rows with your own questions, retrieved passages and answers, review a few dozen, and hunch test measures the check on your data instead of RAGTruth’s.