Reading judy's output
judy prints numbers and facts first, exactly as a tool for practitioners should. After them, judy run, judy compare and judy modes add a short in plain words block. It says what the numbers mean,
so you can act on a result without knowing what nDCG is. The block is added after the output, never instead of it, and --no-explain leaves it out.
$ judy run fruit.judgements.yaml --target baseline
…
in plain words
For 33% of queries the first result is relevant (success@1), and 100% have a relevant result in
the first three (success@3).
ndcg@5 is 0.638: the top 5 earns 64% of what a perfect ordering of the judged documents would (1.0
is perfect). Use it to compare against a baseline: what is achievable depends on your data.
mrr@5 is 0.667: the first relevant result sits at roughly rank 1.5.
recall@5 is 0.833: the top 5 holds 83% of all the documents judged relevant.
47% of the top 5 results have a judgement (poorly covered). Results nobody judged count as not
relevant, so scores are a floor, and the gap is large enough to matter: 'judy judge' has an LLM
label the missing ones.
What it says, and when:
| It says | When |
|---|---|
| how often the first result, and one of the first three, is relevant | always |
| what ndcg means as a share of a perfect ordering | always: a score on its own says little, so it points you to a baseline |
| roughly which rank the first relevant result sits at | mrr is present |
| that recall is low because many documents answer a query, not because ranking is bad | recall is under 0.3 |
| how much of what was returned has a judgement: well covered (90% or more), mostly (70%), poorly | judged@k is present; below 80% it suggests judy judge |
| how many queries returned nothing relevant | there are misses |
which group of queries is weakest, such as words:3+ |
a group family (words, mode, style) differs by 0.1 ndcg or more |
| whether the gates passed | the set has gates |
| that failed searches are left out of the numbers | any search failed |
The bands (90%, 70%, 80%, 0.3, 0.1) are rules of thumb, and the text says so by using words like "poorly covered", not verdicts. Everything else is arithmetic on the numbers above it.
$ judy compare fruit.baseline.results.yaml fruit.candidate.results.yaml
…
in plain words
No reliable difference: ndcg@5 moved by +0.362 on average (57% more than the baseline's 0.638),
but that is within what chance produces on these queries (p = 0.25). With only 3 queries a real
difference could be hidden: add judged queries to be sure.
3 of 3 queries improved (100%), 0 got worse (0%) and 0 did not change.
A comparison gets the clearest reading, because its question has an answer. The candidate is better, worse, or shows
no reliable difference. The p-value decides, at 5%. Then it says how big the change is relative to the baseline and how many
queries improved or got worse. When the mean rose but 10% or more of the queries got worse, the block says so and points at most regressed. A better
average can hide queries your users care about.
judy modes names the best mode on its own and the oracle, which is the ceiling for any router. It also says whether your
router beats the best mode. It defines a router where it first uses the word. See modes.
The same block is in --format md, so it appears in the GitHub step summary and in pull request comments. --format json
never has it. --no-explain removes it everywhere.