Rerank

Rerank documents

Text reranking for verified TEI deployments and multimodal document reranking for compatible vLLM vision rerank deployments. Flat workspace requests are replay-safe when an Idempotency-Key is provided; pipeline-scoped rerank helpers are sent once.

post/rerank

Request body

OR

Example request

{
  "model": "bge-reranker-v2-m3",
  "query": "What is RunInfra Instant Start?"
}

Response

Rerank response

objectstring required
modelstring required
upstream_modelstring
document_countinteger required

Example response

{
  "object": "runinfra.rerank",
  "usage": {
    "cost": 0.00294,
    "runinfra": {
      "cost_microcents": 294000
    }
  }
}

Changes