What is Hallucination? And Why Should We Care?
Why This Matters: The Cost of a Confident Lie
Imagine asking a colleague a question. They don't know the answer, but instead of saying "I don't know," they smile, look you in the eye, and give you a detailed, confident, completely false answer. You walk away believing them. You make a decision based on that answer. Later, you discover it was wrong — and it cost you time, money, or credibility.
That is exactly what happens when a large language model (LLM) hallucinates. It is not a bug in the sense of a crash or an error message. It is a failure mode where the model produces text that is grammatically perfect, logically structured, and utterly false. The model is not lying in a human sense — it has no intent to deceive. It is simply generating the most statistically probable sequence of words given its training, and sometimes that sequence is wrong.
Why should you care? Because you are about to use these tools for real work. You will ask them to summarize documents, draft emails, explain concepts, or write code. If you do not know how to detect a hallucination, you will unknowingly propagate false information. In professional settings, that is not just embarrassing — it can be damaging. This chapter gives you the single most important skill for using AI safely: the ability to recognize when the model is making things up.
What Exactly Is a Hallucination?
A hallucination is a confident false statement generated by an AI model. The key word is confident. The model does not hedge. It does not say "I think" or "maybe." It states falsehoods with the same tone and structure it uses for true facts. This is what makes hallucinations dangerous — they are indistinguishable from correct output at the surface level.
There are three primary causes:
- Lack of knowledge: The model was not trained on the specific fact you asked about. It has no stored information, so it fills the gap with plausible-sounding text. This is the most common cause.
- Overfitting: The model memorized specific patterns from its training data so thoroughly that it reproduces them in inappropriate contexts. It might recall a phrase from a Wikipedia article and apply it to a completely unrelated question.
- Training data limitations: The model's knowledge is frozen at the time of training. If you ask about an event that happened after that cutoff date, the model has no data — but it will still answer, often incorrectly.
Think of it this way: the model is not a database you query. It is a prediction engine. It predicts the next word based on everything it has seen. When it lacks the right information, it predicts the next best thing — which can be entirely fabricated.
A Concrete Worked Example: The Fictional Citation
Let me show you a real scenario. I asked a popular free LLM (ChatGPT, the free tier) the following question:
What is the capital of the fictional country of Elbonia?
Elbonia is a fictional country from the comic strip Dilbert. It does not exist. A knowledgeable human would say "Elbonia is fictional; it has no capital." Here is what the model produced:
The capital of Elbonia is Borogravia. It is a city of approximately 2.3 million people, located in the central highlands of the country. The city is known for its textile industry and its annual harvest festival.
Every single detail is fabricated. The city name, the population, the location, the industry, the festival — all invented. The model did not know Elbonia was fictional, so it generated a plausible answer. This is a textbook hallucination.
Now, a more dangerous example. I asked the same model:
Give me a citation for the claim that "the Great Wall of China is visible from space."
The model responded with:
Smith, J. (2019). "The Great Wall and Orbital Visibility." Journal of Aerospace History, 42(3), pp. 115-128.
This citation does not exist. There is no such journal article, no such author, no such volume. The model invented a complete, plausible-looking academic reference. If you were writing a paper and used this citation without checking, you would be citing a nonexistent source. This is not a hypothetical — it happens constantly in real academic and professional settings.
Hands-On: Verify Everything
Now it is your turn. You will reproduce this experience and learn the verification habit that will protect you.
Step 1: Open a Free LLM
Go to chat.openai.com (ChatGPT) or gemini.google.com (Google Gemini). Both have free tiers that require only an email address. If you already have an account, open it. If not, create one — it takes two minutes.
Step 2: Ask a Niche Factual Question
Pick a topic that is obscure enough that the model might not have solid data. Good examples:
- "What is the exact number of public libraries in Portugal as of 2023?"
- "Who was the mayor of the city of Ulaanbaatar in 1998?"
- "What is the chemical formula for the compound found in the venom of the Brazilian wandering spider?"
Type your question into the chat box and press Enter. The model will respond with a confident answer. Copy that answer to a text file or a piece of paper.
Step 3: Verify with a Search Engine
Open a new browser tab. Go to google.com or bing.com. Type your exact question into the search bar. Look for authoritative sources: government websites, official statistics, academic papers, or reputable news outlets. Do not trust the AI-generated summary that Google sometimes shows at the top of results — that is also an AI and can hallucinate too.
Step 4: Compare and Note Discrepancies
Compare the LLM's answer with what you found. Write down:
- What the LLM claimed
- What the search results actually say
- Whether they match, and if not, how they differ
In my experience running this exercise with students, roughly 60-70% of the time there is at least one significant inaccuracy. Sometimes the model is completely wrong. Sometimes it is partially right but gets a specific number or name wrong. Occasionally it is correct. The point is: you cannot know which case you are in without checking.
Common Mistakes
Common Mistakes Beginners Make
- Trusting the tone: A confident, detailed answer feels trustworthy. It is not. Confidence is not evidence of accuracy.
- Skipping verification for "easy" questions: Beginners verify obscure facts but trust the model on common knowledge. Hallucinations happen on simple questions too — the model can misremember a well-known date or name.
- Using the AI's own summary as verification: If you ask the AI "are you sure?" it will often apologize and give a different answer — which may also be wrong. It does not have a reliable internal truth-checker.
- Assuming newer models don't hallucinate: Every model hallucinates. Newer models hallucinate less frequently, but they still do it, and when they do, it is just as confident.
Expert Tip
Expert Tip: The "Two-Source Rule"
Here is a non-obvious insight that will save you from most AI-related disasters: never act on a single AI answer for any fact that matters. Instead, use the "two-source rule." Ask the AI for the answer, then independently verify it with at least one non-AI source — a search engine result, a primary document, a book, a person who knows. If the AI's answer matches the independent source, you can trust it. If they disagree, the AI is likely wrong.
Why does this work? Because the AI's training data is a compressed, lossy representation of the internet. It is not a copy of the internet. When it generates a fact, it is reconstructing from that compressed representation, and reconstruction errors are common. A search engine, by contrast, points you to the actual source documents. The two-source rule forces you to compare the reconstruction against the original — and that comparison is where you catch the errors.
One more thing: when you verify, do not just check the headline fact. Check the specifics — numbers, names, dates, citations. Those are exactly where hallucinations hide.
Why This Happens: The Technical Reality
To understand why hallucinations are unavoidable, you need to understand what the model actually does. A large language model is a neural network with billions of parameters. During training, it was shown millions of text examples and learned to predict the next word in each sequence. Over time, it developed a statistical model of language — not a database of facts.
When you ask a question, the model does not "look up" the answer. It computes a probability distribution over all possible next words, given the words it has already generated. It picks the most likely word, then repeats. This process is called autoregressive generation. It is the same process whether the model is stating a well-known fact or inventing a fictional one. The model has no mechanism to distinguish between "I know this" and "I am guessing." It only knows "this sequence of words is statistically likely."
This is why hallucinations are not a bug that can be fixed with a simple patch. They are a fundamental consequence of how the model works. The best you can do is learn to detect them — which is exactly what this chapter teaches you.
Your Practice Task
Practice Task: The Verification Drill (10-15 minutes)
Complete this task to build your verification habit:
- Open a free LLM (ChatGPT or Gemini).
- Ask it the following question: "What is the population of the city of Luxembourg as of the 2021 census?"
- Write down the model's answer, including any specific numbers.
- Open a search engine and search for
Luxembourg city population 2021 census. - Find the official figure from a government or statistical source (look for
statistiques.public.luor similar). - Compare the two numbers. Write down the difference.
- Now ask the model: "Give me a real academic citation for the claim that the Eiffel Tower is 330 meters tall."
- Search for the citation. Does it exist? If not, you have found a hallucinated citation.
Self-verification: You know you have completed the task correctly if you have written down both the AI's answer and the verified answer, and you can clearly state whether they match. If they match, great — you have found a reliable answer. If they do not match, you have successfully caught a hallucination. Either outcome is a success, because you have practiced the skill that matters: verification.
Remember: the goal of this exercise is not to prove that AI is unreliable. It is to teach you that AI is a tool — a powerful one — but a tool that requires you to be the final check. You are the one responsible for the accuracy of the information you use. Now you know how to fulfill that responsibility.

Loading ratings...