What is a hallucination?

A hallucination in AI is when a model produces incorrect or nonsensical information.

In the context of AI, a hallucination occurs when a model generates information that is not based on reality or accurate data. This often happens with language models when they create responses that sound plausible but are factually incorrect.

For example, if you ask an AI model to summarize a non-existent book, it might provide a detailed summary as if the book really exists. This can mislead users who trust the AI's output.

Hallucinations can arise from various factors, including the model's training data and the way it interprets prompts. Understanding this concept is crucial for users to critically evaluate AI-generated content.

Example

An AI claims that the moon is made of cheese.

Want to use Hallucination in real work?

WeCode workshops are built around AI coding tools. Pick a tier, or browse more glossary entries to get the lay of the land.