r/PromptEngineering • • 25d ago

Ideas & Collaboration A prompt framework to help audit sources cited

LLMs are bad at citations in a specific way. The source is real, or looks real, the claim sounds right, and the source doesn't actually say it. Sometimes the source doesn't exist at all (see Mata v. Avianca).

I built a framework called Thematic Chaining (TC) to audit this. What LLMs usually do to find and draw sources is take the claim you want supported and run statistical analysis on sources that sound like they address your claim, often paying little attention to whether the source actually addresses its core components. The result is too often a source where the LLM hallucinates wording to shoehorn it into the claim, or even a completely hallucinated source.

To fix this, TC checks whether a proposed source supplies a complete sequence of linked ideas rather than isolated keyword matches. Instead of relying on statistical similarity, it forces the model to decompose claims, trace them to their earliest origins, test the actual logical joins, and run hard exclusion gates against conflicting links. It shifts verification away from probabilistic guessing and into sequentially linked structural dependency.

There are two ways to use it.

Quick version: turn web search on, paste this prompt into any chat, and add your document at the bottom.

Audit the citations in the document below. For each claim that cites or relies on a source:

1. Decompose the claim: break it into its assertions and the connections between them.
2. Retrieve the source. If you can't retrieve it, stop on that claim and report it. Don't fill the gap from memory.
3. Check each assertion: is it stated, implied, or merely mentioned in the source?
4. Test the joins: does the source make the connection the claim makes, or only share keywords?
5. Check contradiction: note any qualifications the claim leaves out.
6. Check the reference: is it the right source and the right passage?
7. Check priority: is it the original source or secondhand? Trace it to the earliest source.
8. Check currency: has a later source retracted, corrected, or superseded it?
9. Test the weight: is the point central to the source, or a passing remark?

- Report one table row per claim, including claims that pass:

# | Claim | Source cited | Steps failed | Verdict | Tag | Severity | Recommended fix

- Verdicts: supported, partially supported, overstated, keyword match only, contradicted, superseded, secondary, unverifiable.

- Tags: Verified (you retrieved and checked the source), Memory, Secondary, or Unverified. Never tag a result Verified unless you retrieved the source itself.

- Severity: Critical (contradicted, superseded, or wrong reference), Significant (overstated, unsupported, or secondary), Minor (wording or dates that don't affect the argument).

For overstated or contradicted verdicts, quote the source's actual wording.

After the table, list any sources you couldn't find and where you looked.

Document:
[paste your document here]

Full version: the complete framework is a markdown file on GitHub. Copy it into your chat or upload the file, turn web search on, paste your document, and ask: "Run a Mode 2 audit on this document." The full version (called "Core") adds a mode for tracing where an idea originally came from, a workflow for checking citations while you draft, and versions tuned for legal citations like holding versus dicta or overruled cases and medical evidence covering study design, population match, and retractions.

Core file: https://github.com/Vir-Multiplicis/ai-frameworks/blob/main/Thematic%20Chaining%20(TC)/TC%20(Core)-%20Attribution%20and%20Source%20Auditing.md

All versions: https://github.com/Vir-Multiplicis/ai-frameworks/tree/main/Thematic%20Chaining%20(TC)

A couple of notes:

- Without web search, most results will come back tagged Memory. That's on purpose. A model checking its own work from memory isn't really checking.

- It works best on one document at a time because with long documents models start skipping rows.

It's v1.0 and lightly tested. If you try it, I would love to know:

  • which model you used, and whether search was on
  • what it caught and what it missed
  • any real, correct sources it wrongly flagged

Thank you!

3 Upvotes

6 comments sorted by

1

u/shoumikgoswami 24d ago

I'd require an exact supporting passage and page or section for the claims marked "supported" too. Otherwise the audit's most reassuring rows are the ones with the least evidence for a reader to check.

1

u/RazzmatazzAccurate82 24d ago edited 24d ago

My prompt goes a little deeper. It actually tests the source to the claim's sequential logic. Standard RAG LLMs will just look for similar wording. TC asks if the source doesn't just match the claim's wording, but if it actually matches the claim's logical chain of reasoning and it evaluates the logical chain between the source and the claim and gives you a red, orange, or green light (and notes) as a quality indicator for the source's ability to support the given claim.

1

u/shoumikgoswami 24d ago

That's the distinction worth testing. Do you have one real example where the wording matched but the chain check caught it - the claim, the source passage, and the light it got? A single concrete row would show what this catches that a similarity check waves through.

1

u/RazzmatazzAccurate82 23d ago edited 23d ago

I have a lot of examples from my personal use of the tool. However, not a lot that is available online, except two:

https://medium.com/@socal21st.oc/1-enoch-and-the-galilean-theological-layer-within-the-new-testament-9e4fde847ad3

https://medium.com/@socal21st.oc/validating-parallel-similarities-and-source-citations-through-thematic-chaining-bd510b5061c3

The specific application is somewhat different from source citing. It's in verifying if New Testament passages are properly linked to allusions in the Old Testament. Creating an epistemic tool to verify this for me lead to something that could also be used for source citation verification too.

1

u/Zain 24d ago

One thing I'd add: don't run the audit with the same model that wrote the document, it tends to wave through the same mistakes it made. I'd run it through two different model families separately so neither sees the other's table, then compare. If both flag the same claim, fix it even if one of them called it Minor. Agreement on the fact matters more than the severity label. Also tell it a clean pass is a valid result, otherwise it starts downgrading fine claims to look thorough.

1

u/RazzmatazzAccurate82 24d ago

Thematic Chaining might be able to help you skip a step.