Perform sparse embedding inference on the service
- POST /_inference/sparse_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.
-
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
-
sparse_embeddingSparseEmbeddingResultrequired -
is_truncatedbooleanrequired -
Indicates if the text input was truncated in the request sent to the service
-
embeddingSparseVectorrequired