Inference
Rerank documents
Rerank documents according to their relevance to a query.
For guidance and examples, see Rerank documents.
POST
Body
application/json
The documents to rerank.
The query to rerank documents against.
Additional model-specific parameters for the reranker.
The fields to rank the documents by. If not provided, the default is "text"
.
Whether to return the documents in the response.
The number of results to return sorted by relevance. Defaults to the number of inputs.
Was this page helpful?