Stop AI Hallucinations Before They Start: Six Grounding Techniques for Answers You Can Trust
Most AI hallucinations are invited by vague prompts. Six practical grounding techniques to keep every answer anchored to facts you can verify.

It is Thursday, 8 p.m. A client report is due tomorrow morning, and you hand a 60-page document to your favorite AI. The summary comes back polished, confident, full of numbers. The problem: three of those numbers never existed in the original document. You nearly delivered fabricated facts to a client.
This scene plays out every day, and here is the good news: most hallucinations are not random glitches. They are invited by the way we ask. Plenty of guides already teach you how to verify an answer after it appears. This article moves one step upstream: putting a fence in front so the model never gets the chance to invent in the first place. The six techniques below require no coding and work in any modern chatbot.
Why AI Makes Things Up: Know Your Enemy First
Language models like ChatGPT, Claude, and Gemini work by predicting the most plausible next word, not by looking facts up in a database. When they do not know an answer, they do not stay silent. They write something that sounds right. They are also trained to be relentlessly helpful, so guessing beats admitting ignorance almost every time. Asking "what were last year's e-commerce sales in Indonesia?" without providing a source is effectively asking the model to fill the gap with its most convincing guess. Once you understand this logic, the six techniques below feel natural: they all work by giving the model solid ground to stand on instead of letting it free-fall.
Technique 1: Anchor Answers to a Source Document
This is the foundation of grounding: put the source text inside the prompt and forbid the model from stepping outside it. Upload the PDF directly to Claude, ChatGPT, or Gemini, or paste the key section.
Answer my questions using ONLY the text below.
Do not use knowledge from outside the text.
If the answer is not in the text, reply exactly:
"Information not found in the document."
<document>
[paste the report or upload the file here]
</document>
Question: What is the Q4 sales target and who owns it?
A single restriction sentence sounds trivial, yet it drastically cuts the model's habit of sprinkling in numbers from a fuzzy memory. Anthropic's official documentation calls this restricting external knowledge and treats it as standard practice for document work.
Technique 2: Demand Quotes First, Then the Answer
A technique recommended directly in Anthropic's documentation: force the model to show evidence before it argues.
Step 1: Extract verbatim quotes (word for word, in quotation marks)
from the document that are relevant to my task.
If no relevant quotes exist, say "No relevant quotes found".
Step 2: Build your answer ONLY from those quotes,
and cite the quote number that supports every claim.
The effect is double. You get an auditable answer immediately, and the model becomes reluctant to invent because every claim now needs a clear address in the source text. If the model finds a claim without a supporting quote, it must retract that claim itself.
Technique 3: Give Explicit Permission to Say "I Don't Know"
Because models are trained to be helpful, they would rather guess than look like they failed. Give them a formal exit door.
For every question, answer with exactly one label:
- [CONFIDENT] — clearly stated in the source
- [INFERRED] — a reasonable conclusion, not explicitly stated
- [NOT SURE] — no supporting data
Prefer answering "I don't know" over guessing.
After the answer, produce a list titled "Items you should verify yourself".
A prompt like this turns the AI from a guesser into an analyst that knows its limits. Vendor documentation and research agree: merely allowing the model to give up measurably reduces false answers.
Technique 4: Split Big Questions into Small Ones
"Write a complete report on the Indonesian AI market with growth figures, key players, and a five-year forecast" is a layered hallucination recipe. The more you request at once, the higher the chance one part gets quietly filled with fiction. Ask the model to work in stages.
This question has several parts. Work on ONE part at a time.
After each part, stop and honestly flag:
- Solid fact (quote the source)
- Needs external data (which I must provide or you search online)
Do not continue to the next part until this one is done.
Parts that need external data go to web-search mode or get filled from a document you supply. The point is simple: that part is never left to improvisation in the middle of your report.
Technique 5: Make the AI Audit Its Own Answer
Practical experience and research show models are better at spotting errors in other people's text than in their own. The trick: ask it to reread its answer as if someone else wrote it.
Now review your answer above as an independent auditor.
For every factual claim (numbers, names, dates, events), label it:
[CONFIRMED — source: quote #x],
[NOT IN SOURCE], or [SPECULATIVE].
Remove or correct every claim labeled [NOT IN SOURCE].
For high-stakes decisions, run the same prompt two or three times and compare the outputs. Anthropic's documentation calls this best-of-N verification: if the answer shifts between runs, that is a strong signal that part of it is unstable and deserves a closer look.
Technique 6: Cross-Check with a Second Model or Research Mode
For high-risk claims, meaning medical, legal, financial, or numbers heading into an official report, never settle for one model. Paste the ChatGPT answer into Claude and ask: "Flag every claim in this text you cannot verify." Different models hallucinate in different patterns, so an answer that survives two models is far more trustworthy.
For current events, use modes with live web access such as ChatGPT Search, Claude's web search, or Gemini grounded with Google Search, which returns answers complete with source links. Remember the figure from the ShellBench study: even the best AI agents still fail about a third of everyday tasks. No model is immune. There are only answers that got checked and answers that did not.
Save these six prompts as personal templates and reuse them on every important task. If you can only adopt two, start with Technique 1 and Technique 3, because together they close most everyday hallucination gaps. Prevention costs one extra sentence per prompt, while checking after the fact costs far more time, and sometimes your reputation is the price.
References
- Anthropic Docs — Reduce hallucinations — Anthropic's official guide: allow "I don't know" answers, ground responses in verbatim quotes, and verify claims with citations.
- Gemini API — Grounding with Google Search — official documentation for Gemini's grounding feature that answers with live Google Search results and source links.
- Vectara Hallucination Leaderboard — a regularly updated ranking of hallucination rates across models, useful when choosing a trustworthy model.
- IBM — What are AI hallucinations? — IBM's explainer on what hallucinations are, why they happen, and how to mitigate them.



