RAG COMPARE

A RAG RETRIEVAL EVALUATION TOOL

Compare retrieval results. See what changed.

Compare two retrieval or reranking runs with Precision@k, Recall@k and binary nDCG. Inspect ranking changes locally using your own relevance judgments.

BROWSER MEMORY ONLY

02 / FOLLOW THE RANK

trail-water

ABaseline retrieval6 IDs
BCandidate rerank6 IDs
SELECTED IDnote-12RelevantA #2 → B #1
Precision@3
A0.3333B0.6667

Δ B − A +0.3333

Recall@3
A0.2500B0.5000

Δ B − A +0.2500

Binary nDCG@3
A0.2961B0.7654

Δ B − A +0.4693

A: 1 hits, 0 unknown / B: 2 hits, 0 unknown in top 3. 4 declared relevant IDs. Relevant set declared complete. Precision denominator always 3, even for shorter lists.

CUTOFF LAB / APPLIED QUERY ONLY

How sensitive is the result to k?

trail-water · k = 1–6 (longest ranking or current cutoff). A is solid with circles; B is dashed with squares. Unknown values leave gaps, never zeros.

Precision by cutoff for trail-waterSelected query only, not macro. Values from zero to one. Only consecutive available values are connected. Use the exact cutoff table for numbers, coverage and N/A reasons.00.51current k = 3k = 1k = 6

● — Run A■ - - Run B · Precision · 0 to 1

Exact cutoff values, judgment coverage & N/A reasons
Applied query trail-water. Full JavaScript numeric values, not rounded. Judged/returned counts are within top k; missing slots are separate and the precision denominator remains k. Relevant set declared complete; 4 declared relevant IDs. All three metrics shown for both runs.
kRunJudged / returnedMissing slotsPrecisionRecallBinary nDCG
1A1 / 10000
1B1 / 1010.251
2A2 / 200.50.250.38685280723454163
2B2 / 2010.51
3A3 / 300.33333333333333330.250.2960819109658652
3B3 / 300.66666666666666660.50.7653606369886217
4A4 / 400.50.50.4144299250118475
4B4 / 400.750.750.8048099750039491
5A5 / 500.40.50.4144299250118475
5B5 / 500.60.750.8048099750039491
6A6 / 600.50.750.553486104522623
6B6 / 600.50.750.8048099750039491

Cutoff exploration is descriptive, not evidence of statistical significance or answer quality. Choose evaluation cutoffs before comparing final results. How to read this chart →

Exact document table · 7 IDs
Every ranked or judged ID. Positive movement = places up in B. Absent is not a rank.
IDJudgmentA rankB rankMovement
Not relevant13-2 places
Relevant21+1 places
Not relevant35-2 places
Relevant42+2 places
Not relevant56-1 places
Relevant64+2 places
RelevantAbsentAbsentNot shared
03 / ALL QUERIESEQUAL-WEIGHT MACRO

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.

Per-query and macro metrics at k = 3. Values rounded to four decimals; computation uses full precision. Δ = B − A.
QueryPrecision@3Recall@3Binary nDCG@3
ABΔABΔABΔ
0.33330.6667+0.33330.25000.5000+0.25000.29610.7654+0.4693
0.66670.6667+0.00001.00001.0000+0.00000.69340.9197+0.2263
N/AN/AN/AN/AN/AN/AN/AN/AN/A
Macro · 3 queriesN/AN/AN/AN/AN/AN/AN/AN/AN/A

Unknown ≠ irrelevant

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. N/A means unavailable, never zero.

Inputs stay in this tab’s memory. No model calls, accounts or saved inputs. Optional analytics requires consent and excludes your dataset. Reopening or reloading starts from the fictional example. Formulas & limitations →

Privacy