v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Cohere Integration

Rerank documents (Cohere format)

Reranks a list of documents against a query using Cohere's v2 Rerank API. The request body matches Cohere's native format.

post/cohere/v2/rerank

Request body

modelstring required

Cohere rerank model identifier (e.g. rerank-english-v3.0).

querystring required

Query string to rank documents against.

top_ninteger

Return only the top N reranked results.

return_documentsboolean

Include the original document text in the response.

max_tokens_per_docinteger

Truncate each document to this token limit before ranking.

Response

Successful response

idstring
metaobject