Class RerankRequest.Builder

All Implemented Interfaces:
WithJson<RerankRequest.Builder>, ObjectBuilder<RerankRequest>
Enclosing class:
RerankRequest

public static class RerankRequest.Builder extends RequestBase.AbstractBuilder<RerankRequest.Builder> implements ObjectBuilder<RerankRequest>
Builder for RerankRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • inferenceId

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

      API name: inference_id

    • input

      public final RerankRequest.Builder input(List<String> list)
      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

      Adds all elements of list to input.

    • input

      public final RerankRequest.Builder input(String value, String... values)
      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

      Adds one or more values to input.

    • query

      public final RerankRequest.Builder query(String value)
      Required - Query input.

      API name: query

    • taskSettings

      public final RerankRequest.Builder taskSettings(@Nullable JsonData value)
      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

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

      API name: timeout

    • timeout

      The amount of time to wait for the inference request to complete.

      API name: timeout

    • self

      protected RerankRequest.Builder self()
      Specified by:
      self in class RequestBase.AbstractBuilder<RerankRequest.Builder>
    • build

      public RerankRequest build()
      Builds a RerankRequest.
      Specified by:
      build in interface ObjectBuilder<RerankRequest>
      Throws:
      NullPointerException - if some of the required fields are null.