Perform rereanking inference on the service
Added in 8.11.0
Path parameters
-
inference_id
string Required The unique identifier for the inference endpoint.
Query parameters
-
timeout
string The amount of time to wait for the inference request to complete.
Body
-
query
string Required Query input.
input
string | array[string] Required The text on which you want to perform the inference task. It can be a single string or an array.
Inference endpoints for the
completion
task type currently only support a single string as input.-
task_settings
object Additional properties are allowed.
POST
/_inference/rerank/{inference_id}
curl \
--request POST http://api.example.com/_inference/rerank/{inference_id} \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"query":"string","input":"string","task_settings":{}}'