Home icon

Introducing guardrails in Amazon Bedrock Knowledge Bases

Machine Learning Blog



This article introduces the integration of guardrails with Knowledge Bases for Amazon Bedrock, a service that helps connect foundation models to company data using Retrieval Augmented Generation (RAG). It provides enhanced safety and compliance for generative AI RAG applications by allowing you to filter harmful content and protect sensitive information in your documents.

Specifically, the article covers:

  • Solution overview and workflow of applying guardrails to Knowledge Bases
  • Use cases like legal knowledge management, financial services, and ecommerce customer support
  • Steps to prepare a sample dataset, create a knowledge base, and sync data
  • How to create guardrails with denied topics and sensitive information filters
  • Testing the knowledge base with and without guardrails on the AWS console
  • Code sample for querying the knowledge base with guardrails using AWS SDK
  • Cleanup steps to delete the resources created


Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Apr 23
2024
Guardrails for Amazon Bedrock now available with new safety filters and privacy controls
Oct 3
2024
Implement model-independent safety measures with Amazon Bedrock Guardrails
Nov 19
2025
Amazon Bedrock Guardrails adds support for coding use cases
Dec 3
2024
Amazon Bedrock Guardrails now supports Automated Reasoning checks (Preview)

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.