Jev Reranker
Filter and rerank retrieval candidates using typed Jev relevance judgments.
Filter and rerank retrieval candidates using typed Jev relevance judgments.
The reranker sends a query and candidate documents to Jev for Noul judgments. In pointwise mode, each request contains one document with the query and a `relevant` question asking whether that document helps answer the query. The library also supports pairwise and listwise payloads. It validates each requested Noul answer, then returns above-threshold documents in descending score order, capped by `top_k` when set. Listwise ranking splits candidates when estimated request or state budgets are exceeded.
Does this document help answer the query?
The request contains the caller's query and one candidate document as `query` and `document`. No example query or document text is included in the saved source.
Pass the query and candidate documents to the selected pointwise, pairwise, or listwise mode.
Pointwise mode sends one document with a `relevant` Noul question; the client validates one answer for each requested key.
Listwise mode estimates request and state sizes, partitions candidate indices when needed, and retries splitting after a provider context-limit response.
Keep scores at or above the threshold, sort them from highest to lowest, and cap the returned list at `top_k` when configured.
The reranker treats relevance as evidence for answering a query and supports independent document scoring as well as pairwise comparison. Its listwise partitioner responds to context limits by splitting the candidate set, which preserves a larger ranking job when the full request cannot fit.