Services
ArticlesRequest a consultationContact

Guide

How to check AI output against its source

If your product uses a model to write a record, a message, or an answer, you have to check that output against the source it came from.

By Thomas Wagenberg, founder of Wagenberg Technology Group. I don't think a good demo is proof it's ready. I think you need a sample of real outputs, and a written rule for what "matches the source" means. You also need a way to stop a bad answer from being saved or sent.

That's an AI output review. Some teams call the same work an LLM output audit. Take what the model produced, put it next to the source, and write down where it matches, where it's incomplete, and where it invented something.

This is not a guide to tools that guess whether a person wrote the text. Those answer a different question. You can run this review in staging, on your own, before launch. If the feature already talks to users, do the same review on a held-out sample before you widen it.

The short answer

Pick cases the team did not use to tune the prompts. For each one, put the output next to its source. Score it against a written rule, not against "does this sound right." Anything with a fixed shape, like a total, a date, an ID, or an allowed value, should also be checked in code. A person should see the cases that fail, or the cases the system isn't sure about, before those results go out.

If you can't show me the source, the rule, and a sample of misses, I wouldn't call the feature reviewed.

Why "it sounded right" fails

A model is good at producing text that looks finished. That can hide a miss for a long time, because the first few examples a team reads often look fine.

Two public cases are enough to make the point. I didn't test those systems, and I didn't work on those cases.

In March 2024, The Markup reported that New York City's MyCity chatbot gave businesses advice that didn't match the law, including bad guidance for landlords. The bot sounded official, but the answers didn't match the rules.

In 2024, the Civil Resolution Tribunal in British Columbia held Air Canada responsible after its chatbot described a bereavement-fare refund the airline's own policy didn't offer. CBC's report on Moffatt v. Air Canada is a clear public summary. Air Canada argued that the chatbot was a separate legal entity that is responsible for its own actions. The tribunal rejected that argument. The company still had to stand behind what the bot said.

I think the lesson for a team about to launch is plain. If you don't check the output against the source, you find out from a user, and you may still be accountable for what it said.

How I would run the review

Do this in staging. Use real-shaped data, but not live customer messages you're not allowed to put there.

1. Name the source. For each kind of output, write down where the answer is supposed to come from. That might be a policy page, a record in your database, a document the user uploaded, a product catalog, or a combination. If the source isn't named, you can't say whether the output is right.

2. Write the match rule before you score anything. "Looks good" isn't a rule. A usable rule says what has to be present, what must not be invented, and what happens when the source doesn't contain the answer. For a refund question, the bot may only state a policy that appears on the current policy page. If the page is silent, it must say it doesn't know. For extracted fields, the total on the record must equal the total on the document, or the record is held.

3. Use a held-out sample. Take examples the team did not use to write or tune the prompts. If you only score the cases you already practiced on, you'll overstate how well it works. I would include easy cases, messy ones, and at least a few where the correct answer is "the source doesn't say."

4. Put the output next to the source and score it. For each case, record match, partial, invented, or missing. Quote the phrase that failed and the source line it should have followed. If you can't point to a source line, that's already a finding.

5. Put validation in code for anything with a fixed shape. Dates, totals, IDs, email addresses, allowed statuses, and other closed values shouldn't depend on a person noticing. A rule in code can reject or hold those before they're saved. Prompts help, but I wouldn't rely on a prompt alone for a field that can be checked.

6. Give a person a real job, not a pile of raw text. Human review only works if the reviewer can see the output and the source together, and can approve, edit, or hold it. If the queue is unreadable, people will start clicking through it. I go through that field by field in Which AI-extracted fields need human review?

7. Write the release decision from the sample. Describe the cases, the misses, and what you still haven't covered. Decide in writing what is allowed to go out without review, what must be held, and what will be retested after the next prompt or rule change. If you change the prompt, rerun the same held-out sample. A new demo isn't a retest.

NIST's AI Risk Management Framework is a public reference for talking about validity and accountability without dressing the work up. The review itself is still this: output, source, rule, sample, and a written decision.

What this looks like in practice

I published a human-reviewed document extraction demonstration on invented invoices, including the failures and the limits of the test. It isn't client work, and it isn't a claim about anyone else's documents. I put it up so you can see the format: what was checked, what missed, and what I would not claim from that test.

If your feature drafts messages or answers questions instead of filling fields, the method is the same. The source might be a policy or a record instead of an invoice. The scoring still has to say whether the answer matched that source, not whether it read well.

How I'd decide whether to launch

I would launch only if there's a written source and a written match rule for each kind of output. A held-out sample has been scored against that rule, and the misses are visible. Fixed-shape fields are validated in code, or explicitly held for a person. Someone can do the review with the output and the source in one place. You can rerun the same sample after a prompt or rule change.

If any of those is missing, I think you have a demo, not a reviewed feature.

If you want this run as a formal AI data and output review, with patterns written up and fixes in reviewed pull requests, that's the service page. The wider list is the pre-launch software audit checklist. I reply from the contact page.

Frequently asked questions

What's the difference between an AI output review and an LLM output audit?

I use them for the same work: check what the model produced against the source it should have used, on a sample you can defend, and write down the misses. The word audit can sound more formal than the work is. What matters is the output next to its source.

Can't we just improve the prompt?

Sometimes that helps. It often isn't enough, especially for values you can check in code, or for answers that have to match a policy word for word. If you change a prompt, rerun the same held-out sample. Don't take a few new examples as proof.

How many examples do I need?

Enough that you can describe the miss patterns, including cases where the source doesn't contain the answer. It depends on how varied your inputs are. If the sample is too small to show a failure you already worry about, it isn't big enough.

Does this replace a security review?

No. This is about whether the output matches its source. It doesn't replace a permission review, a data-handling review, or a penetration test. Passwords, API keys and bulk customer data shouldn't be pasted into tools that aren't approved for that data.

Is your document extraction demo a client result?

No. It's a demonstration on invented documents, with the failures published. I wouldn't treat it as proof of how the same method would score on someone else's data.