Class AzureAiStudioTaskSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AzureAiStudioTaskSettings.Builder>
co.elastic.clients.elasticsearch.inference.AzureAiStudioTaskSettings.Builder
- All Implemented Interfaces:
WithJson<AzureAiStudioTaskSettings.Builder>
,ObjectBuilder<AzureAiStudioTaskSettings>
- Enclosing class:
- AzureAiStudioTaskSettings
public static class AzureAiStudioTaskSettings.Builder
extends WithJsonObjectBuilderBase<AzureAiStudioTaskSettings.Builder>
implements ObjectBuilder<AzureAiStudioTaskSettings>
Builder for
AzureAiStudioTaskSettings
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aAzureAiStudioTaskSettings
.For acompletion
task, instruct the inference process to perform sampling.maxNewTokens
(Integer value) For acompletion
task, provide a hint for the maximum number of output tokens to be generated.protected AzureAiStudioTaskSettings.Builder
self()
temperature
(Float value) For acompletion
task, control the apparent creativity of generated completions with a sampling temperature.For acompletion
task, make the model consider the results of the tokens with nucleus sampling probability.For atext_embedding
task, specify the user issuing the request.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<AzureAiStudioTaskSettings.Builder>
-
build
Builds aAzureAiStudioTaskSettings
.- Specified by:
build
in interfaceObjectBuilder<AzureAiStudioTaskSettings>
- Throws:
NullPointerException
- if some of the required fields are null.
-