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_embedding
ortext_embedding
task, specify the type of input passed to the model.returnToken
(Boolean value) For asparse_embedding
task, it affects whether the token name will be returned in the response.protected AlibabaCloudTaskSettings.Builder
self()
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
-
inputType
For asparse_embedding
ortext_embedding
task, specify the type of input passed to the model. Valid values are:ingest
for storing document embeddings in a vector database.search
for storing embeddings of search queries run against a vector database to find relevant documents.
API name:
input_type
-
returnToken
For asparse_embedding
task, 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:
self
in classWithJsonObjectBuilderBase<AlibabaCloudTaskSettings.Builder>
-
build
Builds aAlibabaCloudTaskSettings
.- Specified by:
build
in interfaceObjectBuilder<AlibabaCloudTaskSettings>
- Throws:
NullPointerException
- if some of the required fields are null.
-