သဘောတရား
Amazon Bedrock Guardrails
Safeguards that check what goes into a generative AI application and what comes out.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
- 1The user sends a prompt.
- 2The guardrail checks the prompt. A failed check stops it here.
- 3The model writes an answer.
- 4The guardrail checks the answer, then sends it to the user.
အဆင့်ဆင့်
- 1The user sends a prompt.
- 2The guardrail checks the prompt. A failed check stops it here.
- 3The model writes an answer.
- 4The guardrail checks the answer, then sends it to the user.
A guardrail sits on both sides of the model. A failed check returns a safe message instead.
Content filters
- What it does
- Block harmful text in prompts and answers. The prompt attack check, such as jailbreaks, looks at user prompts only.
- Example
- Hate, violence, jailbreak attempts
Denied topics
- What it does
- Refuse subjects you describe
- Example
- No medical or investment advice
Word filters
- What it does
- Block exact words and phrases
- Example
- Profanity, competitor names
Sensitive information filters
- What it does
- Find personal data, then block or mask it
- Example
- Email address becomes a mask
Contextual grounding checks
- What it does
- Check the answer against its source
- Example
- Flag an invented fact
Automated Reasoning checks
- What it does
- Test answers against rules you define
- Example
- Recommend only products in stock
| Safeguard | What it does | Example |
|---|---|---|
| Content filters | Block harmful text in prompts and answers. The prompt attack check, such as jailbreaks, looks at user prompts only. | Hate, violence, jailbreak attempts |
| Denied topics | Refuse subjects you describe | No medical or investment advice |
| Word filters | Block exact words and phrases | Profanity, competitor names |
| Sensitive information filters | Find personal data, then block or mask it | Email address becomes a mask |
| Contextual grounding checks | Check the answer against its source | Flag an invented fact |
| Automated Reasoning checks | Test answers against rules you define | Recommend only products in stock |
1 / 3
Content filters
- What it does
- Block harmful text in prompts and answers. The prompt attack check, such as jailbreaks, looks at user prompts only.
- Example
- Hate, violence, jailbreak attempts
Denied topics
- What it does
- Refuse subjects you describe
- Example
- No medical or investment advice
| Safeguard | What it does | Example |
|---|---|---|
| Content filters | Block harmful text in prompts and answers. The prompt attack check, such as jailbreaks, looks at user prompts only. | Hate, violence, jailbreak attempts |
| Denied topics | Refuse subjects you describe | No medical or investment advice |
2 / 3
Word filters
- What it does
- Block exact words and phrases
- Example
- Profanity, competitor names
Sensitive information filters
- What it does
- Find personal data, then block or mask it
- Example
- Email address becomes a mask
Contextual grounding checks
- What it does
- Check the answer against its source
- Example
- Flag an invented fact
| Safeguard | What it does | Example |
|---|---|---|
| Word filters | Block exact words and phrases | Profanity, competitor names |
| Sensitive information filters | Find personal data, then block or mask it | Email address becomes a mask |
| Contextual grounding checks | Check the answer against its source | Flag an invented fact |
3 / 3
Automated Reasoning checks
- What it does
- Test answers against rules you define
- Example
- Recommend only products in stock
| Safeguard | What it does | Example |
|---|---|---|
| Automated Reasoning checks | Test answers against rules you define | Recommend only products in stock |
ဘာလဲ
Amazon Bedrock Guardrails is a feature of Amazon Bedrock. You set rules once, and the guardrail checks every prompt before it reaches the model and every response before it reaches the user. If a check fails, the user gets a safe message that you wrote instead of the blocked text.
ဘာလဲ
A guardrail is built from policies, and you switch on the ones you need. Content filters block harmful text, such as hate, insults, sexual content, violence and misconduct, and prompt attacks such as jailbreaks and prompt injection. You set how strict each filter is. Denied topics block subjects you describe in plain words. Word filters block exact words or phrases. Sensitive information filters find personal data, such as names and card numbers, and block or mask it. Contextual grounding checks compare an answer with its source to catch hallucinations. Automated Reasoning checks test an answer against logical rules and policies that you define.
ဘာလဲ
One guardrail can protect many applications and many models. It can also check text from models that are not in Amazon Bedrock. Guardrails help with the responsible AI features safety and veracity. They do not make a model fair on their own.
မှတ်ထားရန်
- It checks both the input prompt and the output response.
- Content filters: hate, insults, sexual content, violence, misconduct and prompt attacks (jailbreaks, prompt injection). You set the strength for each.
- Denied topics: subjects the application must not discuss, such as investment advice. Word filters: exact words or phrases to block.
မှတ်ထားရန်
- Sensitive information filters: find personal data and block or mask it.
- Contextual grounding checks: flag answers that are not backed by the source or do not answer the question.
- Automated Reasoning checks: verify that answers follow rules and policies you define, to catch false claims.
စာမေးပွဲမှာ
- “Block harmful content or off-topic questions in a generative AI application” points to Amazon Bedrock Guardrails.
- “Hide personal data such as phone numbers in model responses” points to a sensitive information filter.
- “Catch answers that are not supported by the retrieved documents” points to a contextual grounding check.
- “Stop users from tricking the model with jailbreaks or prompt injection” points to the prompt attack content filter.
ဒါတွေနဲ့ မရောပါနဲ့
- Features of responsible AIThe qualities an AI system needs so that people can trust it: fair, inclusive, reliable, safe and truthful.
- Hallucination detection and groundingMake a model’s answers match real sources, and catch the ones that do not.
- Amazon Bedrock Model EvaluationRun automatic, human or LLM-as-a-judge evaluation jobs on models, and evaluate knowledge bases.