Editorial concept illustration.
AI hallucinations are plausible statements that are unsupported or incorrect. They matter when an assistant summarizes documents, drafts a public article or answers a customer’s question: confident wording can hide a missing fact.
This guide keeps the original five mitigation methods and three complete prompt templates. It follows primary guidance checked on 2 November 2026 and replaces unsupported reduction percentages and model rankings with a process you can evaluate on your own work. The examples are practice exercises, not a TECH4SSD benchmark.
1. Identify the kind of failure you are checking
An answer can fail because the necessary fact is absent, the source is old, retrieval selected the wrong passage or the model inferred more than the evidence supports. A leading question can also encourage an answer to accept an assumption that should have been challenged.
OpenAI’s research discussion explains how incentives to guess rather than acknowledge uncertainty contribute to the problem. Do not reduce that explanation to a promise that one setting or one newer model makes verification unnecessary.
| Failure pattern | What you may observe | Useful check |
|---|---|---|
| Missing information | A specific date or price with no support | Ask whether the source contains it |
| Outdated material | An old plan presented as current | Check the source date and scope |
| Retrieval mismatch | A real citation about a different question | Read the surrounding passage |
| Unsupported inference | A conclusion stronger than the supplied facts | Separate evidence from interpretation |
| Leading assumption | The answer accepts a false premise | Ask what would establish the premise |
2. Ground the answer in a defined source set
Retrieval-augmented generation can provide relevant material, but the retrieved content can be incomplete, contradictory or irrelevant. The accuracy guide treats retrieval quality as something to diagnose and improve. RAG is not a guarantee that an answer will use the material correctly.
Keep the first original template below for conservative, source-bound questions. It asks the assistant to abstain when the supplied context cannot answer. Use it when you need extraction from a known document, rather than open-ended brainstorming. Check that the context actually contains enough information before judging the response.
You are a careful assistant. Answer the user question using ONLY
the context below. If the answer is not in the context, reply
exactly: "I don't have that information in the provided sources."
Do not use outside knowledge. Do not infer. Do not guess.
CONTEXT:
{retrieved_chunks}
QUESTION:
{user_question}
ANSWER (with one inline quote from the context as evidence):
3. Check citations for existence and support
A citation has two separate jobs: identify a real source and support the claim beside it. Open the page or document, locate the quoted passage and check the qualification around it. A real URL can be irrelevant; an accurate quotation can still be used to justify a stronger claim than it makes.
The second original template requests supporting sentences. Keep its output reviewable: verify the quotation against the supplied document and inspect any unsupported marker. Asking for quotations helps expose the evidence trail, but it does not prove that the model copied or interpreted every passage correctly.
Summarise the document below in 5 bullet points.
For each bullet:
- State the claim in plain language.
- Then in parentheses, quote the EXACT supporting sentence
from the document in quotation marks.
- If you cannot find a supporting sentence, write
(UNSUPPORTED) and skip the claim.
DOCUMENT:
{document_text}
4. Use confidence to route review, not to certify truth
A model’s self-reported confidence is an output to examine. It is not automatically a calibrated probability that a factual claim is true. Token likelihood, a verbal confidence label and an external consistency score measure different things.
Choose review rules based on the consequence and the evidence. A missing source or an unverified quotation can trigger review even when the answer labels itself highly confident. If you want to use a score operationally, evaluate its behavior on examples that resemble your actual task.
| Signal | What it may help you notice | Important limit |
|---|---|---|
| Self-rated confidence | Where the model expresses uncertainty | Can be confidently wrong |
| Evidence reference | Which passage is offered as support | Must be opened and checked |
| Consistency score | A possible mismatch with supplied text | Is not a universal truth probability |
| Human review | A consequential interpretation or missing qualification | Needs the relevant source and context |
5. Make evidence fields explicit with structured output
A structured response makes missing fields and unknown source identifiers easier to detect. It does not make a false claim true. Validate the shape, then check the evidence itself. Keep a rule for what happens when a field is missing or a passage does not support the answer.
The third original template retains a confidence label. Treat that field as self-reported, and verify the evidence_quote separately. Do not turn the label into an acceptance threshold without evaluating it. An empty facts list can be the correct result when the source supports nothing relevant.
Extract facts from the text below. Return ONLY valid JSON
matching this schema:
{
"facts": [
{
"claim": "string",
"evidence_quote": "string (verbatim from source)",
"confidence": "high | medium | low"
}
]
}
If no facts can be supported by the text, return {"facts": []}.
TEXT:
{source_text}
6. Give consequential outputs a human review step
Anthropic’s mitigation guidance includes allowing uncertainty, grounding in evidence and verifying claims. Apply those ideas before sending a customer response or publishing a factual tutorial. Name the person or role that checks a consequential decision.
Review the claims that carry the most consequence first: a price a buyer will pay, a deadline someone will act on or a statement about health, law or account security. Provide the reviewer with the source passage and the question, rather than only the final polished answer.
Keep drafts separate from account actions. A reviewed answer can still require an additional decision before it becomes a message, a database edit or a public post. Permission to research a task is not the same as approval of every possible action suggested by the response.
7. Build a small evaluation set before adding a scorer
Collect answerable questions, questions the documents cannot answer and cases with conflicting sources. Write down what a satisfactory response should do. Include examples with misleading instructions inside a document so that you can check whether source content is treated as data.
An automated consistency scorer can help prioritize review. Vectara’s HHEM model card describes checking an answer against supplied facts. That is a narrower task than deciding whether the supplied facts are correct in the world. Inspect false positives and false negatives on your own examples.
Record the questions, evidence, result and reviewer decision. You can track unsupported checked claims as a proportion of the claims you actually reviewed, but keep that denominator explicit. Do not describe a small exercise as a general error rate for every user or model.
8. Run one complete practice case
Use this fictional source note: “The trial lasts seven days. This note does not state the refund policy.” Ask how long the trial lasts, then ask whether the customer can obtain a refund after two weeks. The first answer has direct support; the second should remain unresolved.
Check the full chain: the correct note was supplied, the answer cited the relevant sentence, the quotation was real and the missing refund rule was not invented. Repeat the exercise after changing a prompt, retrieval method or model. The acceptance checks should remain the same.
- Ground answers in sources selected for the question.
- Verify citations and their actual support.
- Treat confidence labels as review signals.
- Validate structure and evidence separately.
- Keep a documented human check for consequential outputs.
π‘ Pro Tip: Include questions the source cannot answer in your evaluation set. They reveal whether the assistant can stop at the evidence boundary.
Key Takeaways
- Grounding helps only when the sources are relevant.
- Check quotations and what they actually support.
- Format and confidence are not truth certificates.
- Keep representative evaluations and a proportionate human review.
Related on Tech4SSD π
- How to Use Google Gemini: A Practical Beginner's Guide
- Least Privilege for AI Agents: Your Ultimate Guide to Secure AI in 2026
Keep learning with TECH4SSD
Want more practical AI tutorials? You can subscribe to the TECH4SSD newsletter. Joining is optional. Subscribe →
Frequently Asked Questions
Can I guarantee an eighty-to-ninety-five percent reduction?
Not without a defined task, dataset and measurement. The earlier percentage was unsupported. Evaluate the workflow on representative examples and report the actual scope and denominator of any result.
Does RAG eliminate hallucinations?
No. Retrieval can select missing, outdated or irrelevant material, and the model can still interpret it incorrectly. Check retrieval quality and the final answer separately.
Does valid JSON or high confidence prove an answer is correct?
No. JSON validates a response structure, while a confidence label is another model output. Verify the source, supporting passage and interpretation before accepting an important claim.
Can I reuse the three prompt templates unchanged?
They are conservative starting points for source-bound extraction and summaries. Keep the complete inputs and inspect the output. Adapt the task boundary when necessary, and test that unsupported questions still lead to an appropriate abstention.
Final Word
Use the templates to make evidence and uncertainty visible, then check the result. A useful improvement is one you can demonstrate on a defined set of questions while preserving an appropriate review step.
Sources & Further Reading
- OpenAI: Why language models hallucinate
- OpenAI API: Optimizing LLM accuracy
- Claude Platform: Reduce hallucinations
- Vectara: Hallucination evaluation model card
AI tools and features change fast — verify current options before relying on them. — Tech4SSD Editorial
Discussion
Have a question or something to add?
Join the discussion on Blogger