A hallucination is when an AI model produces a statement that is false or entirely invented, yet phrases it with full confidence. The model is not lying on purpose. A large language model works by predicting plausible word sequences, so when it lacks a real answer it fills the gap with text that merely sounds right. Made-up quotes, fake legal cases and invented statistics are all hallucinations.
A good analogy is a student who never read the assigned book but is determined to answer every exam question anyway. Rather than admit they do not know, they write something that reads convincingly and hope it passes. That instinct to always produce an answer, true or not, is exactly what causes hallucinations and why you cannot take fluent output as proof of accuracy.
This is not a rare edge case. In 2023 a New York lawyer was sanctioned after submitting a court brief full of cases an AI tool had simply invented, complete with fake citations. The danger is that the wrong answer looks identical to a right one, so a reader with no way to check has no warning sign.
The risk also rises with how obscure the question is. Ask about a famous topic and the model has seen plenty of real examples; ask for the exact revenue of a small private company and there is little real data to lean on, so it is more likely to fabricate. The more precise and rare the fact, the harder you should check it.
The good news is that the rate can be cut dramatically. Grounding the model in real source documents, usually through a method called RAG, means it answers from facts instead of guessing. Pairing that with guardrails and a human checking the important cases gets the risk to a workable level.
At TopDevs we design AI features assuming hallucinations can happen, so we ground answers in client data and keep a person on the decisions that carry real consequences.