Sub topic 11
Checking Claims Against Real Sources
This chapter assumes you have read the earlier chapters on why models fabricate and on red flags in an answer. You should be comfortable reading short Python. The goal is to turn a suspicion ("this looks off") into a decision ("this is supported" or "this is not").
Why a source check is different from other checks
A consistency check asks the model again. A prompt for uncertainty asks the model to rate itself. Both still rely on the model's own text. A source check compares a claim with something that exists outside the model: a paper, a statute, a dataset, a vendor's documentation, a court record.
That outside anchor is why source verification is the most reliable check in this tutorial. It is also the slowest, so you need to decide what to check and how deeply.
Step 1: Break the answer into checkable claims
An answer is usually a bundle of claims, and they carry different risk. Split the answer into single statements that could each be true or false.
Take this model output:
"The 2019 study by Hartmann and Liu in Nature Climate Change found that urban tree cover reduced summer temperatures by 2.4°C, and the finding has been replicated in 12 cities."
It contains at least five claims:
- A study exists with these authors.
- It was published in 2019.
- It appeared in that journal.
- It reported a 2.4°C reduction.
- It has been replicated in 12 cities.
Claim 1 is the anchor. If the study does not exist, claims 2 to 5 collapse with it. Check the anchor first and stop early if it fails.
Prioritize claims that match the high-risk content types you already know: citations, exact numbers, quotations, dates, names of obscure people or organizations, and legal or medical specifics.
Step 2: Find a primary source
A primary source is the original record of the thing: the paper itself, the law's published text, the company's filing, the official dataset. A secondary source summarizes or reports on it. A tertiary source summarizes the summaries.
Prefer the highest source you can reach:
| Source type | Examples | Use it for |
|---|---|---|
| Primary | The paper, the statute, the official release notes, the raw data | Final confirmation |
| Secondary | News coverage, review articles, textbooks | Locating the primary source |
| Tertiary | Encyclopedias, other chatbots' answers | Orientation only |
Asking a second chatbot to confirm the first one is not a source check. Models trained on similar text can repeat the same invented fact, and a model asked "is this true?" often agrees.
Locating a source from scratch
Do not ask the model for a link and trust it. Models produce plausible URLs that lead nowhere or to unrelated pages. Instead, search for the source yourself using the details in the claim:
- For a paper, search a scholarly index or the journal's own site by title and author. A DOI (a permanent identifier for a paper) should resolve at doi.org to the same title the model gave.
- For a law or regulation, use the government's official publication site.
- For software behavior, use the project's documentation for the version you run, or read the source code.
- For a statistic, find the agency or organization that publishes the dataset.
If a model gives you a link, open it. A working link only proves a page exists. You still have to read the page and confirm it says what the model claims.
Step 3: Compare the claim with the source, detail by detail
Finding a real source is not the end. Fabrication often hides in the details of a real thing. Check these mismatches:
- Real source, wrong details. The paper exists, but the year, authors, or journal differ.
- Real source, wrong finding. The paper exists but reports a different number, or the opposite effect.
- Real source, missing context. The paper's result applied to mice, a single city, or one product version, and the model dropped the limit.
- Real quote, wrong attribution. The sentence exists, but someone else wrote it.
- Plausible but absent. The source is real, but the claimed passage is nowhere in it.
The last case is the one people miss. A model that has seen many papers on a topic can describe what such a paper would say.
Mechanical checks help with text, not judgment
When you have the source text, you can automate the narrow question "does this exact wording appear?" The function below ignores case and whitespace differences, so a quotation that was line-wrapped in the source still matches.
def quote_supported(quote, source_text):
def norm(s):
return " ".join(s.lower().split())
return norm(quote) in norm(source_text)
source = "The report was published in March and covers 2021 data."
print(quote_supported("covers 2021 data", source))
print(quote_supported("covers 2023 data", source))The first call prints True and the second prints False. The check is deliberately strict. A paraphrase will return False even when the meaning is right, and that is acceptable: a False means "look at this by hand."
Numbers deserve their own check because a changed digit is easy to read past. This function lists numbers in a claim that appear nowhere in the source.
import re
def numbers_in(text):
return set(re.findall(r"\d+(?:[.,]\d+)*", text))
def unsupported_numbers(claim, source_text):
return sorted(numbers_in(claim) - numbers_in(source_text))
source = "The report was published in March and covers 2021 data across 14 regions."
claim = "The report covers 2023 data and 14 regions."
print(unsupported_numbers(claim, source))This prints ['2023']. The 14 is supported, and the year is not.
The verification workflow
The steps above form a loop that you can stop at any point once you have enough confidence for the task.
Note the last decision. A source can match the claim and still not apply: a different country's law, an older software version, a study of a different population.
What "unsupported" means
Not finding a source does not prove the claim is false. It proves you could not support it. Keep three states separate in your notes:
- Supported: you read a source that says this, and it applies.
- Contradicted: a source says something different.
- Unverified: you found nothing either way.
Treat "unverified" as unusable for anything that matters. You can still use it as a lead, such as a search term or a guess to test, but do not repeat it as fact.
Matching effort to risk
You cannot check everything. Spend effort where an error costs the most and where fabrication is most likely.
| Situation | Reasonable effort |
|---|---|
| Brainstorming names for a project | None. Nothing depends on facts. |
| Background for your own learning | Spot-check the two or three claims you would repeat |
| A work document others will rely on | Check every citation, number, and quotation against primary sources |
| Legal, medical, financial, or safety decisions | Verify against primary sources and have a qualified person review |
A useful habit is to check in proportion to two questions: how bad is it if this is wrong, and how likely is this kind of claim to be invented? A citation in a report scores high on both.
Common mistakes
- Verifying with the model. Asking "are you sure?" or "is this citation real?" gets a fluent answer, not a check.
- Stopping at existence. Finding the paper but not reading the passage the claim depends on.
- Trusting the first search hit. Search results can include pages that repeat a model-generated claim. Look for the original publisher.
- Checking only what looks suspicious. Fabricated details often look ordinary. Check by risk category, not by gut feeling.
- Ignoring dates. A true statement from an older version of a standard or library can be false now.
Exercise
A model says: "According to Section 4.2 of the 2022 Smith report, error rates fell to 3.1%." You find a 2022 report by Smith. Its Section 4.2 discusses staffing. A search of the whole text finds "3.1" only in a table of survey response rates. What is the status of the claim, and what do you do next?
Show answer
The claim is unsupported, and the source contradicts its location: the report exists, but Section 4.2 does not say this, and the only "3.1" refers to response rates, not error rates. Mark it unverified or contradicted, do not repeat it, and check whether the report reports error rates elsewhere. If it does not, drop the claim. Because the report is real but the passage is not, also re-check the model's other claims about this report, since the fabrication was hidden inside a real source.