Hallucination Type Taxonomy
The three kinds of hallucination, a test set that includes questions with no answer, claim-by-claim faithfulness scoring, and what lowers the rate.
Hallucination (confabulation) is when an LLM generates plausible-sounding but incorrect information. Types: factual hallucination (wrong facts), attribution hallucination (fabricated sources), and faithfulness hallucination (answers not grounded in provided context). Detection: reference-based (compare to ground truth), RAG faithfulness (does answer follow from retrieved context?), semantic entailment. RAGAS framework measures faithfulness, answer relevancy, and context precision.
The pipeline
Each stage in order — click any step to read what it does.
Interactive Pipeline Flow
Architecture diagrams
Multi-layer hallucination detection for RAG systems.
Key design decisions
The trade-offs worth knowing before you build this.
A RAGAS faithfulness score below 0.80 means 20%+ of your RAG answers contain claims not grounded in retrieved context. This is the most dangerous type of hallucination in production RAG systems.
System prompt: "For each factual claim, cite the source sentence in brackets [1]". Models are much less likely to fabricate claims when forced to provide citations — and citations make hallucination auditable.
Eval set hallucination rates can be low while production rates are high (distribution shift). Sample 100 production responses weekly, run faithfulness eval. Alert on rising trend.
Continue reading
All LLM Model Landscape articles →GPT: OpenAI's Model Family in Practice
The GPT-6 tiers, what reasoning effort replaced, when to use the Responses API over Chat Completions, how the bill is calculated, and what is different on Azure.
Claude: Anthropic's Model Family in Practice
The four Claude tiers, adaptive thinking and effort, the tool-use rules that differ from other providers, prompt caching, and where you can run it.
Llama: Open-Weight Models for Production
The Llama lineup and licence, serving with Ollama and vLLM, GPU memory sizing, and an honest look at when a hosted API is still the better choice.
Discussion
Sign in to share your feedback and join the discussion.

