Amazon Bedrock Guardrails (sensitive information filters)
Amazon Bedrock Guardrails applies configurable content, topic, word, sensitive-information, and grounding filters to both user prompts and model responses in Bedrock generative AI applications.
Description
Amazon Bedrock Guardrails is a managed safety service from AWS that screens generative AI traffic on the Bedrock platform. It evaluates input prompts and model completions against configured policies, including content filters, denied topics, word filters, sensitive information filters, and contextual grounding checks. Guardrails can be invoked inline during model inference or standalone through the ApplyGuardrail API, blocking or masking content that violates a policy.
Solution
Guardrails is an inline filtering stage rather than an agent loop: each user input and each model completion passes through the configured policy filters, and content that violates a policy is blocked or masked before it reaches the model or the user.
Primary use cases
- filtering harmful prompts and responses in chatbots
- redacting PII from conversation transcripts
- blocking denied topics in regulated applications
- detecting hallucinations in RAG responses
Open the full interactive page →
Diagram, neighbourhood map, code examples, related patterns and full provenance.