Skip to content
mentoor

Topic 5 of 5 · 3 min read

Hallucinations with search, files and agents

Goal: Find a misattributed claim in a search-grounded or file-grounded answer by comparing it with the cited source.

Search, file upload and agent tools make errors rarer, but they add a new kind: the answer cites a real source that does not say what the answer claims. A citation is a pointer, not a proof.

Check yourself · 1 of 3

A search-connected assistant answers with a link to a real article. What is the best next step?

Choose one answer

Why it matters

When an answer comes with links or page references, people relax. The sources look like evidence. But the model still writes the sentence, and it can attach a real source to a claim that the source does not support.

What goes wrong

  1. Misquoting. The answer puts words in quotation marks that the source never used, or changes a number from 12 to 21.
  2. Blending. With two or more documents, the model may merge them. A figure from the 2022 report appears under the name of the 2023 report, or one company's policy is credited to another.
  3. Wrong support. The link opens a real page about the same topic. The sentence the answer relies on is not on it.
  4. Overreach. The source says "may be linked to". The answer says "causes".
  5. Missed or stale content. The tool read only the first part of a long file or an old cached page, then answered as if it had read everything.
  6. Agents compound it. An agent that runs many steps can take an early wrong claim and build later steps on it. Each step looks sensible, and the mistake spreads.

How to check

  1. Open the cited page or the file at the cited location.
  2. Find the exact sentence behind the claim. Read what is around it.
  3. Compare the wording, the number, the date and the strength of the claim.
  4. For several documents, confirm each fact against the document it is credited to.
  5. For an agent run, read the log of what it opened, and check the first step that supplied a key fact.

Before and after

Before: You see "Source: Annual report, p. 14" and accept the claim that revenue grew 18%.

After: You open page 14. It says 8% growth for one division and 18% for another. The answer merged them. You correct the claim and report the real figures.

What to remember

  • A cited answer is better than an uncited one, but it still needs a spot check.
  • Spot check the claims you will act on first.
  • Ask the tool to show the sentence it relied on, then compare it with the page yourself.
  • If the source does not support the claim, trust the source.

Examples

Two reports blended

You upload the 2022 and 2023 sales reports and ask for the growth figure.

The answer says: "2023 sales grew 15% (2023 report, p. 3)."

Page 3 of the 2023 report says 9%. The 15% appears in the 2022 report. The model credited the figure to the wrong file. Always open the cited page.

Stronger than the source

Source sentence: "Coffee drinking may be associated with lower risk."

AI claim: "Coffee lowers your risk." The link is real, but the claim is stronger than the source. Change it to match what the source says.

Key points

  • Search and file tools reduce invented facts but add misquotes, blended sources and unsupported citations.
  • A citation points to a source; it does not prove that the source says what the answer claims.
  • The model can change a number, a date or the strength of a claim while still citing a real page.
  • With several documents, a fact can be credited to the wrong one.
  • In multi-step agent runs, an early wrong claim can spread into later steps.

Common mistakes

  • Treating a citation as proof without opening it.
  • Checking that the page exists but not that it supports the exact claim.
  • Trusting a figure in a multi-document answer without confirming which document it came from.
  • Letting an agent run many steps without reading what it actually opened.

Check yourself · 2 of 3

You upload two reports and the answer credits a figure to the wrong one. Which name describes this error?

Choose one answer

Check yourself · 3 of 3

The source says "may be linked to lower risk". The AI answer says "lowers your risk". What is the problem?

Choose one answer

Practice items, not counted towards your mastery.

Start here