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 StringFor asparse_embeddingortext_embeddingtask, specify the type of input passed to the model.static AlibabaCloudTaskSettingsfinal BooleanFor asparse_embeddingtask, it affects whether the token name will be returned in the response.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAlibabaCloudTaskSettings
-
-
Method Details
-
of
public static AlibabaCloudTaskSettings of(Function<AlibabaCloudTaskSettings.Builder, ObjectBuilder<AlibabaCloudTaskSettings>> fn) -
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAlibabaCloudTaskSettingsDeserializer
protected static void setupAlibabaCloudTaskSettingsDeserializer(ObjectDeserializer<AlibabaCloudTaskSettings.Builder> op)
-