Hallucination
What is Hallucination?
A hallucination is output that is fluent and confident but not supported by any source. It is not a malfunction: a language model generates plausible continuations, so when it has no relevant information the plausible continuation is an invention. Grounding and an explicit permission to say 'I do not know' are the practical defences.
In more detail
Language models are trained to produce likely text. Most of the time likely text is also true, which is why they are useful. When the model lacks the relevant facts, the likely text is a confident guess, and nothing in the output marks it as one.
On a business website the typical hallucinations are specific and costly: a price, a delivery time, a refund policy, an area you cover. They arise most often when the question falls outside the content the assistant was given, or when the retrieved content is close but not quite on point.
The defences are mostly about permission and coverage: ground the assistant in your content, allow it to say it does not know, give it a route to a person, and fill the gaps that show up in its logs.
How SpideyChat handles it
SpideyChat grounds every assistant that has content in that content, and logs a knowledge gap when a question finds no close match, finds only a weak one, gets a hedged reply or is rated with a thumbs-down. Owners see these on the Answer gaps page and can answer each one there.
We make SpideyChat. The rest of this page describes the term in general, not our product.
Questions
- Can hallucinations be eliminated completely?
- No current system can guarantee it. They can be made rare, and the remaining ones made visible, by grounding the assistant, reviewing conversations and answering the gaps.
- Why do chatbots invent prices?
- Because a price is a likely-looking answer to a pricing question. If your content does not state the price, or states it in a way retrieval misses, an ungrounded model will produce one anyway.