Rerank results according to their relevance to a query.
For guidance and examples, see Rerank results.
Rerank documents for the given query
The query to rerank documents against.
"What is the capital of France?"
The documents to rerank.
The number of results to return sorted by relevance. Defaults to the number of inputs.
5
Whether to return the documents in the response.
true
The field(s) to consider for reranking. If not provided, the default is ["text"].
The number of fields supported is model-specific.
Additional model-specific parameters. Refer to the model guide for available model parameters.
{ "truncate": "END" }