Sub topic 9
Keep Every Claim Traceable to the Source
This chapter assumes you can write prompts for a chat model, know the core message of your source asset, and can read short Python. By now you have a prompt that combines core message, brand voice, and a format spec. This chapter covers what that prompt cannot guarantee: that every fact in the draft came from the source.
Why models drift from the source
A model rewriting a webinar into a LinkedIn post tends to add things. It may round "about 40 customers" to "dozens", add a plausible statistic, or attribute a quote to the wrong speaker. Short formats make this worse, because a hook line invites a punchy number.
The errors fall into a few common types:
- Invented numbers: a percentage or count that appears nowhere in the source.
- Changed numbers: "12%" becomes "over 10%", or a timeframe shifts.
- Upgraded claims: "may reduce" becomes "reduces".
- Borrowed knowledge: a true fact the model knows but your source never stated. It is still unsupported, because you cannot show where it came from.
Layer 1: constrain the prompt
The prompt from the previous chapter already includes the key instruction:
Use only facts, numbers, and claims that appear in the source.
If something is not in the source, leave it out.Wrapping the source in <source> tags also helps, because it marks clearly where the permitted facts live. This lowers the error rate. It does not remove errors, so you need checks on the output.
Layer 2: check numbers automatically
Numbers are the easiest claims to verify by machine. This function lists every number in the draft that is absent from the source.
import re
def numbers_in(text: str) -> set[str]:
return set(re.findall(r"\d+(?:[.,]\d+)*%?", text))
def unsupported_numbers(source: str, draft: str) -> list[str]:
return sorted(numbers_in(draft) - numbers_in(source))Try it on a small example:
source = "Our survey of 212 teams found that 38% cut reporting time."
draft = "Join the 212 teams, and 38% saved time. Most saw 2x output."
print(unsupported_numbers(source, draft))The output is ['2']. The regex reads "2x" as the number 2, and 2 does not appear in the source. A reviewer would then see the invented "2x" claim first.
Layer 3: mark what the check cannot see
The number check has limits. It cannot catch an upgraded claim, a wrong attribution, or a number that happens to appear elsewhere in the source but is used in the wrong context. It can also flag false positives: "three bullets" in a draft is not a statistic, and a written-out "forty" is invisible to the regex.
Layer 4: ask for traceability
You can ask the model to show its work. Add a requirement to the prompt that each claim is paired with the source sentence it came from, returned as a separate list:
After the draft, list each factual claim and quote the exact
source sentence that supports it. If you cannot quote one, do not
make the claim.A reviewer then compares quotes against the source instead of searching from memory. You can also check mechanically that each quoted sentence appears verbatim in the source. A quote that does not match is a strong sign of fabrication.
Common errors
| Error | Cause | Fix |
|---|---|---|
| Draft passes the number check but is still wrong | Claim was upgraded in wording | Compare claims to quotes during review |
| Many false flags | Format counts like "3 tips" | Ignore numbers the format spec itself creates |
| Model adds industry facts | Prompt did not forbid outside knowledge | State "leave it out" explicitly |
| Source is long and details are lost | Key claims buried in the text | Pass the extracted claims list alongside the source |
What to carry forward
Constrain the prompt, check what a program can check, and give the human reviewer a short list of suspicious items. The next step is the review itself, where a person approves each draft.
Exercise
A draft says "Teams saved 3 hours a week." Your source says "Teams saved about 3 hours a week in the pilot." The number check returns an empty list. Is the draft safe to publish without review? Explain.
Show answer
No. The number 3 appears in both texts, so the check passes, but the draft dropped "about" and "in the pilot". That turns a pilot estimate into a general claim. The check only finds new digits, so a human must still compare the wording of each claim to the source.
Exercise
Write one sentence you would add to a prompt so that a reviewer can verify each claim in a draft.
Show answer
"After the draft, list each factual claim with the exact source sentence that supports it, and omit any claim you cannot support with a quote."