QuestionQ17

VerifiedGovernance

A Generative AI Engineer is building a conversational chatbot, based on a large language model (LLM), to help users with insurance-related inquiries. To keep the chatbot focused and comply with company policy, it must not answer questions about politics. Instead, for political inquiries, it should return this standard message:

> “Sorry, I cannot answer that. I am a chatbot that can only answer questions around insurance.”

Which type of framework should be implemented to address this?

Explanation

A contextual guardrail restricts interactions to the application’s intended domain and handles disallowed topics with a configured response. Politics is an out-of-scope topic for an insurance-only chatbot, so the guardrail should detect that context and return the standard refusal message. Amazon Bedrock Guardrails similarly supports denied topics that are undesirable in an application’s context and can return a blocked message when detected.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!