Back to articles

Practical use

How to ask AI for sources without accepting an invented reference

A step-by-step way to check each fact the AI hands you.

Asking "cite your sources" does not guarantee that the sources exist. What guarantees it is checking each one outside the AI.

Phenomenon

In 2023, in a case in the United States (Mata v. Avianca), lawyers filed a brief with six court decisions as precedent. None of them existed: they were generated by ChatGPT. Judge P. Kevin Castel fined the lawyers US$5,000 on June 22, 2023. The source of this account is the Wikipedia page about the case, which is a secondary source. Check the original decision as well. It is not just one case. Walters and Wilder (Scientific Reports, 2023) asked ChatGPT for short literature reviews on 42 topics and checked 636 citations. In their sample, 55% of the GPT-3.5 citations and 18% of the GPT-4 citations were fabricated. Among the real citations, 43% (GPT-3.5) and 24% (GPT-4) had substantive errors.

Mechanism

Ji et al. (ACM Computing Surveys, 2023) call hallucination generated content that contradicts the source (intrinsic) or that cannot be verified from it (extrinsic). Anthropic's documentation describes the same problem: even advanced models can generate text that is factually incorrect or inconsistent with the given context. On the cause, Anthropic's glossary describes pretraining as predicting the next word given the previous text. None of the sources consulted claims that this alone explains every invented reference, so treat it as context, not as a diagnosis. What the documentation offers are techniques to reduce the problem: let the model say "I don't know," ask for literal quotations from documents you provided before the analysis (recommended for long documents, above 20 thousand tokens), and ask that each claim be supported by a citation, dropping the claim that has no support.

What this does not prove

The Walters and Wilder percentages apply to two models from 2023 and to one specific task (a literature review). They do not say how often a current model is wrong on your request. And Anthropic's own documentation warns that these techniques reduce hallucinations, but do not eliminate them. Asking for sources is a reduction technique. Checking is a separate step.

A check you can run

For each reference the AI returns: 1. Search for the exact title in a source independent of the AI: the publisher's site, a DOI resolver, or an academic database. If you cannot find it, mark it as unverified. 2. If you find it, check the authors, year, and journal. A mismatch is an error, even if the article exists. 3. Open the text and locate the claim the AI attributed to the source. If it is not there, the citation does not support the fact. 4. Record the result: exists and matches, exists with an error, not found. At the end you have your own rate, on your topic. To reduce the problem beforehand: provide the document, ask for literal quotations first, and allow the answer "I did not find it." The Source checker skill on this site has a template. Sources: Anthropic, Reduce hallucinations: https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations (opens in a new tab) Walters and Wilder, Fabrication and errors in the bibliographic citations generated by ChatGPT, Scientific Reports 13, 2023: https://www.nature.com/articles/s41598-023-41032-5 (opens in a new tab) Ji et al., Survey of Hallucination in Natural Language Generation, ACM Computing Surveys 55(12), 2023: https://dl.acm.org/doi/10.1145/3571730 (opens in a new tab) Mata v. Avianca, Inc. (secondary source): https://en.wikipedia.org/wiki/Mata_v._Avianca,_Inc. (opens in a new tab) Anthropic, Glossary: https://platform.claude.com/docs/en/about-claude/glossary (opens in a new tab)

Comments

Loading comments…