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 -
Optional task settings
Response
application/json
-
sparse_embeddingSparseEmbeddingResultrequired -
is_truncatedbooleanrequired -
Indicates if the text input was truncated in the request sent to the service
-
embeddingSparseVectorrequired