Perform reranking inference on the service
- POST /_inference/rerank/{inference_id}
- Cluster privileges:
monitor_inference
Path Parameters
-
inference_idstring Idrequired -
The unique identifier for the inference endpoint.
Query Parameters
-
timeoutstring Duration · default: 30s The amount of time to wait for the inference request to complete.
Request
-
querystringrequired -
Query input.
-
inputstring | stringrequired -
The text on which you want to perform the inference task. It can be a single string or an array.
info Inference endpoints for the
completiontask type currently only support a single string as input. -
task_settingsTaskSettings -
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
-
rerankRankedDocumentrequired -
indexnumberrequired -
relevance_scorenumberrequired -
textstring