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 Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RerankRequest>Json deserializer forRerankRequeststatic final Endpoint<RerankRequest,RerankResponse, ErrorResponse> Endpoint "inference.rerank". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - The unique identifier for the inference endpoint.input()Required - The documents to rank.static RerankRequestfinal Stringquery()Required - Query input.rebuild()final BooleanInclude the document text in the response.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.final IntegertopN()Limit the response to the top N documents.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forRerankRequest -
_ENDPOINT
Endpoint "inference.rerank".
-
-
Method Details
-
of
-
inferenceId
Required - The unique identifier for the inference endpoint.API name:
inference_id -
input
Required - The documents to rank.API name:
input -
query
Required - Query input.API name:
query -
returnDocuments
Include the document text in the response.API name:
return_documents -
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 -
topN
Limit the response to the top N documents.API name:
top_n -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
rebuild
- Returns:
- New
RerankRequest.Builderinitialized with field values of this instance
-
setupRerankRequestDeserializer
-