You can use a reranker model directly or while retrieving results during knowledge base query. Choose the tab for your preferred method, and then follow the steps:
You can't use a reranker model directly in the AWS Management Console, but you can use a reranker model when querying your knowledge base by doing the following:
-
When you query a knowledge base, open up the Configurations pane by choosing the
icon.
-
Expand the Reranking section.
-
Choose Select model and select a reranker model.
-
If your Amazon Bedrock Knowledge Bases service role is missing permissions to use the reranker model, select Update service role to modify the role with the proper permissions.
-
(Optional) In the Additional Reranking options section, modify any options that you need to.
-
Enter a prompt and select Run. The response is the result after applying the reranker model.
For more detailed instructions about carrying out knowledge base query, see Query a knowledge base and retrieve data and Query a knowledge base and generate responses based off the retrieved data.