Class RerankOperator

All Implemented Interfaces:
Closeable, AutoCloseable, Operator, Releasable

public class RerankOperator extends InferenceOperator
RerankOperator is an InferenceOperator that computes relevance scores for rows using a reranking model. It evaluates a row encoder expression for each input row, batches them together, and sends them to the reranking service with a query text to obtain relevance scores using RerankAction.Request.

Dispatch routes to InferenceService.executeRerankInference(org.elasticsearch.xpack.core.inference.action.RerankAction.Request, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.inference.action.InferenceAction.Response>) via an overridden dispatchInferenceRequest.