Class NvidiaTaskSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.NvidiaTaskSettings
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<NvidiaTaskSettings>Json deserializer forNvidiaTaskSettings -
Method Summary
Modifier and TypeMethodDescriptionfinal NvidiaInputTypeFor atext_embeddingtask, type of input sent to the Nvidia endpoint.static NvidiaTaskSettingsrebuild()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()final CohereTruncateTypetruncate()For atext_embeddingtask, the method used by the Nvidia model to handle inputs longer than the maximum token length.
-
Field Details
-
_DESERIALIZER
Json deserializer forNvidiaTaskSettings
-
-
Method Details
-
of
public static NvidiaTaskSettings of(Function<NvidiaTaskSettings.Builder, ObjectBuilder<NvidiaTaskSettings>> fn) -
inputType
For atext_embeddingtask, type of input sent to the Nvidia endpoint. Valid values are:ingest: Mapped to Nvidia'spassagevalue in request. Used when generating embeddings during indexing.search: Mapped to Nvidia'squeryvalue in request. Used when generating embeddings during querying.
IMPORTANT: For Nvidia endpoints, if the
input_typefield is not specified, it defaults toquery.API name:
input_type -
truncate
For atext_embeddingtask, the method used by the Nvidia model to handle inputs longer than the maximum token length. Valid values are:END: When the input exceeds the maximum input token length, the end of the input is discarded.NONE: When the input exceeds the maximum input token length, an error is returned.START: When the input exceeds the maximum input token length, the start of the input is discarded.
API name:
truncate -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
NvidiaTaskSettings.Builderinitialized with field values of this instance
-
setupNvidiaTaskSettingsDeserializer
protected static void setupNvidiaTaskSettingsDeserializer(ObjectDeserializer<NvidiaTaskSettings.Builder> op)
-