Perform reranking inference on the service

Auth

Required authorization

Cluster privileges monitor_inference

Path parameters

inference_id string required

The unique identifier for the inference endpoint.

Query parameters

timeout string · default: 30s

The amount of time to wait for the inference request to complete.

Request body

query string required

Query input.

input union string | string[] required

The text on which you want to perform the inference task. It can be a single string or an array.

Note

Inference endpoints for the completion task type currently only support a single string as input.

task_settings object

Task settings for the individual inference request. These settings are specific to the task type you specified and override the task settings specified when initializing the service.

Response

application/json
rerank object[] required
index number required
relevance_score number required
text string