You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* to block input prompts or model responses containing harmful content.</p>
39
43
* </li>
40
44
* <li>
41
-
* <p>Specify messages for when the guardrail successfully blocks a prompt or a model response in the <code>blockedInputMessaging</code> and <code>blockedOutputsMessaging</code> fields.</p>
45
+
* <p>
46
+
* <b>Denied topics</b> - Define a set of topics that
47
+
* are undesirable in the context of your application. These topics will be blocked if
48
+
* detected in user queries or model responses.</p>
42
49
* </li>
43
50
* <li>
44
-
* <p>Specify topics for the guardrail to deny in the <code>topicPolicyConfig</code> object. Each <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailTopicConfig.html">GuardrailTopicConfig</a> object in the <code>topicsConfig</code> list pertains to one topic.</p>
45
-
* <ul>
46
-
* <li>
47
-
* <p>Give a <code>name</code> and <code>description</code> so that the guardrail can properly identify the topic.</p>
48
-
* </li>
49
-
* <li>
50
-
* <p>Specify <code>DENY</code> in the <code>type</code> field.</p>
51
-
* </li>
52
-
* <li>
53
-
* <p>(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the <code>examples</code> list.</p>
54
-
* </li>
55
-
* </ul>
51
+
* <p>
52
+
* <b>Word filters</b> - Configure filters to block
53
+
* undesirable words, phrases, and profanity. Such words can include offensive terms,
54
+
* competitor names etc.</p>
56
55
* </li>
57
56
* <li>
58
-
* <p>Specify filter strengths for the harmful categories defined in Amazon Bedrock in the <code>contentPolicyConfig</code> object. Each <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a> object in the <code>filtersConfig</code> list pertains to a harmful category. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-filters">Content filters</a>. For more information about the fields in a content filter, see <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a>.</p>
59
-
* <ul>
60
-
* <li>
61
-
* <p>Specify the category in the <code>type</code> field.</p>
62
-
* </li>
63
-
* <li>
64
-
* <p>Specify the strength of the filter for prompts in the <code>inputStrength</code> field and for model responses in the <code>strength</code> field of the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a>.</p>
65
-
* </li>
66
-
* </ul>
67
-
* </li>
68
-
* <li>
69
-
* <p>(Optional) For security, include the ARN of a KMS key in the <code>kmsKeyId</code> field.</p>
70
-
* </li>
71
-
* <li>
72
-
* <p>(Optional) Attach any tags to the guardrail in the <code>tags</code> object. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tagging">Tag resources</a>.</p>
57
+
* <p>
58
+
* <b>Sensitive information filters</b> - Block or
59
+
* mask sensitive information such as personally identifiable information (PII) or custom
60
+
* regex in user inputs and model responses.</p>
73
61
* </li>
74
62
* </ul>
63
+
* <p>In addition to the above policies, you can also configure the messages to be returned to
64
+
* the user if a user input or model response is in violation of the policies defined in the guardrail.</p>
65
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html">Guardrails for Amazon Bedrock</a> in
66
+
* the <i>Amazon Bedrock User Guide</i>.</p>
75
67
* @example
76
68
* Use a bare-bones client and the command you need to make an API call.
* <p>Specify filter strengths for the harmful categories defined in Amazon Bedrock in the <code>contentPolicyConfig</code> object. Each <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a> object in the <code>filtersConfig</code> list pertains to a harmful category. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-filters">Content filters</a>. For more information about the fields in a content filter, see <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a>.</p>
58
+
* <p>Specify filter strengths for the harmful categories defined in Amazon Bedrock in the <code>contentPolicyConfig</code> object. Each <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a> object in the <code>filtersConfig</code> list pertains to a harmful category. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-content-filters">Content filters</a>. For more information about the fields in a content filter, see <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a>.</p>
59
59
* <ul>
60
60
* <li>
61
61
* <p>Specify the category in the <code>type</code> field.</p>
* <p>(Optional) For security, include the ARN of a KMS key in the <code>kmsKeyId</code> field.</p>
70
70
* </li>
71
-
* <li>
72
-
* <p>(Optional) Attach any tags to the guardrail in the <code>tags</code> object. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tagging">Tag resources</a>.</p>
73
-
* </li>
74
71
* </ul>
75
72
* @example
76
73
* Use a bare-bones client and the command you need to make an API call.
0 commit comments