Skill 3.1.3
Develop accuracy verification systems to reduce hallucinations in FM responses (for example, by using Amazon Bedrock Knowledge Base to ground responses and perform fact-checking, confidence scoring and semantic similarity search for verification, JSON Schema to enforce structured outputs)
Key Concepts
Grounding with Bedrock Knowledge Bases supplies retrieved sources and returns citations, and instructions tell the model to answer only from those sources and to say when information is missing. The guardrail contextual grounding check scores each response for grounding (supported by the source) and relevance (answers the query) and blocks responses below the configured thresholds. Automated Reasoning checks validate responses against formal policy rules.
Confidence scoring combines signals such as retrieval scores, agreement between several samples and a judge model's rating. Semantic similarity between each claim and retrieved passages flags unsupported sentences. JSON Schema, enforced through tool use or structured output features and validated in code, prevents malformed or invented fields.