ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

Service · Machine Learning · AIF-C01 အပေါ် ဆက်လေ့လာရန်

Amazon Bedrock Guardrails

Set content filter strengths, topics, words, PII handling and grounding thresholds, and call the guardrail on any model.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

AI Practitioner မှ သင်သိပြီးသားများ

  • Guardrails filter harmful content, block denied topics and mask personal data on inputs and outputs.
  • Contextual grounding checks detect answers that stray from the source.
  • Guardrails work with Bedrock models and other models through ApplyGuardrail.
AI Practitioner သင်ခန်းစာကို ဖတ်ရန်
  • Content filters

    Checks
    Harm categories and prompt attacks
    Acts on
    Prompts and responses
  • Denied topics

    Checks
    Subjects you define
    Acts on
    Prompts and responses
  • Word filters

    Checks
    Exact words and phrases
    Acts on
    Prompts and responses
  • Sensitive information

    Checks
    PII and custom patterns
    Acts on
    Block or mask
  • Contextual grounding

    Checks
    Grounding and relevance scores
    Acts on
    Responses
  • Automated Reasoning

    Checks
    Logic from your policy rules
    Acts on
    Responses
Six policies and what each checks.

1 / 2

  • Content filters

    Checks
    Harm categories and prompt attacks
    Acts on
    Prompts and responses
  • Denied topics

    Checks
    Subjects you define
    Acts on
    Prompts and responses
  • Word filters

    Checks
    Exact words and phrases
    Acts on
    Prompts and responses

2 / 2

  • Sensitive information

    Checks
    PII and custom patterns
    Acts on
    Block or mask
  • Contextual grounding

    Checks
    Grounding and relevance scores
    Acts on
    Responses
  • Automated Reasoning

    Checks
    Logic from your policy rules
    Acts on
    Responses
Six policies and what each checks.
User
Guardrails
Model
Any other model
promptallowedresponseApplyGuardrail
The guardrail checks the prompt and the response, and ApplyGuardrail serves other models.

ဘာလဲ

Content filters cover Hate, Insults, Sexual, Violence, Misconduct and Prompt Attack. Each has a strength (none, low, medium, high), set separately for prompts and responses; higher blocks more. Prompt Attack checks prompts only, for jailbreaks and injection. Denied topics are subjects you define with a name, a description and example phrases. Word filters block exact words and phrases, such as profanity or competitor names. Sensitive information filters detect PII in standard formats, plus your own regular expressions, and block or mask it, differently for input and output.

ဘာလဲ

Contextual grounding checks compare a response with a source you give and with the user question. The grounding score checks that the answer is supported by the source. The relevance score checks that it answers the question. You set a threshold from 0 to 0.99 for each, and lower scores are blocked. You mark the source and question in the request. Automated Reasoning checks verify answers against logical rules derived from your policy documents.

ဘာလဲ

ApplyGuardrail checks text without calling a model, so it works with any model, including models outside Bedrock, and can check input or retrieved text before a call. For streaming, synchronous mode (the default) buffers and checks chunks before sending: safer, with more latency. Asynchronous mode sends chunks at once and checks in the background, so bad text may reach the user first, and PII masking is not supported. Edit a guardrail as a working draft, create a numbered version that cannot change, and point applications at it. You can enforce a guardrail with an IAM condition.

မှတ်ထားရန်

  • Content filters: six categories, strength none to high, set for input and output.
  • Grounding and relevance thresholds: 0 to 0.99.

စာမေးပွဲမှာ

  • “Stop the chatbot giving investment advice” points to a denied topic.
  • “Replace phone numbers in answers with a placeholder” points to a sensitive information filter set to mask.
  • “Block RAG answers with facts not in the documents” points to contextual grounding with a grounding threshold.
  • “Apply safeguards to a model outside Bedrock” points to the ApplyGuardrail API.