Class AlibabaCloudTaskSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.AlibabaCloudTaskSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class AlibabaCloudTaskSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AlibabaCloudTaskSettings>
Json deserializer forAlibabaCloudTaskSettings
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
For asparse_embedding
ortext_embedding
task, specify the type of input passed to the model.static AlibabaCloudTaskSettings
final Boolean
For asparse_embedding
task, it affects whether the token name will be returned in the response.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAlibabaCloudTaskSettings
-
-
Method Details
-
of
public static AlibabaCloudTaskSettings of(Function<AlibabaCloudTaskSettings.Builder, ObjectBuilder<AlibabaCloudTaskSettings>> fn) -
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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAlibabaCloudTaskSettingsDeserializer
protected static void setupAlibabaCloudTaskSettingsDeserializer(ObjectDeserializer<AlibabaCloudTaskSettings.Builder> op)
-