Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Test your knowledge base with queries and responses

Focus mode
Test your knowledge base with queries and responses - Amazon Bedrock

After you set up your knowledge base, you can test its behavior in the following ways:

  • Send queries and retrieving relevant information from your data sources, by using the Retrieve operation.

  • Send queries and generate responses to the queries based on the retrieved information from your data sources, by using the RetrieveAndGenerate operation.

  • Use a reranking model over the default Amazon Bedrock Knowledge Bases reranking model to retrieve more relevant sources when using either Retrieve or RetrieveAndGenerate.

  • Use optional metadata filters with the Retrieve or RetrieveAndGenerate API to specify which documents in your data source can be used.

When you are satisfied with your knowledge base's behavior, you can then set up your application to query the knowledge base or attach the knowledge base to an agent by proceeding to Deploy your knowledge base for your AI application.

Select a topic to learn more about it.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.