Protocols

Rerank

Rerank retrieval results for search, RAG, and knowledge-base ranking.

Method

POST

Endpoint

/v1/rerank

Base URL

https://api-zeno.com/v1

Auth

Authorization: Bearer $API_ZENO_KEY

Notes

  • Request body contains query and documents.
  • Model, price, and channel must be configured in admin.

Example

bash
curl https://api-zeno.com/v1/rerank \
  -H "Authorization: Bearer $API_ZENO_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bge-reranker-large",
    "query": "gateway billing trace",
    "documents": [
      "API logs include request_id and channel_id.",
      "Frontend theme settings are stored locally."
    ]
  }'