Perform text embedding inference on the service
- POST /_inference/text_embedding/{inference_id}
Path Parameters
-
inference_idstring Idrequired -
The inference Id
Query Parameters
-
timeoutstring Duration · default: 30s Specifies the amount of time to wait for the inference request to complete.
Request
-
inputstring | stringrequired -
Inference input. Either a string or an array of strings.
-
input_typestring -
The input data type for the text embedding model. Possible values include:
SEARCHINGESTCLASSIFICATIONCLUSTERINGNot 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.
info The
input_typeparameter specified on the root level of the request body will take precedence over theinput_typeparameter specified intask_settings. -
task_settingsTaskSettings -
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_bytesDenseEmbeddingByteResult -
embeddingDenseByteVectorrequired -
text_embedding_bitsDenseEmbeddingByteResult -
embeddingDenseByteVectorrequired -
text_embeddingDenseEmbeddingResult -
embeddingDenseVectorrequired