Prompt AI to Find Contradictions in a Document
A plain request to find contradictions returns a confident list, half of it paraphrase mistaken for conflict. Turning it into an extraction task fixes both the false pairs and the misses.
Prompt AI to find contradictions in a document and you will get five or six items back, delivered with the usual confidence. Two will be real, two will be the same point stated twice in different words, and one will be a sentence the document does not contain. Worse, the real contradiction you were worried about may not appear at all, especially if it sits in the middle of a long file.
Both problems have the same root. "Find contradictions" asks for a judgement, and judgements are unverifiable. Ask for extracted claims with quoted spans first, and comparison second, and you get output you can check.
Why a plain prompt asking AI to find contradictions in a document fails
Paraphrase read as conflict. Models flag restatements. "Payment is due within 30 days" and "invoices are settled monthly" are consistent in most readings, but they are superficially different, and a model told to hunt for difference will file them.
Position effects. Attention to the middle of a long input is measurably weaker than to the beginning or end. The widely cited Lost in the Middle study by Liu and colleagues found that model performance is highest when relevant information sits near the start or end of the input and degrades noticeably when it sits in the middle, including in models built for long contexts. A single-pass contradiction sweep over forty pages inherits that curve directly.
Unverifiable output. "Section 4 conflicts with the introduction" sends you back to read both sections. If the model was wrong, you have spent the time anyway, and after three wrong items people stop checking, which is when a hallucinated conflict gets treated as real.
Stage one: build the claim table
Do not ask about contradictions yet. Ask for claims.
Extract every factual claim from the document below. Do not interpret,
summarise or judge. One row per claim.
| ID | QUOTE | LOCATION | SUBJECT | ASSERTION |
- QUOTE: the sentence verbatim, exactly as written
- LOCATION: the heading or clause number it sits under
- SUBJECT: the thing the claim is about, 1 to 4 words, reused across rows
wherever claims concern the same thing
- ASSERTION: what the quote asserts about the subject, in your own words,
under 15 words
Rules:
- Only claims that are checkable. Skip opinions, aims and marketing language.
- Never alter a QUOTE. If a sentence is long, quote it in full anyway.
- If a sentence contains two claims, give it two rows.
DOCUMENT:
---
[paste here]
---The SUBJECT column is the mechanism. By forcing claims about the same thing into the same bucket, you turn an open-ended search across the whole document into a comparison inside small groups. Instead of the model scanning forty pages for tension, it compares four rows that all say SUBJECT: payment terms.
Quoting verbatim is the other half. Every row is now a string you can find with a search, which makes a fabricated claim obvious rather than plausible.
Stage two: compare within subjects
Feed the table back and ask a narrow question.
Here is a claim table. For each SUBJECT with two or more rows, decide
whether the assertions can all be true at once.
Output only genuine conflicts, as:
- SUBJECT
- IDs in conflict
- The two quotes, verbatim
- CONFLICT TYPE: direct | numeric | conditional | scope | definitional
- WHY: one sentence stating what cannot be true at once
Do not report:
- The same claim stated in different words
- Claims that are consistent because they apply to different cases.
Say which cases if you are unsure.
- General vagueness
If no subject contains a conflict, reply: NO CONFLICTS FOUND.The CONFLICT TYPE field does the same filtering work a type field does in a proofreading pass: a paraphrase pair fits none of the five categories, so it tends not to get written. The explicit NO CONFLICTS FOUND verdict matters for the same reason it always does, because a model asked for a list will supply one.
Conflict type | Looks like |
|---|---|
Direct | One clause permits what another forbids |
Numeric | Two different figures for the same quantity |
Conditional | Two rules whose triggers overlap and whose outcomes differ |
Scope | A rule stated as universal in one place and limited in another |
Definitional | One term used with two meanings |
The scope and definitional types are the ones humans miss, and they are usually where the expensive problems live. A contract that defines "business day" in clause 2 and then uses it to mean calendar day in clause 19 is not a typo.
Handling documents too long for one pass
Chunk by section, not by token count, and run stage one per section. Then concatenate the claim tables and run stage two once over the combined table. This works because the table is small even when the document is not, so the comparison stage sees everything at once without any of it sitting in a weak position.
Two practical notes. Keep the LOCATION values distinct across chunks so you can trace a row back. And run stage one twice per section if the document is consequential: compare the two tables, and anything that appears in one and not the other is a flag worth a human read.
A worked example on a short policy
Take four sentences from a returns policy, spread across three sections.
Section 2: Customers may return any item within 30 days of delivery. Returns require the original packaging. Section 5: Sale items are final and may not be returned. Section 9: Refunds are issued within 14 days of receiving the returned item.
Stage one produces four rows, and the SUBJECT column does the sorting: two land under returns eligibility, one under return condition, one under refund timing.
Stage two then faces a small, well-posed question rather than a document to scan. Inside returns eligibility it finds a scope conflict: section 2 states a universal right to return "any item", section 5 removes it for a category. Neither sentence is wrong on its own, and together they leave a genuine ambiguity about a sale item returned on day 10.
Note what it does not flag. The packaging requirement and the 30-day window sit under different subjects, so they are never compared, which is correct. And the 14-day refund window is never paired with the 30-day return window. That pairing is the false positive a plain prompt produces almost every time, because two different numbers near the word "days" look like a contradiction to a model scanning for difference.
That is the whole value of the subject grouping. It does not make the model smarter. It stops it comparing things that were never answers to the same question.
Verify before you act
The output is a hypothesis list. The verification step is mechanical and should not be skipped: search for each quote in the source. If the string is not there, discard the item and treat the rest of that run with suspicion. Fabricated quotes cluster.
For anything with money or legal consequence, this method narrows where a professional should look. It does not replace one, and a model's reading of a conditional clause is not advice. The related caution about using AI to summarise a legal contract applies here with more force, because a missed contradiction is an invisible failure rather than an obvious one.
If your actual question is how two documents differ rather than whether one document is self-consistent, that is a different job with a different method: see prompting AI to compare two documents. The general principles behind splitting a judgement into extraction then comparison are in our framework for prompts that work.
Frequently asked questions
Why does AI invent contradictions that are not in the document?
Because it was asked to produce a list and nothing rewarded returning an empty one. Requiring verbatim quotes and permitting a no-conflicts verdict removes most of it.
How long can the document be?
One pass holds up to a few thousand words. Past that, extract claims section by section and compare the combined table, so nothing important depends on being read from the middle of a long input.
Can this check a document against an external standard?
Not as written. This finds internal inconsistency. Checking against an external rule means supplying that rule as a second input and comparing claims to it, which is a different prompt.
Which conflicts does it miss most often?
Conflicts by omission, where two sections are individually consistent and neither covers a case. Nothing in the text contradicts anything, and the gap is still a problem.
Is a smaller model good enough for the extraction stage?
Often yes. Extraction with verbatim quoting is a mechanical task, and the comparison stage is where reasoning quality shows. Splitting the job lets you spend the money only where it changes the answer.
How did this land?
About the author

Developer Advocate
Steve builds something with Swarmz every week and writes up what worked, what broke, and what he'd do differently. Tutorials and hands-on guides are his lane.


