Zorveus LogoZorveusDOCS

Rerank

Rerank document search results for optimized retrieval accuracy in RAG workflows.

Rerank

POST/v1/rerank
Inference Key (Bearer zrv_...)

Re-order document chunks by relevance to a query using reranking models (e.g. Cohere / Jina / BGE).

Inference Key TesterInteractive
Paste your Zorveus key to dynamically update all code snippets below.

Code Example

curl https://api.zorveus.com/v1/rerank \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer zrv_your_inference_key" \
  -d '{
    "model": "cohere/rerank-v3.5",
    "query": "What is write-ahead logging?",
    "documents": [
      "Write-ahead logging records transactions sequentially before disk writes.",
      "Redis is an in-memory key-value data store.",
      "PostgreSQL uses MVCC for concurrency control."
    ],
    "top_n": 2
  }'
Was this page helpful?
Edit this page on GitHub

On this page