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.

  • Use a reranking model to retrieve more relevant sources.

  • Use optional metadata filters 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.

The test behavior is different based on functionality available in self-managed knowledge bases or managed knowledge bases. If you are using managed knowledge bases, for example, you can use agentic retrieval to decompose complex queries into sub-queries and iteratively retrieve relevant information from your data sources, by using the AgenticRetrieveStream operation.

Select a topic to learn more about it.