Class RerankRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<RerankRequest.Builder>
co.elastic.clients.elasticsearch.inference.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRerankRequest.final RerankRequest.BuilderinferenceId(String value) Required - The unique identifier for the inference endpoint.final RerankRequest.BuilderRequired - The text on which you want to perform the inference task.final RerankRequest.BuilderRequired - The text on which you want to perform the inference task.final RerankRequest.BuilderRequired - Query input.protected RerankRequest.Builderself()final RerankRequest.BuildertaskSettings(JsonData value) Task settings for the individual inference request.final RerankRequest.BuilderThe amount of time to wait for the inference request to complete.final RerankRequest.BuilderThe amount of time to wait for the inference request to complete.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inferenceId
Required - The unique identifier for the inference endpoint.API name:
inference_id -
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
completiontask type currently only support a single string as input.API name:
inputAdds all elements of
listtoinput. -
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
completiontask type currently only support a single string as input.API name:
inputAdds one or more values to
input. -
query
Required - Query input.API name:
query -
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
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
- Specified by:
selfin classRequestBase.AbstractBuilder<RerankRequest.Builder>
-
build
Builds aRerankRequest.- Specified by:
buildin interfaceObjectBuilder<RerankRequest>- Throws:
NullPointerException- if some of the required fields are null.
-