CONNECT WITH US
AI & Deeptech

AI & Deeptech

Best practices for writing Denied Topics in Amazon Bedrock Guardrails

AWS Machine Learning logo

Published on

Add as a preferred source on Google
Best practices for writing Denied Topics in Amazon Bedrock Guardrails

With Denied Topics in Amazon Bedrock Guardrails, you block a content category by describing it in plain language, and the guardrail applies that description to every request by meaning rather than by keyword. That same mechanism can also match more than you intend. A topic named Finance, meant to keep an assistant out of investment advice, also blocks “When does my direct deposit clear?”. Inputs close in meaning to the topic can get caught, not only the requests you intended.

When Denied Topics blocks too much or too little, the cause is usually one of four authoring patterns:

The rest of this post is a practical guide to avoiding these patterns. It presents eight best practices for describing a topic precisely enough that the guardrail blocks what you mean and passes what you don’t.

To ground the following practices in something concrete, we use one running example throughout this post: a fictional bank we call AnyCompany Bank. AnyCompany Bank is two weeks from launching its first customer-facing AI assistant, and its first pass at the Denied Topics policy is blocking the wrong things.

Application: AnyCompany Bank’s chatbot is embedded in the AnyCompany Bank mobile and web app. It answers questions about accounts, statements, transfers, cards, and mortgages. It hands off to a human for account changes, dispute filings, and questions outside its scope.

Against that target, AnyCompany Bank’s team first drafted four topics, all of them currently blocking legitimate queries:

Every one of these topics names a subject domain the assistant works in, rather than the intention the bank needs to refuse.


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.