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 SummaryConstructors
- 
Method SummaryModifier 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.returnDocuments(Boolean value) For areranktask, return doc text within the results.protected AzureAiStudioTaskSettings.Builderself()temperature(Float value) For acompletiontask, control the apparent creativity of generated completions with a sampling temperature.For areranktask, the number of most relevant documents to return.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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
doSampleFor acompletiontask, instruct the inference process to perform sampling. It has no effect unlesstemperatureortop_pis specified.API name: do_sample
- 
maxNewTokensFor acompletiontask, provide a hint for the maximum number of output tokens to be generated.API name: max_new_tokens
- 
temperatureFor 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
- 
topPFor 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
- 
userFor atext_embeddingtask, specify the user issuing the request. This information can be used for abuse detection.API name: user
- 
returnDocumentsFor areranktask, return doc text within the results.API name: return_documents
- 
topNFor areranktask, the number of most relevant documents to return. It defaults to the number of the documents.API name: top_n
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<AzureAiStudioTaskSettings.Builder>
 
- 
buildBuilds aAzureAiStudioTaskSettings.- Specified by:
- buildin interface- ObjectBuilder<AzureAiStudioTaskSettings>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-