Inference
Rerank documents
Rerank documents according to their relevance to a query.
For guidance and examples, see Rerank documents.
POST
/
rerank
Authorizations
Body
application/json
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 fields to rank the documents by. If not provided, the default is "text"
.
Additional model-specific parameters for the reranker.
Was this page helpful?