Class NvidiaTaskSettings

java.lang.Object
co.elastic.clients.elasticsearch.inference.NvidiaTaskSettings
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class NvidiaTaskSettings extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • inputType

      @Nullable public final NvidiaInputType inputType()
      For a text_embedding task, type of input sent to the Nvidia endpoint. Valid values are:
      • ingest: Mapped to Nvidia's passage value in request. Used when generating embeddings during indexing.
      • search: Mapped to Nvidia's query value in request. Used when generating embeddings during querying.

      IMPORTANT: For Nvidia endpoints, if the input_type field is not specified, it defaults to query.

      API name: input_type

    • truncate

      @Nullable public final CohereTruncateType truncate()
      For a text_embedding task, 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

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • rebuild

      public NvidiaTaskSettings.Builder rebuild()
      Returns:
      New NvidiaTaskSettings.Builder initialized with field values of this instance
    • setupNvidiaTaskSettingsDeserializer

      protected static void setupNvidiaTaskSettingsDeserializer(ObjectDeserializer<NvidiaTaskSettings.Builder> op)