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 acompletiontask, instruct the inference process to perform sampling.maxNewTokens(Integer value) For acompletiontask, provide a hint for the maximum number of output tokens to be generated.protected AzureAiStudioTaskSettings.Builderself()temperature(Float value) For acompletiontask, control the apparent creativity of generated completions with a sampling temperature.For acompletiontask, make the model consider the results of the tokens with nucleus sampling probability.For atext_embeddingtask, specify the user issuing the request.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
doSample
For acompletiontask, instruct the inference process to perform sampling. It has no effect unlesstemperatureortop_pis specified.API name:
do_sample -
maxNewTokens
For acompletiontask, provide a hint for the maximum number of output tokens to be generated.API name:
max_new_tokens -
temperature
For acompletiontask, 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_pis specified.API name:
temperature -
topP
For acompletiontask, make the model consider the results of the tokens with nucleus sampling probability. It is an alternative value totemperatureand must be a number in the range of 0.0 to 2.0. It should not be used iftemperatureis specified.API name:
top_p -
user
For atext_embeddingtask, specify the user issuing the request. This information can be used for abuse detection.API name:
user -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AzureAiStudioTaskSettings.Builder>
-
build
Builds aAzureAiStudioTaskSettings.- Specified by:
buildin interfaceObjectBuilder<AzureAiStudioTaskSettings>- Throws:
NullPointerException- if some of the required fields are null.
-