Learn AI

Why AI Hallucinates: How AI Gets Things Wrong and How to Verify Its Answers

Learn AI — Foundations Beginner Part 9

AI can produce remarkably useful answers—and sometimes confidently produce information that is completely wrong. Learn why AI hallucinations happen, how to recognise them and how to reduce the risk.

In the previous article, we looked at tokens and context windows and how AI models receive the information they need to generate a response.

That leads to an important question.

If modern AI models have been trained on enormous amounts of information and can work with substantial amounts of context, why do they still get things wrong?

More importantly:

Why can an AI system give you a completely incorrect answer with complete confidence?

This behaviour is commonly described as an AI hallucination.

Understanding hallucinations is one of the most important lessons for anyone using generative AI.

What is an AI hallucination?

An AI hallucination occurs when a generative AI system produces information that appears plausible but is inaccurate, unsupported, misleading or fabricated.

For example, an AI system might:

  • invent a fact;
  • provide an incorrect date;
  • attribute a quotation to the wrong person;
  • create a reference that does not exist;
  • misrepresent what a document says;
  • provide an incorrect calculation;
  • invent a product feature;
  • confuse two people or organisations; or
  • fill missing information with something that merely sounds reasonable.

The dangerous part is that the answer can sound perfectly convincing.

A simple example

Imagine asking an AI assistant:

“Who published the 2024 Global Artificial Intelligence Banking Risk Report?”

Now imagine that no report with that exact title exists.

An unreliable response might say:

“The report was published by the International Banking Technology Council in March 2024.”

The organisation might not exist.

The report might not exist.

The publication date might not exist.

Yet the sentence sounds completely believable.

That is exactly why hallucinations matter.

Why does AI hallucinate?

To understand hallucinations, remember what we learned about large language models.

A language model generates output by predicting likely sequences of tokens based on the information available to it and patterns learned during training.

At a simplified level:

CONTEXT → MODEL → PREDICT NEXT TOKEN → PREDICT NEXT TOKEN → CONTINUE

The objective is to generate a useful sequence.

It is not inherently the same thing as querying a verified database of facts.

AI does not automatically perform a fact lookup

This is one of the biggest misconceptions about generative AI.

People often imagine the model doing this:

QUESTION

↓

SEARCH INTERNAL DATABASE OF FACTS

↓

FIND VERIFIED ANSWER

↓

RETURN FACT

That is not generally how a language model itself works.

The model generates a response from learned patterns and the context available during inference.

If an application provides search, databases or retrieval tools, those external capabilities can help ground the answer in current or authoritative information.

Fluency is not the same as truth

Modern language models are extremely good at generating fluent language.

This creates a psychological problem for users.

We naturally associate:

clear + detailed + confident

with:

knowledgeable + correct.

But those things are not equivalent.

An AI response can be:

  • well written;
  • professionally structured;
  • detailed;
  • confident; and
  • completely wrong.

This gives us one of the most important rules when using generative AI:

CONFIDENCE IS NOT EVIDENCE.

Why doesn’t the AI simply say “I don’t know”?

Sometimes it does.

But generative models are designed to produce useful responses.

When information is incomplete, ambiguous or unavailable, the model may still generate the sequence that appears most plausible.

That can result in an answer that fills gaps rather than clearly identifying them.

Modern AI systems can be designed and trained to express uncertainty more effectively, but users should still verify important claims.

Missing context can cause incorrect answers

Hallucinations are not always caused by the model lacking general knowledge.

Sometimes the user has simply not supplied enough information.

Imagine asking:

“Why did our revenue decline last quarter?”

If the AI has no access to:

  • your financial results;
  • sales figures;
  • customer data;
  • market information; or
  • management commentary,

it cannot know the actual reason.

It may suggest possible explanations.

That is useful as brainstorming.

It is not evidence.

Fact vs hypothesis

This distinction is extremely useful when working with AI.

Consider the statement:

“Revenue declined because the company lost several major customers.”

If supported by verified company information, this may be a fact.

If the AI inferred it without evidence, it is merely a hypothesis.

A well-designed AI workflow should distinguish:

FACT

from:

INFERENCE

from:

ASSUMPTION

from:

OPINION.

Outdated information can also produce wrong answers

A model’s training does not automatically give it perfect knowledge of events occurring after its training data was collected.

Even when an AI application has access to current information, it may need to actively retrieve it.

This matters when asking about:

  • current prices;
  • company executives;
  • recent financial results;
  • new regulations;
  • software versions;
  • breaking news;
  • sports results;
  • exchange rates; or
  • current product specifications.

For these questions, current sources matter.

AI can fabricate references

One particularly dangerous form of hallucination is the creation of fake citations.

An AI system may generate something that looks like:

Smith, J. (2025). Artificial Intelligence Governance in Emerging Markets. Journal of Digital Governance.

The citation format may look legitimate.

But the article, author or journal may not exist.

This is why you should never assume a citation is genuine simply because it looks academic.

Always verify important references

If you are using AI for research, verify references against the original source.

For example:

  • open the research paper;
  • check the journal;
  • find the legislation;
  • open the regulatory publication;
  • check the company’s official filing;
  • verify the financial statement; or
  • confirm the source URL.

The AI can help you understand evidence.

It should not become a substitute for evidence.

AI can misquote real sources

Even when a source genuinely exists, another problem can occur.

The AI may incorrectly describe what the source says.

For example:

REAL DOCUMENT

+

INCORRECT INTERPRETATION

=

MISLEADING ANSWER

For important decisions, it is therefore useful to require the AI to show exactly which source supports its conclusion.

Grounding AI responses

Grounding means connecting an AI response to relevant evidence or trusted information.

Instead of asking:

“What does our leave policy say?”

you could build a system that:

  1. retrieves the latest approved leave policy;
  2. identifies the relevant section;
  3. provides that content to the model;
  4. instructs the model to answer only from the supplied evidence; and
  5. returns the source with the answer.

This does not make hallucinations impossible.

But it can significantly improve reliability.

RAG can reduce hallucination risk

In previous articles we introduced Retrieval-Augmented Generation, or RAG.

A RAG workflow looks roughly like:

QUESTION

↓

RETRIEVE RELEVANT INFORMATION

↓

PROVIDE EVIDENCE TO MODEL

↓

GENERATE ANSWER FROM EVIDENCE

↓

SHOW SOURCES

This is generally more reliable than asking a model to answer company-specific questions entirely from its general training.

But RAG is not magic

RAG can still fail.

For example:

  • the wrong document may be retrieved;
  • the correct document may not be found;
  • the source may be outdated;
  • the document may itself contain incorrect information;
  • permissions may be wrong;
  • important context may be split across chunks; or
  • the model may misinterpret the retrieved evidence.

This gives us another important principle:

GOOD GENERATION DEPENDS ON GOOD RETRIEVAL.

Source quality matters

Suppose you ask an AI system to research a company’s financial performance.

It retrieves information from:

  • anonymous blogs;
  • social-media posts;
  • old articles;
  • forums; and
  • unverified websites.

The AI may summarise those sources perfectly.

But the answer can still be unreliable because the underlying evidence is poor.

AI cannot turn bad evidence into good evidence simply by summarising it well.

Use authoritative sources first

For high-quality research, prioritise primary and authoritative sources where possible.

Examples include:

  • official company filings;
  • audited financial statements;
  • regulatory publications;
  • legislation;
  • official statistics;
  • standards organisations;
  • original research papers; and
  • official product documentation.

Secondary sources can provide valuable analysis and context, but important factual claims should ideally be traceable to strong evidence.

AI hallucinations in financial research

Financial research is an excellent example of why verification matters.

Imagine asking:

“What was Company X’s operating margin in 2025?”

The model might produce a number.

But where did it come from?

A better research workflow is:

OFFICIAL FINANCIAL STATEMENT

↓

EXTRACT REVENUE + OPERATING PROFIT

↓

CALCULATE MARGIN

↓

VALIDATE RESULT

↓

AI EXPLAINS WHAT THE NUMBER MEANS

The AI should not be asked to invent the underlying financial data.

Separate calculation from explanation

If a result can be calculated deterministically, use software or a calculator.

For example:

Operating Margin = Operating Profit ÷ Revenue × 100

Let software calculate the exact result.

Then let the AI explain:

  • whether the margin improved;
  • possible drivers;
  • what management said;
  • how it compares with competitors; and
  • what risks deserve further investigation.

This architecture reduces unnecessary reliance on generative output.

AI hallucinations in cybersecurity

Imagine an AI security assistant receives this alert:

“Suspicious PowerShell activity detected on workstation PC-184.”

An unsafe response might say:

“The device has been compromised by ransomware.”

But the available evidence may not support that conclusion.

A better response would distinguish between:

Observed fact: suspicious PowerShell activity was detected.

Possible interpretation: this behaviour may be associated with malicious activity.

Required action: investigate the process tree, user activity, network connections and endpoint telemetry.

The AI should not transform suspicion into certainty.

AI hallucinations in legal and compliance work

Another high-risk area is legislation and regulation.

An AI system could:

  • invent a legal requirement;
  • reference the wrong section;
  • use outdated legislation;
  • confuse jurisdictions;
  • misinterpret a regulatory requirement; or
  • present general guidance as legal certainty.

This is why professional use of AI requires source verification and appropriate expert review.

AI hallucinations in healthcare

Incorrect information becomes even more serious when health decisions are involved.

An AI system may provide useful general explanations, but users should not assume generated information is a verified diagnosis or treatment decision.

The potential harm from an incorrect answer should determine how much validation and professional oversight is required.

Risk should determine verification

Not every AI output requires the same level of checking.

If you ask:

“Give me ten creative names for my office quiz team.”

A hallucination is unlikely to cause serious harm.

If you ask:

“Can I terminate this employee under this section of employment legislation?”

The consequences of a wrong answer are much greater.

This suggests a simple principle:

THE HIGHER THE CONSEQUENCE OF ERROR, THE STRONGER THE VERIFICATION.

A simple AI verification model

You can think of AI tasks in three broad levels.

Low-risk

Examples:

  • brainstorming;
  • creative writing;
  • drafting informal messages;
  • generating ideas; and
  • summarising your own non-critical notes.

Light review may be enough.

Medium-risk

Examples:

  • business reports;
  • customer communications;
  • research summaries;
  • marketing claims; and
  • technical guidance.

Facts and important claims should be checked.

High-risk

Examples:

  • legal decisions;
  • medical decisions;
  • financial decisions;
  • security actions;
  • regulatory interpretations;
  • safety-critical processes; and
  • major business decisions.

Authoritative evidence, validation and appropriate human expertise should be part of the workflow.

Ask the AI to identify uncertainty

One simple technique is to explicitly instruct the AI not to hide uncertainty.

For example:

“If the available information does not support a conclusion, say that the evidence is insufficient. Do not invent missing information.”

You can also ask:

“Separate verified facts from assumptions and recommendations.”

This does not guarantee accuracy, but it creates a better reasoning framework for the output.

Ask for evidence

Instead of asking:

“Is this company financially healthy?”

ask:

“Using the supplied audited financial statements, identify the evidence supporting or contradicting the view that the company is financially healthy. Cite the relevant figures and clearly identify any assumptions.”

The second prompt creates a much stronger evidence-based task.

Ask the AI to challenge its own conclusion

Another useful technique is to request an opposing analysis.

For example:

“What evidence could prove this conclusion wrong?”

or:

“Identify the three strongest arguments against your recommendation.”

This can help expose weak assumptions.

It does not replace independent verification, but it can improve the analysis process.

Do not ask AI to confirm what you already believe

Confirmation bias can affect how people use AI.

Suppose you believe a particular company is a great investment.

You ask:

“Explain why Company X is an excellent long-term investment.”

You have already framed the desired conclusion.

A better request might be:

“Evaluate the strongest investment case and the strongest case against investing in Company X using verified financial information. Do not assume either conclusion is correct.”

Good AI use includes asking questions that allow your assumptions to be challenged.

Can multiple AI models verify each other?

Multiple model calls can be used as part of a validation process.

For example:

MODEL A → PRODUCES ANALYSIS

↓

MODEL B → CRITIQUES ANALYSIS

↓

SOFTWARE → CHECKS FACTS

↓

HUMAN → APPROVES

This can be useful.

But there is an important limitation:

Two AI models agreeing does not make something true.

Both models can make the same mistake.

External evidence remains important.

Structured output can reduce some errors

AI applications can require information in a defined structure.

For example:

{
  "finding": "",
  "evidence": "",
  "source": "",
  "confidence": "",
  "assumptions": [],
  "recommended_action": ""
}

This does not guarantee that the contents are correct.

But it makes important information easier to validate programmatically.

Validation rules can sit outside the AI

Suppose the AI extracts an invoice amount of:

R87,500

The application can independently verify whether:

  • the amount exists in the invoice;
  • VAT calculations are correct;
  • the supplier exists;
  • the purchase order matches; and
  • the invoice number has already been processed.

Do not rely on the language model when normal software can verify the result.

Confidence scores need care

It can be tempting to ask a model:

“How confident are you from 0 to 100%?”

The resulting number should not automatically be treated as a statistically calibrated probability.

A model saying:

“95% confident”

does not by itself prove that the answer has a 95% chance of being correct.

Reliable confidence measures require proper evaluation and calibration.

How do businesses measure hallucinations?

Organisations can create evaluation datasets containing questions where the correct answer is known.

For example:

200 business questions

with:

  • approved answers;
  • authoritative sources;
  • expected citations;
  • known failure cases; and
  • defined scoring criteria.

The AI system can then be tested repeatedly.

Teams can measure:

  • factual accuracy;
  • citation accuracy;
  • retrieval accuracy;
  • unsupported claims;
  • refusal behaviour;
  • format compliance; and
  • consistency.

“I don’t know” can be a successful answer

One of the most important ideas in reliable AI is that refusing to invent an answer can be a success.

Consider:

Question: “What was the customer’s contract value in 2023?”

If the data is unavailable, a good response may be:

“I cannot determine the 2023 contract value from the available information.”

That answer may be less impressive.

But it is much safer than inventing:

“The contract was worth R4.2 million.”

Reliable AI should know its boundaries

In well-designed systems, AI should be allowed to say:

  • “I don’t have enough information.”
  • “I could not verify this.”
  • “The sources conflict.”
  • “This information may be outdated.”
  • “Human review is required.”

These are not failures.

They are important control mechanisms.

Hallucination vs creativity

There is an interesting contradiction in generative AI.

The same capability that makes AI useful for creative work can become a problem when factual precision is required.

If you ask:

“Invent a fictional company for my story.”

Generating something new is exactly what you want.

If you ask:

“Give me the audited revenue of a real company.”

Generating something new is exactly what you do not want.

The correct AI behaviour depends on the task.

Creative mode vs evidence mode

A useful mental model is to separate two kinds of work.

Creative mode

Useful for:

  • ideas;
  • stories;
  • names;
  • concepts;
  • brainstorming; and
  • alternative approaches.

Original generation is desirable.

Evidence mode

Useful for:

  • research;
  • financial analysis;
  • compliance;
  • security;
  • legal research;
  • technical documentation; and
  • business decision support.

Here the model should remain grounded in supplied or verified evidence.

A practical verification workflow

For important AI-generated work, use a process similar to:

1. DEFINE THE QUESTION

↓

2. IDENTIFY AUTHORITATIVE SOURCES

↓

3. RETRIEVE THE EVIDENCE

↓

4. AI ANALYSES THE EVIDENCE

↓

5. SEPARATE FACTS FROM ASSUMPTIONS

↓

6. VALIDATE IMPORTANT CLAIMS

↓

7. HUMAN REVIEW WHERE REQUIRED

↓

8. PUBLISH OR ACT

The TRUST framework

Here is a simple framework you can use when working with important AI-generated information.

T — Trace the source

Where did the information come from?

R — Review the evidence

Does the source actually support the claim?

U — Understand uncertainty

What does the AI know, infer or assume?

S — Separate facts from suggestions

Do not treat generated ideas as established facts.

T — Test important claims

Validate calculations, references and high-impact conclusions independently.

The TRUST framework above is an original practical framework created for this learning series. It is not an industry standard.

Five questions to ask before trusting an AI answer

Before using an important AI-generated answer, ask:

  1. Where did this information come from?
  2. Can I verify the source?
  3. Is the information current?
  4. Is the AI stating a fact or making an inference?
  5. What happens if this answer is wrong?

Those five questions dramatically change how you use AI.

The goal is not zero trust in AI

The lesson should not be:

“AI makes mistakes, therefore AI is useless.”

Humans make mistakes.

Databases contain incorrect information.

Documents become outdated.

Search engines return poor results.

Software contains bugs.

The correct goal is to design systems where important information can be checked and where failures are detected before they cause harm.

AI should accelerate judgement, not eliminate it

One of the most valuable uses of AI is helping people:

  • process large amounts of information;
  • identify patterns;
  • summarise evidence;
  • generate questions;
  • compare alternatives;
  • challenge assumptions; and
  • communicate complex information clearly.

But the final responsibility for important decisions should remain appropriately controlled.

Frequently asked questions

What is an AI hallucination?

An AI hallucination is generated information that appears plausible but is inaccurate, unsupported, misleading or fabricated.

Why does AI hallucinate?

Generative models produce outputs based on learned patterns and available context. They do not inherently perform a verified factual database lookup for every statement they generate.

Can AI sound confident and still be wrong?

Yes. Fluent and confident language is not proof that a claim is correct.

Can AI invent sources?

Yes. Generative AI can sometimes produce citations, publications, quotations or references that appear legitimate but do not exist.

Does web access stop hallucinations?

No. Access to current sources can improve factual grounding, but the AI can still retrieve poor sources, misunderstand evidence or generate unsupported conclusions.

Does RAG eliminate hallucinations?

No. RAG can reduce risk by grounding answers in retrieved information, but retrieval and interpretation can still fail.

How can I reduce AI hallucinations?

Provide good context, use authoritative sources, request evidence, separate facts from assumptions, validate deterministic information with software and use human review for high-risk decisions.

Should I trust AI-generated citations?

Important citations should be checked against the original source rather than accepted solely because the citation appears credible.

Should AI be used for financial or legal information?

AI can assist with research, summarisation and analysis, but high-impact financial, legal and regulatory decisions require appropriate source verification and professional judgement.

Can another AI verify the first AI?

Another model can help critique an answer, but agreement between models does not prove that a claim is true. External evidence remains important.

Is “I don’t know” a good AI answer?

Yes. When evidence is unavailable, clearly stating uncertainty can be more reliable than generating an unsupported answer.

Key takeaways

  • AI hallucinations are plausible but incorrect or unsupported outputs.
  • Language fluency does not guarantee factual accuracy.
  • Confidence is not evidence.
  • AI models do not automatically perform verified fact lookups.
  • Missing or outdated context can contribute to incorrect answers.
  • AI can fabricate or misrepresent references.
  • RAG and authoritative sources can improve grounding but do not guarantee accuracy.
  • Facts, inferences, assumptions and opinions should be clearly separated.
  • Deterministic calculations and validations should often be performed outside the language model.
  • The higher the consequence of an error, the stronger the verification should be.
  • AI should be allowed to admit when evidence is insufficient.
  • The goal is not to blindly trust or distrust AI, but to use it with appropriate controls.

Continue the Learn AI journey

We have now covered an important limitation of generative AI.

But modern AI systems are moving beyond simply answering questions.

They can search for information.

They can call software tools.

They can analyse results.

They can decide what step should happen next.

And, within defined permissions, they can take actions.

This brings us to one of the most important developments in practical AI:

AI agents.

Next: AI Agents Explained — How AI Moves From Answering Questions to Taking Action →