Reranks the relevance of sources based on queries. For more information, see Improve the relevance of query responses with a reranker model.
See https://www.paws-r-sdk.com/docs/bedrockagentruntime_rerank/ for full documentation.
bedrockagentruntime_rerank(
nextToken = NULL,
queries,
rerankingConfiguration,
sources
)
If the total number of results was greater than could fit in a response,
a token is returned in the nextToken
field. You can enter that token
in this field to return the next batch of results.
[required] An array of objects, each of which contains information about a query to submit to the reranker model.
[required] Contains configurations for reranking.
[required] An array of objects, each of which contains information about the sources to rerank.