Glossary/Generation & Quality

What is Hallucination?

When a language model generates fluent, confident content that is factually wrong or entirely invented.

Language models are trained to produce plausible text, not verified truth. When asked something outside their knowledge, they tend to fill the gap with something that sounds right — an invented API parameter, a fabricated refund policy, a fee schedule that never existed. The fluency is what makes it dangerous: wrong answers read exactly like right ones.

In customer-facing deployments, hallucination is the primary risk. A support assistant that invents policy creates liability; a docs assistant that invents endpoints creates tickets.

Mitigation is architectural, not cosmetic: ground generation in retrieved source content (RAG), require citations so claims are verifiable, score confidence, and refuse to answer when the knowledge genuinely is not there.

In BeforeQuery

How BeforeQuery uses this

BeforeQuery answers only from your indexed content, cites the sources used, and applies confidence scoring — below the threshold, users get a configurable fallback that routes them to a human instead of a guess. Unanswerable questions are logged as knowledge gaps so the missing content gets written.

From definition to deployment

Connect a knowledge source and see cited AI answers on your own content in minutes — free, no credit card required.

Get Started Free