Skip to main content
Rerank documents by semantic relevance and get the complete API response including relevance scores and metadata. For a simpler response format, use cohere_rerank_simple().

Arguments

This function accepts the same arguments as cohere_rerank_simple().

Returns

JSONB: The complete API response including results array with indexes, relevance scores, and document metadata.