Menu
Perform reranking inference on the service
Perform reranking inference on the service
POST
/_inference/rerank/{inference_id}Use it in a workflow
- Add a step and choose the Elasticsearch connector.
- Pick the Perform reranking inference on the service action (under inference).
- Fill in the fields below, then reference the result from later steps as
{{performRerankingInferenceOnTheService.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"query": null,
"input": null,
"return_documents": false,
"top_n": 0,
"task_settings": null
}
Response
Returns 200 with an object. Read it in later steps with {{performRerankingInferenceOnTheService.response.data.<field>}}.
{
"rerank": [
{
"index": 0,
"relevance_score": 0,
"text": "string"
}
]
}
Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.
Was this page helpful?