Sharper retrieval in one call
Rerank
Reorder candidate documents by relevance to a query with the Cohere-compatible /v1/rerank endpoint.
POST /v1/rerank
What is the capital of France?
- 10.978
Paris is the capital of France.
- 20.121
France borders Spain and Italy.
- 30.0001
Berlin is the capital of Germany.
01
Cross-encoder accuracy
Query and document read together.
02
Cohere compatible
Same request and response shape.
03
Sorted results
Highest relevance first.
04
Two-stage ready
Pairs with embeddings.
Built for
Better RAG
Only the best passages reach the model
Search ranking
Reorder keyword results
Answer selection
Pick the best candidate
Rerank candidates
terminal
1curl https://api.llmgateway.io/v1/rerank \2 -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "qwen3-reranker-8b",6 "query": "What is the capital of France?",7 "documents": [8 "Paris is the capital of France.",9 "Berlin is the capital of Germany."10 ]11 }'