In a previous blog, I discussed AI Governance challenges associated with DeepSeek, especially China data risks. Several vendors like Amazon Web Services (AWS), Perplexity, and Microsoft Azure are embedding DeepSeek within their offerings to mitigate some of these risks.
As shown in the blog, DeepSeek already blocks toxic prompts with native AI Guardrails. In this blog, we discuss the use of Amazon Bedrock AI Guardrails with DeepSeek to block additional problematic content such as Competitor Mentions and Off-Topic prompts.
For added protection, we also added Word Filters in Bedrock.
As a result, a prompt requesting information about Domino’s was blocked in Bedrock.
A prompt containing Burger King was also blocked.
The image below shows the details of the Off-Topic Guardrail. We created multiple Off-Topic Guardrails due to the limit of 200 characters in Bedrock.
As a result, Bedrock blocked an off-topic prompt relating to the U.S. President.
Used DeepSeek-R1-Distill-Qwen-7B Model within Amazon Bedrock
We used the DeepSeek-R1-Distill-Qwen-7B model within Amazon Bedrock.
Using Amazon Bedrock, we were able to generate successful responses from DeepSeek to a prompt requesting vegetarian options for McDonald’s.
Creating AI Guardrail to Block Competitor Mentions
AWS offers support for the Amazon Bedrock ApplyGuardrail API to create custom AI Guardrails such as blocking prompts that contain competitor mentions or that are off-topic. We added a Block Competitor Information Guardrail in Bedrock to avoid responses relating to McDonald’s competitors.




Creating AI Guardrail to Block Off-Topic Prompts
We created AI guardrails to block off-topic prompts.


