- Newest
- Most votes
- Most comments
Hi, can you provide more information on your desired functionality ? Are you trying to limit which email-addresses might show up in model's responses, but still want it to refer to feeds@domain.com when it's applicable ? Understanding your specific use case could help find an alternative solution. Also, curious which model you're testing this with.
Hi @AWS-User-7634252, / OleksiiAndrosov
I'm looking to apply a specific restriction using Amazon Bedrock Guardrails to enhance the handling of PII within prompts.
The objective is to block all email addresses, with one exception — a designated help/support email such as feeds[at]domain.com. In essence:
If a prompt includes any email address, it should be denied.
The only allowed email address should be feeds[at]domain.com (as part of an approved support workflow).
All other PII-related information, especially unapproved email addresses, should be blocked by the guardrail.
I’ve explored a few regex patterns, but due to RE2 syntax limitations (such as unsupported lookaheads), I’ve not yet found a viable solution within the current Guardrails UI.
Relevant content
- asked 3 months ago
- asked a month ago
- asked 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 days ago