Class AlibabaCloudTaskSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AlibabaCloudTaskSettings.Builder>
co.elastic.clients.elasticsearch.inference.AlibabaCloudTaskSettings.Builder
- All Implemented Interfaces:
WithJson<AlibabaCloudTaskSettings.Builder>,ObjectBuilder<AlibabaCloudTaskSettings>
- Enclosing class:
- AlibabaCloudTaskSettings
public static class AlibabaCloudTaskSettings.Builder
extends WithJsonObjectBuilderBase<AlibabaCloudTaskSettings.Builder>
implements ObjectBuilder<AlibabaCloudTaskSettings>
Builder for
AlibabaCloudTaskSettings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAlibabaCloudTaskSettings.For asparse_embeddingortext_embeddingtask, specify the type of input passed to the model.returnToken(Boolean value) For asparse_embeddingtask, it affects whether the token name will be returned in the response.protected AlibabaCloudTaskSettings.Builderself()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
-
inputType
For asparse_embeddingortext_embeddingtask, specify the type of input passed to the model. Valid values are:ingestfor storing document embeddings in a vector database.searchfor storing embeddings of search queries run against a vector database to find relevant documents.
API name:
input_type -
returnToken
For asparse_embeddingtask, it affects whether the token name will be returned in the response. It defaults tofalse, which means only the token ID will be returned in the response.API name:
return_token -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AlibabaCloudTaskSettings.Builder>
-
build
Builds aAlibabaCloudTaskSettings.- Specified by:
buildin interfaceObjectBuilder<AlibabaCloudTaskSettings>- Throws:
NullPointerException- if some of the required fields are null.
-