Class RerankRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.inference.RerankRequest
- All Implemented Interfaces:
- JsonpSerializable
Perform reranking inference on the service
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RerankRequest>Json deserializer forRerankRequeststatic final Endpoint<RerankRequest,RerankResponse, ErrorResponse> Endpoint "inference.rerank".
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringRequired - The unique identifier for the inference endpoint.input()Required - The text on which you want to perform the inference task.static RerankRequestfinal Stringquery()Required - Query input.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal JsonDataTask settings for the individual inference request.final Timetimeout()The amount of time to wait for the inference request to complete.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forRerankRequest
- 
_ENDPOINTEndpoint "inference.rerank".
 
- 
- 
Method Details- 
of
- 
inferenceIdRequired - The unique identifier for the inference endpoint.API name: inference_id
- 
inputRequired - 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: input
- 
queryRequired - Query input.API name: query
- 
taskSettingsTask 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
- 
timeoutThe amount of time to wait for the inference request to complete.API name: timeout
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupRerankRequestDeserializer
 
-