Rerank
Rerank documents against a query using a cross-encoder reranker. Cohere-compatible API.
post/v1/rerank
Request body
Example request
{
"model": "deepinfra/qwen3-reranker-8b",
"query": "What is the capital of France?",
"documents": [
"Paris is the capital of France.",
"Berlin is the capital of Germany.",
"Madrid is the capital of Spain."
],
"top_n": 2,
"return_documents": true,
"max_chunks_per_doc": 10
}Response
Rerank response with ranked results.
Changes
No recorded changes to this endpoint across all 1 revision of this API.