Skill 5.1.5

Describe hallucination detection methods and grounding techniques to improve output accuracy (for example, Retrieval Augmented Generation [RAG] grounding, output validation, confidence scoring)

Key Concepts

RAG grounding: supply relevant, authoritative documents in the context and instruct the model to answer only from them (and say when it does not know). Contextual grounding checks in Bedrock Guardrails score responses for grounding in the sources and relevance to the query, blocking low-scoring answers.

Output validation: check outputs against rules, schemas or trusted data (Automated Reasoning checks verify against formal policies). Confidence scoring: estimate confidence and route low-confidence answers to humans. Lower temperature and citations also help.