Remove a specific list of words and phrases from conversations with word filters
Amazon Bedrock Guardrails has word filters that you can use to block words and phrases in input prompts and model responses. You can use following word filters to block profanity, offensive, or inappropriate content, or content with competitor or product names.
-
Profanity filter – Turn on to block profane words. The list of profanities is based on conventional definitions of profanity and it's continually updated.
-
Custom word filter – Add custom words and phrases using the AWS Management Console of up to three words to a list. You can add up to 10,000 items to the custom word filter.
You have the following options for adding words and phrases using the Amazon Bedrock AWS Management Console:
-
Add manually in the text editor.
-
Upload a .txt or .csv file.
-
Upload an object from an Amazon S3 bucket.
Note
You can only upload documents and objects using the AWS Management Console. API and SDK operations only support text, and do not include the upload of documents and objects.
-