AI agents, plainly

Why agents make things up, and how to catch it

Every language model sometimes gives a wrong answer in a confident voice. Plan the job so those answers are caught before they act.

By the duyan team · Updated · 3 min read

AI agents, plainly

In short

  • Models predict likely text, and likely text can be wrong.
  • Training and scoring have rewarded guessing over saying "I don't know".
  • In an agent, a made⁠-⁠up answer can become an action, such as a wrong payment.
  • Catch it with your own records, citations, a route to a person and a test set.
  • Where nothing can check the answer, keep the model out of that step.

Every model makes things up sometimes

Every language model sometimes makes things up, and no setting switches it off. Anthropic's own guide says even the most advanced models still do it.

So we design each job so a wrong answer is caught before it sends, pays or changes anything.

Why models make things up

A language model writes the most likely next words, given what it has read. Usually the likely answer is the right one.

Where it doesn't know, the likely-sounding answer comes out in the same confident tone. That is what people call a hallucination.

A 2025 paper by researchers at OpenAI and Georgia Tech gives two reasons. First, during training, a model can't always tell true statements from false ones that look similar.

Second, most tests used to rank models give no credit for "I don't know". A guess sometimes scores, so models learn to guess, like a student on a multiple-choice exam.

A made⁠-⁠up answer sounds as sure as a correct one, so the tone tells you nothing.

Why it matters more in an agent

A chatbot's wrong answer is text on a screen. An agent's wrong answer can become an action, such as a wrong supplier code or a promised refund.

Whoever relies on these answers is held responsible for them. In 2024, a Canadian tribunal made Air Canada pay a passenger the discount its chatbot had wrongly promised.

In 2023, a US court fined two lawyers and their firm $5,000. They had filed a brief citing six cases that ChatGPT invented.

Answering from your records helps

The common fix is grounding. Before answering, the agent looks up your own documents and answers from those.

It helps a lot, but it doesn't end the problem. In 2024, a Stanford study tested legal research tools built this way.

They still gave false or badly sourced answers 17% to 33% of the time.

The checks that catch it

Answer only from your records. Tell the agent to use the documents it was given, and to say so when the answer isn't there. Anthropic's guidance says permission to say "I don't know" sharply cuts false answers.

Cite the source for each fact. Each answer points to the record, line or page it came from. A program then checks that the quote exists in that source.

If the agent can't cite a source, the answer goes to a person. In back-office work, this one rule does much of the checking.

Route unsure cases to a person. A model's own sense of its confidence is a weak signal. Use checks you can compute instead.

For example, does the total match the line items? Does the supplier exist in your system? Do two runs of the same case agree?

When a check fails, the case goes to a person with a short note. The agent moves on to the next one.

Make actions wait for approval. Anything that sends, pays or deletes waits for a person. A wrong answer then stays a draft.

Measure it with a test set. Keep past cases with known answers, and add cases whose answer isn't in your records. A good agent says it doesn't know on those.

Run the set after every change, and count the made⁠-⁠up answers by type. A rising count is the early warning.

When the checks can be lighter

Some uses can live with the odd made⁠-⁠up line, such as a draft a person rewrites anyway. Brainstorming and notes for your own reading are others.

There, heavy checks cost more than the errors. A person reading the result is check enough.

Some answers can't be checked against anything, such as advice sent straight to a customer. Keep the model out of those steps.

What to do

  • List each place in the job where a model's answer turns into an action.
  • At each one, add a source citation or a computed check, and a route to a person.
  • Add questions to your test set whose answers aren't in your records.
  • Read a sample of answers each week, and check their sources by hand.

Have a back⁠-⁠office job in mind?

We build software that does the retyping, with a model only in the steps that need one. A 2⁠-⁠week pilot is $2,400, and builds start at $15,000, fixed.

Sources

  1. Kalai, Nachum, Vempala and Zhang, "Why Language Models Hallucinate", arXiv:2509.04664 (4 September 2025), arxiv.org (accessed 5 November 2026)
  2. Civil Resolution Tribunal of British Columbia, Moffatt v. Air Canada, 2024 BCCRT 149 (14 February 2024), canlii.org (accessed 5 November 2026; the writer's copy was a PDF on a travel blog, replaced by the editor with CanLII's official text)
  3. US District Court, S.D.N.Y., Mata v. Avianca, Inc., No. 22⁠-⁠cv-1461 (PKC), Opinion and Order on Sanctions (22 June 2023), law.justia.com (accessed 5 November 2026)
  4. Magesh, Surani, Dahl, Suzgun, Manning and Ho, "Hallucination⁠-⁠Free? Assessing the Reliability of Leading AI Legal Research Tools", Journal of Empirical Legal Studies 22(2), 2025, doi.org (preprint arXiv:2405.20362) (accessed 5 November 2026)
  5. Anthropic, "Reduce hallucinations", platform.claude.com (accessed 5 November 2026)

Tell us the job

Bring a job to build or a role to fill. We reply within one working day, with questions or a next step.