Class SparseEmbeddingRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.inference.SparseEmbeddingRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class SparseEmbeddingRequest
extends RequestBase
implements JsonpSerializable
Perform sparse embedding inference on the service
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SparseEmbeddingRequest>Json deserializer forSparseEmbeddingRequeststatic final Endpoint<SparseEmbeddingRequest,SparseEmbeddingResponse, ErrorResponse> Endpoint "inference.sparse_embedding". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - The inference Idinput()Required - Inference input.static SparseEmbeddingRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal JsonDataOptional task settingsfinal Timetimeout()Specifies the amount of time to wait for the inference request to complete.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forSparseEmbeddingRequest -
_ENDPOINT
public static final Endpoint<SparseEmbeddingRequest,SparseEmbeddingResponse, _ENDPOINTErrorResponse> Endpoint "inference.sparse_embedding".
-
-
Method Details
-
of
public static SparseEmbeddingRequest of(Function<SparseEmbeddingRequest.Builder, ObjectBuilder<SparseEmbeddingRequest>> fn) -
inferenceId
Required - The inference IdAPI name:
inference_id -
input
Required - Inference input. Either a string or an array of strings.API name:
input -
taskSettings
Optional task settingsAPI name:
task_settings -
timeout
Specifies the amount of time to wait for the inference request to complete.API name:
timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupSparseEmbeddingRequestDeserializer
protected static void setupSparseEmbeddingRequestDeserializer(ObjectDeserializer<SparseEmbeddingRequest.Builder> op)
-