Amazon Web Services
AWS-AI4 intermediate
Make a GenAI assistant safe with Bedrock Guardrails
Create a guardrail for a banking chatbot: deny investment advice, mask personal data, block prompt-injection attacks and custom words, test every policy, and apply the guardrail in the playground.
What you'll do
- Configure content filters and prompt-attack protection
- Define a denied topic with examples
- Mask PII such as e-mail and phone numbers
- Test interventions and apply a guardrail to model calls
Lab tasks
-
1
Create guardrail
bank-assistant-guardrail - 2 Test the denied topic
- 3 Block a prompt-injection attack
- 4 Mask personal information
- 5 Publish version 1
- 6 Apply the guardrail in the playground