Test your knowledge base with queries and responses - Amazon Bedrock
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Test your knowledge base with queries and responses

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.