Module org.elasticsearch.server
Package org.elasticsearch.inference
Interface RerankingInferenceService
public interface RerankingInferenceService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default window size for small reranking models (512 input tokens). -
Method Summary
Modifier and TypeMethodDescriptionintrerankerWindowSize(String modelId) The reranking model's max window or an approximation of measured in the number of words.
-
Field Details
-
CONSERVATIVE_DEFAULT_WINDOW_SIZE
static final int CONSERVATIVE_DEFAULT_WINDOW_SIZEThe default window size for small reranking models (512 input tokens).- See Also:
-
-
Method Details
-
rerankerWindowSize
The reranking model's max window or an approximation of measured in the number of words.- Parameters:
modelId- The model ID- Returns:
- Window size in words
-