Class RerankScoring

java.lang.Object
org.mockserver.llm.codec.RerankScoring

public final class RerankScoring extends Object
Shared, deterministic rerank scoring used by the rerank codecs (Cohere, Voyage). Producing one result per candidate document, each scored with a reproducible relevance score in (0, 1), sorted descending, then capped to topN. The response shape is identical across both providers: {"results":[{"index":N,"relevance_score":F}, ...]}.