A developer is using Amazon Bedrock Guardrails to filter out hate speech and violence in a chatbot application. During testing, the developer notices that some prompts containing subtle hate speech are not being blocked. The developer wants to improve the detection rate without increasing false positives on benign content. Which action should the developer take?
Guardrails support custom word filters that can be configured to block specific terms or phrases. By adding the subtle hate speech patterns to a custom filter, the developer can increase detection without broadly raising sensitivity, thus minimizing false positives on benign content. This is a targeted approach.
Why this answer
To improve detection of subtle hate speech without increasing false positives, the developer should use Guardrails' custom word filters. These allow adding specific terms or phrases that the standard classifiers might miss. By targeting the exact patterns, the developer can enhance detection while keeping the broader filters at balanced settings, thus avoiding over-blocking benign content.
Exam trap
The trap here is thinking that raising the filter strength is the only way to catch more hate speech, when custom word filters offer a more precise solution.