younifyd
Menu

Create an Nvidia inference endpoint

Create an Nvidia inference endpoint

PUT/_inference/{task_type}/{nvidia_inference_id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Create an Nvidia inference endpoint action (under inference).
  3. Fill in the fields below, then reference the result from later steps as {{createAnNvidiaInferenceEndpoint.response.data}}.

Request

Path parameters

task_typestringrequired

The type of the inference task that the model will perform. NOTE: The `chat_completion` task type only supports streaming and only through the _stream API.

One ofchat_completioncompletionreranktext_embedding

nvidia_inference_idstringrequired

The unique identifier of the inference endpoint.

Query parameters

timeoutoneOf

Specifies the amount of time to wait for the inference endpoint to be created.

Request body

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

chunking_settingsany

The chunking configuration object. Applies only to the `text_embedding` task type. Not applicable to the `rerank`, `completion`, or `chat_completion` task types.

serviceanyrequired

The type of service supported for the specified task type. In this case, `nvidia`.

service_settingsanyrequired

Settings used to install the inference model. These settings are specific to the `nvidia` service.

task_settingsany

Settings to configure the inference task. Applies only to the `text_embedding` task type. Not applicable to the `rerank`, `completion`, or `chat_completion` task types. These settings are specific to the task type you specified.

json
{
  "service": null,
  "service_settings": null,
  "chunking_settings": null,
  "task_settings": null
}

Response

Returns 200 with a any. Read it in later steps with {{createAnNvidiaInferenceEndpoint.response.data.<field>}}.

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

Create an Nvidia inference endpoint — Elasticsearch — Documentation