METHOD / VERSION 1
Make the denominator visible.
Replay evaluates supplied rankings. It does not retrieve documents, run a reranker or assess whether your relevance judgments are correct. All queries must refer to the declared corpus revision; A and B should use comparable retrieval conditions.
Precision & recall
Precision@k = judged relevant hits in the first k positions ÷ k
Recall@k = relevant hits in the first k positions ÷ all declared relevant IDs
Missing ranked slots count as no hit. If k = 4 and a list has only one relevant result, Precision@4 is 1/4. A document with no judgment is different from a missing slot: its relevance is unknown.
Explicitly binary nDCG
gain = 1 for relevant, 0 for not relevant
DCG@k = Σ gain(rank) / log₂(rank + 1), ranks 1…k
IDCG@k = Σ 1 / log₂(rank + 1), ranks 1…min(k, total relevant)
binary nDCG@k = DCG@k / IDCG@k
Only binary judgments are accepted. The first rank has discount 1, the second approximately 0.63093. An ideal ranking places every available relevant document first. We do not support graded relevance or claim equivalence to tools with another gain or discount convention.
A worked fictional fixture
Run A is [a, b, c], run B is [b, d, a]. The complete relevant set is {b, d}; a and c are explicitly not relevant. At k = 2, A has one hit: Precision = 0.5 and Recall = 0.5. Its DCG is 0.6309297536; ideal DCG is 1.6309297536; binary nDCG is approximately 0.3868528072. B has two relevant hits and all three metrics equal 1. Delta is always B − A; positive means B is numerically higher.
Unknown and N/A
A missing judgment remains unknown. Any unknown in the top k withholds Precision, Recall and nDCG for that run. Recall and nDCG also need a declared complete relevant set and at least one relevant ID. A completeness assertion does not fill omitted judgments with zero. Precision can still be available for an incomplete relevant set if every returned top-k ID is judged. With no relevant IDs, Recall and nDCG are N/A because their denominator is zero; Precision may be zero.
This strict Precision policy refines the initial plan: unknown results are never quietly counted as irrelevant. It intentionally withholds an estimate instead of reporting a partial precision or bounds.
Macro without hidden exclusions
Macro is the equal-weight mean across every query. If any value is unavailable, the macro for that metric is unavailable; queries are never silently dropped. Macro A and B can each be available independently. A delta needs both. Rounding is display-only, to four decimals. The calculation report retains full numeric precision. No statistical significance, generalization or model-quality claim is made from a small query set.
Cutoff sensitivity, not a new metric
The cutoff chart recomputes the existing three metrics for the selected applied query at every integer k from 1 to the longer ranking length or current cutoff, whichever is larger (maximum 200). It does not average queries. The all-query ledger retains its strict macro policy. Editing a draft does not change the chart until Apply succeeds.
Choose Precision, Recall or binary nDCG to inspect how the supplied rankings change with k. Run A uses solid lines and circles; B uses dashed lines and squares. Unavailable values leave gaps: they are neither zeros nor connected through. The exact cutoff table includes all three metrics at full JavaScript numeric precision, judged/returned counts, missing slots, and specific reasons for every N/A. Missing slots reduce precision through the k denominator; unknown returned IDs withhold it.
Exploring cutoffs can help plan an evaluation, but picking the best-looking cutoff after viewing results is not independent confirmation. Declare final evaluation cutoffs beforehand and use held-out queries where appropriate. The chart does not assess answer quality or establish statistical significance.
Limits & privacy
Import is capped at 1 MiB, 100 queries, 200 ranked IDs per run per query and 1,000 judgment entries per query. IDs are case-sensitive, 1–80 characters without whitespace; run/corpus labels have 160-character limits. These are input bounds, not device performance guarantees. Duplicate query/ranked IDs are rejected. Duplicate JSON object keys are also rejected, including escaped spellings of the same key. Use one judgment per ID.
Inputs stay in this tab’s memory. No model calls, accounts or saved inputs. Optional analytics requires consent and excludes your dataset. Inputs are not put in URLs or persistent storage. Export is explicit and includes your applied rankings and judgments, so inspect a report before sharing. Clipboard and browser download permission can vary. The interface reports a download request; confirm the file yourself.
Checked 2026-10-02. Metric basis; our binary specialization and missing-judgment policy are declared here. Original explanations and fictional fixtures; no textbook dataset, chart or example reproduced.