Class AzureAiStudioTaskSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.AzureAiStudioTaskSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class AzureAiStudioTaskSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AzureAiStudioTaskSettings>
Json deserializer forAzureAiStudioTaskSettings
-
Method Summary
Modifier and TypeMethodDescriptionfinal Float
doSample()
For acompletion
task, instruct the inference process to perform sampling.final Integer
For acompletion
task, provide a hint for the maximum number of output tokens to be generated.static AzureAiStudioTaskSettings
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupAzureAiStudioTaskSettingsDeserializer
(ObjectDeserializer<AzureAiStudioTaskSettings.Builder> op) final Float
For acompletion
task, control the apparent creativity of generated completions with a sampling temperature.final Float
topP()
For acompletion
task, make the model consider the results of the tokens with nucleus sampling probability.toString()
final String
user()
For atext_embedding
task, specify the user issuing the request.
-
Field Details
-
_DESERIALIZER
Json deserializer forAzureAiStudioTaskSettings
-
-
Method Details
-
of
public static AzureAiStudioTaskSettings of(Function<AzureAiStudioTaskSettings.Builder, ObjectBuilder<AzureAiStudioTaskSettings>> fn) -
doSample
For acompletion
task, instruct the inference process to perform sampling. It has no effect unlesstemperature
ortop_p
is specified.API name:
do_sample
-
maxNewTokens
For acompletion
task, provide a hint for the maximum number of output tokens to be generated.API name:
max_new_tokens
-
temperature
For acompletion
task, control the apparent creativity of generated completions with a sampling temperature. It must be a number in the range of 0.0 to 2.0. It should not be used iftop_p
is specified.API name:
temperature
-
topP
For acompletion
task, make the model consider the results of the tokens with nucleus sampling probability. It is an alternative value totemperature
and must be a number in the range of 0.0 to 2.0. It should not be used iftemperature
is specified.API name:
top_p
-
user
For atext_embedding
task, specify the user issuing the request. This information can be used for abuse detection.API name:
user
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAzureAiStudioTaskSettingsDeserializer
protected static void setupAzureAiStudioTaskSettingsDeserializer(ObjectDeserializer<AzureAiStudioTaskSettings.Builder> op)
-