Skip to main content
POST
Rerank
Re-rank a set of candidate documents by relevance to a query, commonly used for precise ranking after RAG recall. Fully compatible with the Cohere / Jina Rerank protocol.

Request

Parameters

Response

results is sorted descending by relevance_score, and index points to the position in the original documents array.

Python (raw HTTP)

Cohere SDK

Billing

Charged by the total tokens of query + all documents; the specific multiplier depends on the model.