Thursday, 3 Dec 2026 Global Edition
Live Wire
AI Today Daily AI journalism & intelligence
Front Page Tips & Tutorials Baca versi Indonesia

Answer Only from This Document: Grounding Techniques That Stop AI Inventing Facts

AI still invents answers even after you attach the document? Grounding locks every reply to its source: fenced prompts, verbatim quotes, quick audits.

Answer Only from This Document: Grounding Techniques That Stop AI Inventing Facts

You attached the document. You asked politely. The answer came back confident, complete with a section reference and a precise-sounding figure. Then you checked the original page: that number was never there. Congratulations — you just caught an AI inventing facts in front of you. Not because the model misread your file, but because you never built a fence in the first place.

The fix is called grounding: forcing the AI to answer only from the source you provide, quote the exact wording, and refuse when the information is not there. The payoff is concrete: every claim becomes re-verifiable in 30 seconds. This guide builds that workflow step by step — and everything works today in ChatGPT, Claude, or Gemini.

Why AI Still Invents Even When the Document Is Right There

A language model does not “read” a document the way you do. It predicts the most plausible continuation of text. When a piece of the answer is not actually in the source, the model fills the gap with sentences that sound statistically right — that is a hallucination. OpenAI's research paper “Why Language Models Hallucinate” even shows that standard training and evaluation procedures reward guessing over admitting uncertainty.

For users, three zones are riskiest:

  1. Numbers, dates, and names — invented most often because they make an answer feel precise.
  2. Quotes — models paraphrase, then present the paraphrase as if it were a direct quote.
  3. Answers to what is NOT in the document — negative questions like “what does this contract NOT cover?” push the model to invent so the answer feels complete.

Rule of thumb: the more specific the information you need, the tighter the fence must be.

Step 1: Set the Baseline Rule — “Answer Only from This Document”

Before asking anything, lock the source: attach the file (PDF, DOCX) or paste the text, then open with a fence prompt like this:

Use ONLY the document below as the source for your answer.
- If the information is not in the document, write exactly: “Not found in the document.”
- Do not mix in general knowledge, assumptions, or other sources.
- For every point, first quote the source sentence verbatim, then explain.

Document:
[paste the document here or attach the file]

All three elements matter: a single declared source, explicit permission to refuse, and the duty to quote before explaining. The permission to say “not found” matters most — without it, the model feels obligated to always have an answer, and that is where invention begins. If your document is long and reused often, keep it in a Claude Project or a GPT together with the file, so the fence rules carry over automatically.

Step 2: Demand Verbatim Quotes, Then Test Them with Ctrl+F

An answer without quotes cannot be audited. Ask the model to present results in a checkable format:

Answer my question using this table format:
| Claim | Verbatim quote from the document | Location (section/page) |
After the table, add a short explanation. Do not add claims outside the table.

When the answer arrives, do not trust it yet. Take the two most important quotes, hit Ctrl+F in the original file, and confirm the sentence exists word for word. If the quote is similar but differs by a few words, the model paraphrased — downgrade that claim's trust level and verify it manually. This 30-second habit catches most fabrications before the answer reaches your boss or your client.

Step 3: Split Big Questions into Single-Claim Questions

A broad question like “what are the key points of this contract?” forces the model to jump several steps at once — summarize, judge, and interpret — and the odds of gap-filling grow. The fix: break it into a sequence of small questions, each answerable with one quotable claim.

  1. “Which clause governs indemnification? Quote the sentence.”
  2. “What liability cap is stated? Quote the figure.”
  3. “Are there exceptions for gross negligence? Quote the section.”

Only after extraction is complete should you ask for interpretation: “Based on the quotes above, what does this mean for the buyer?” Extraction first, interpretation second — the biggest single difference between an answer you can trust and one that merely sounds trustworthy. Models fabricate far less when the task is to copy and point rather than to guess.

Step 4: Run a Reverse Audit — Make the AI Test Its Own Answer

When the main answer is done, send one more prompt:

Now audit your own answer:
1. Which claims are NOT supported by a direct verbatim quote from the document?
2. Where are you least confident?
3. List at most three things I should manually verify in the original document.

This forces a second checking pass in the same context, and in practice it is honest about gaps the first pass glossed over. Note: this differs from running a second model as a ruthless editor — here you stay in one chat, one model, two passes. If the audit admits a claim stands outside the quotes, treat that claim as unproven: verify it yourself or drop it.

Step 5: For Current Facts, Use Web Search — with Discipline

The “only from the document” rule applies to your document. But for facts that change — prices, new regulations, product releases — you need the outside world. Turn on web search (ChatGPT Search, search in Gemini, or web search in Claude), then enforce two disciplines:

  1. Demand a link next to every claim: “Include a source URL beside each fact, not just at the end of the answer.”
  2. Confirm the search actually happened. Ask back: “Did you run a web search for this answer? State your search queries.”

If your tool supports it, consider an app that is grounded by design, such as NotebookLM: it answers only from the sources you upload, with built-in citations. For private-document Q&A — course material, annual reports, internal policies — it is the safest option with no special prompting.

Step 6: The 30-Second Ritual Before You Use Any Answer

Finally, install an exit gate. Before any answer goes into an email, a report, or a decision, check three things:

  1. Does every important claim carry a verbatim quote? Test at least two quotes with Ctrl+F.
  2. Is there a claim without a quote? It sits outside the fence — verify it manually or drop it.
  3. Is there a high-stakes number or name (contract value, deadline, clause number)? Open the source page yourself; never rely on the summary.

Grounding does not promise zero errors — models still misread. But it changes your job from hunting hidden lies to confirming truths that are already marked. That is the difference between a five-minute audit and hours of re-tracing an entire document after a mistake has already been sent. Build the fence first, and let the AI work inside it.

References

Partner Spotlight Explore today’s curated technology offers