bedrockagentruntime_rerank: Reranks the relevance of sources based on queries

View source: R/bedrockagentruntime_operations.R

bedrockagentruntime_rerankR Documentation

Reranks the relevance of sources based on queries

Description

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.

Usage

bedrockagentruntime_rerank(
  nextToken = NULL,
  queries,
  rerankingConfiguration,
  sources
)

Arguments

nextToken

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.

queries

[required] An array of objects, each of which contains information about a query to submit to the reranker model.

rerankingConfiguration

[required] Contains configurations for reranking.

sources

[required] An array of objects, each of which contains information about the sources to rerank.


paws.machine.learning documentation built on April 3, 2025, 8:41 p.m.