RS Infer
Server Endpoints

/rerank

Identical to `POST /v1/rerank` (vLLM/Jina/Cohere compatible reranker).

POST
/rerank

Identical to POST /v1/rerank (vLLM/Jina/Cohere compatible reranker).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/rerank" \  -H "Content-Type: application/json" \  -d '{    "query": "string",    "documents": [      "string"    ]  }'
{  "id": "string",  "model": "string",  "results": [    {      "index": 0,      "document": {        "text": "string"      },      "relevance_score": 0.1    }  ],  "usage": {    "prompt_tokens": 0,    "total_tokens": 0  }}