Home icon

Metadata filtering for tabular data with Amazon Bedrock Knowledge Bases

Machine Learning Blog



This article explains how to use the metadata filtering feature in Amazon Bedrock Knowledge Bases to retrieve more relevant and accurate results from tabular data.

Specifically, the article covers:

  • Preparing data for metadata filtering by converting tabular data into individual text files with metadata attributes
  • Creating and ingesting data and metadata into a Knowledge Base using the Boto3 SDK
  • Retrieving data from the Knowledge Base using metadata filters like cholesterol content and preparation time
  • Using the retrieved data along with an AI model to generate accurate responses based on the specified metadata filters
  • Cleaning up resources like the Knowledge Base, data sources, and IAM roles/policies if not needed


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 8
2024
Amazon Bedrock Knowledge Bases now supports metadata filtering to improve retrieval accuracy
Jul 2
2024
Access control for vector stores using metadata filtering with Amazon Bedrock Knowledge Bases
Jul 10
2024
Knowledge Bases for Amazon Bedrock now supports additional data sources (preview)
Mar 4
2025
Dynamic metadata filtering for Amazon Bedrock Knowledge Bases with LangChain

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.