Class PutElserRequest
- All Implemented Interfaces:
JsonpSerializable
Create an inference endpoint to perform an inference task with the
elser service. You can also deploy ELSER by using the
Elasticsearch inference integration.
info Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings.
The API request will automatically download and deploy the ELSER model if it isn't already downloaded.
info You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value.
After creating the endpoint, wait for the model deployment to complete before
using it. To verify the deployment status, use the get trained model
statistics API. Look for
"state": "fully_allocated" in the response
and ensure that the "allocation_count" matches the
"target_allocation_count". Avoid creating multiple
endpoints for the same model unless required, as each endpoint consumes
significant resources.
- 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<PutElserRequest>Deprecated.Json deserializer forPutElserRequeststatic final Endpoint<PutElserRequest,PutElserResponse, ErrorResponse> Deprecated.Endpoint "inference.put_elser". -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The chunking configuration object.final StringDeprecated.Required - The unique identifier of the inference endpoint.static PutElserRequestDeprecated.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Deprecated.Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Deprecated.final ElserServiceTypeservice()Deprecated.Required - The type of service supported for the specified task type.final ElserServiceSettingsDeprecated.Required - Settings used to install the inference model.protected static voidDeprecated.final ElserTaskTypetaskType()Deprecated.Required - The type of the inference task that the model will perform.final Timetimeout()Deprecated.Specifies the amount of time to wait for the inference endpoint to be created.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Deprecated.Json deserializer forPutElserRequest -
_ENDPOINT
Deprecated.Endpoint "inference.put_elser".
-
-
Method Details
-
of
public static PutElserRequest of(Function<PutElserRequest.Builder, ObjectBuilder<PutElserRequest>> fn) Deprecated. -
chunkingSettings
Deprecated.The chunking configuration object. Note that for ELSER endpoints, the max_chunk_size may not exceed300.API name:
chunking_settings -
elserInferenceId
Deprecated.Required - The unique identifier of the inference endpoint.API name:
elser_inference_id -
service
Deprecated.Required - The type of service supported for the specified task type. In this case,elser.API name:
service -
serviceSettings
Deprecated.Required - Settings used to install the inference model. These settings are specific to theelserservice.API name:
service_settings -
taskType
Deprecated.Required - The type of the inference task that the model will perform.API name:
task_type -
timeout
Deprecated.Specifies the amount of time to wait for the inference endpoint to be created.API name:
timeout -
serialize
Deprecated.Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
Deprecated. -
setupPutElserRequestDeserializer
protected static void setupPutElserRequestDeserializer(ObjectDeserializer<PutElserRequest.Builder> op) Deprecated.
-