younifyd
Menu

Perform completion inference on the service

Perform completion inference on the service

POST/_inference/completion/{inference_id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Perform completion inference on the service action (under inference).
  3. Fill in the fields below, then reference the result from later steps as {{performCompletionInferenceOnTheService.response.data}}.

Request

Path parameters

inference_idstringrequired

The inference Id

Query parameters

timeoutoneOf

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

Request body

Enter the body as JSON in the step's Body field.

inputoneOfrequired

Inference input. Either a string or an array of strings.

task_settingsany

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.

json
{
  "input": null,
  "task_settings": null
}

Response

Returns 200 with an object. Read it in later steps with {{performCompletionInferenceOnTheService.response.data.<field>}}.

completionarray<object>
resultstringrequired
json
{
  "completion": [
    {
      "result": "string"
    }
  ]
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Perform completion inference on the service — Elasticsearch — Documentation