Perform text embedding inference on the service

Auth

Path parameters

inference_id string required

The inference Id

Query parameters

timeout string · default: 30s

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

Request body

input union string | string[] required

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

input_type string

The input data type for the text embedding model. Possible values include:

  • SEARCH
  • INGEST
  • CLASSIFICATION
  • CLUSTERING Not all services support all values. Unsupported values will trigger a validation exception. Accepted values depend on the configured inference service, refer to the relevant service-specific documentation for more info.
Note

The input_type parameter specified on the root level of the request body will take precedence over the input_type parameter specified in task_settings.

task_settings object

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
text_embedding_bytes object[]
embedding number[] required
text_embedding_bits object[]
embedding number[] required
text_embedding object[]
embedding number[] required