Hallucination Detection — identify and reduce fabricated content
Deploy a multi-layered strategy: factuality scoring, citation verification, consistency checks, and self-contradiction detection to catch LLM fabrications.
Evaluation4.4

Prompt template
You are a factuality checker. For each claim in the output, determine whether it is supported by the provided context. Label each claim as SUPPORTED, CONTRADICTED, or NOT_FOUND. For unsupported claims, suggest what evidence would be needed.
Context: {source_context}
Output: {model_output}
Claim analysis:How to use
- 1Decompose the model output into atomic, verifiable claims (entities, relationships, numbers)
- 2For each claim, check against retrieved source context for explicit support
- 3Run a separate NLI (Natural Language Inference) model or LLM judge to classify entailment/contradiction
- 4Detect internal contradictions by comparing claims within the same output against each other
- 5Flag numerical claims for exact-match verification against source data
- 6Route outputs with high hallucination probability to a human reviewer or trigger a regeneration with stronger grounding
Pro tips
- RAGAS's faithfulness metric and DeepEval's hallucination metric are off-the-shelf implementations
- Atomic claim decomposition is critical — checking whole paragraphs for factuality misses subtle fabrications
- Self-consistency (sampling multiple outputs and checking agreement) catches stochastic hallucinations
- Always require citations in grounded generation so each claim can be traced to a source
Works best with
ragasdeepevallangsmithtruefoundry
HallucinationFactualityDetectionGroundingSafety
Ratings & Reviews
Loading reviews…
Related Skills

Evaluation
LLM-as-Judge — automate evaluation with AI scoring
Use a strong LLM to score model outputs against rubrics, compare A/B variants, and generate qualitative feedback at scale without human annotators.
EvaluationLLM-as-JudgeScoring
4.7
Prompting
RAG Prompting — retrieval-augmented generation for grounded answers
Combine retrieved context with targeted prompts so the AI answers from your documents instead of hallucinating.
RAGRetrievalGrounding
4.5
Security
Prompt Injection Defense — protect your AI system from malicious inputs
Use input sanitization, instruction hierarchy, output filtering, and adversarial testing to prevent prompt injection attacks.
SecurityPrompt InjectionDefense
4.1