Rerank
Rerank documents
Rerank documents according to their relevance to a query.
For guidance and examples, see Rerank documents.
POST
Authorizations
Body
application/json
Rerank documents for the given query
The query to rerank documents against.
The documents to rerank.
The number of results to return sorted by relevance. Defaults to the number of inputs.
Whether to return the documents in the response.
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.
Was this page helpful?