Build responsible AI applications with Guardrails for Amazon Bedrock

MirajGodha1 16 views 17 slides Sep 15, 2025
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Build responsible AI applications
with Guardrails for Amazon Bedrock
Anubha...


Slide Content

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Build responsible AI applications
with Guardrails for Amazon Bedrock
Anubhav Mishra
GRC325
(he/him)
Principal Product Manager
AWS

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building generative apps brings new challenges
Privacy protection
Protect user
information or
sensitive data
Bias/stereotype
propagation
Biased results or
unfair user
outcomes
Undesirable and
irrelevant topics
Controversial
queries and
responses
Toxicity and safety
(including
brand risk)
Harmful or
offensive responses

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Titan Claude LlamaCommand + Embed
Stable Diffusion
Jurassic-2
Mistral + Mixtral
Many foundation models have built-in protections

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building generative AI apps requires additional controls
Customizations based on use cases
and organizational policy
Consistent safeguards across FMs
and applications
Safety and privacy controls for
responsible AI

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Guardrails for
Amazon Bedrock
Filter harmful content and safeguard
against prompt injection and jailbreaks
Define and disallow denied topics with
short natural language descriptions
Redact or block sensitive information,
such as PIIs, and custom regex
(regular expressions)
Implement safeguards customized to
your application requirements and
responsible AI policies
Apply guardrails to multiple foundation
models, knowledge bases, and agents for
Amazon Bedrock

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How it works: Guardrails for Amazon Bedrock
User input FM output
Guardrail
Final response
FM inference
Responsible AI policies
Denied topics Content filters Word filterPII redaction

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Denied topics
A V O I D U N D E S I R A B L E T O P I C S I N Y O U R A P P L I C A T I O N S

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Content filters
CONFIGURE THRESHOLDS TO FILTER CONTENT
T O V A R Y I N G D E G R E E S
Filter harmful content across categories:
➢Hate
➢Insults
➢Sexual
➢Violence
➢Misconduct (criminal activity)
➢Prompt Attack (jailbreak and prompt injection)

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
➢Redact personally identifiable
information (PII) in FM responses to
protect user privacy
➢Detect and filter PIIs in user inputs
➢Select from a variety of PIIs based on
application requirements
➢Define your own sensitive information
using regular expressions (regex)
Sensitive information filter
PROTECT SENSITIVE INFORMATION AND PRESERVE USER PRIVACY

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Word filters
B L O C K C U S T O M W O R D S A N D P R O F A N I T Y
➢Filter profane words
➢Define a set of custom words
to block user input and FM
responses

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Guardrails demo

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Guardrails demo

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agents with guardrail demo

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agents with guardrail demo

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sensitive information filter demo

© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sensitive information filter demo
Tags