ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

概念

Amazon Bedrock Guardrails

Safeguards that check what goes into a generative AI application and what comes out.

このレッスンはまだ翻訳されていないため、英語で表示しています。

User
Guardrail checks the prompt
Bedrock
Guardrail checks the answer
Safe reply
Safe message instead
  1. 1The user sends a prompt.
  2. 2The guardrail checks the prompt. A failed check stops it here.
  3. 3The model writes an answer.
  4. 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.

流れ

  1. 1The user sends a prompt.
  2. 2The guardrail checks the prompt. A failed check stops it here.
  3. 3The model writes an answer.
  4. 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
The six safeguards you can switch on in a guardrail.

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

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

3 / 3

  • Automated Reasoning checks

    What it does
    Test answers against rules you define
    Example
    Recommend only products in stock
The six safeguards you can switch on in a guardrail.

概要

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.