Class RerankRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.inference.RerankRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class RerankRequest extends RequestBase implements JsonpSerializable
Perform rereanking inference on the service
See Also:
  • Field Details

  • Method Details

    • of

    • inferenceId

      public final String inferenceId()
      Required - The unique identifier for the inference endpoint.

      API name: inference_id

    • input

      public final List<String> input()
      Required - The text on which you want to perform the inference task. It can be a single string or an array.

      info Inference endpoints for the completion task type currently only support a single string as input.

      API name: input

    • query

      public final String query()
      Required - Query input.

      API name: query

    • taskSettings

      @Nullable public final JsonData taskSettings()
      Task settings for the individual inference request. These settings are specific to the task type you specified and override the task settings specified when initializing the service.

      API name: task_settings

    • timeout

      @Nullable public final Time timeout()
      The amount of time to wait for the inference request to complete.

      API name: timeout

    • 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)
    • setupRerankRequestDeserializer

      protected static void setupRerankRequestDeserializer(ObjectDeserializer<RerankRequest.Builder> op)