Judging unjudged results: judy judge

Semantic search surfaces documents nobody judged, and unjudged documents count as not relevant. judy judge has an LLM label the unjudged documents a target returns, so scores stop depending on which documents happened to be judged.

The judge sees the query, the optional intent, and each document's title and text. It never sees the search request, the scores or the ranks. That is deliberate. The question is "is this document relevant to this query", and an answer that knew how the engine ranked it could be flattered by it. Contrast judy diagnose and judy suggest, which see the request because their question is about how the engine read the query. The overview compares them side by side.

Text
$ judy judge wands.judgements.yaml --target hybrid --dry-run
ran 480 queries against hybrid in 15.8s
557 documents need a label, which takes up to 179 calls to .anthropic-claude-4.5-haiku-chat_completion. Nothing was sent.

--dry-run runs the target, counts the unjudged documents in each query's top k, and says how many model calls that is. Nothing is sent. Then run it for real, with a cap:

Shell
judy judge wands.judgements.yaml --target hybrid --max-calls 200

--max-calls (default 200) stops spending at that many calls. Documents are graded in batches (judge.batch_size). When the cap is reached, judy says how many queries were left unjudged and exits 0. Stopping at a cap is the run doing what it was told. Run it again to continue; labelled documents are not asked about twice.

A real run on WANDS with the Elastic Inference Service, capped at 60 calls (the dry run above says 179 would label everything):

Text
$ judy judge wands.judgements.yaml --target hybrid --max-calls 60
ran 480 queries against hybrid in 15.7s
labelled 178 of 557 documents with .anthropic-claude-4.5-haiku-chat_completion (v1); wrote wands.llm.yaml
Review them with 'judy review'; until approved they count only with --labels all, and a human rating always wins.

Scoring again shows both numbers side by side, with the human-only value in brackets:

Text
$ judy run wands.judgements.yaml --target hybrid
set wands  target hybrid  labels human+llm
  ndcg@10    0.666   (human labels only: 0.661)
  judged@10  0.923   (human labels only: 0.886)

Coverage went from 88.6% to 92.3% of the top ten, and the score moved up by 0.005. The model found a few good documents that the search had been blamed for missing. --labels human reproduces the old numbers exactly.

Labels are written to {set}.llm.yaml next to the set, as a cache keyed by query and document, with the model that wrote them. They are never written into your judgement set. A document that already has a label is not asked about again.

By default scores count LLM labels where no human rating exists (--labels all). --labels human ignores them, so you can always see both numbers.

Shell
judy review wands.judgements.yaml

judy review shows each LLM label and lets you approve, reject or skip it. An approved label counts as a human rating; a rejected one is ignored and not asked again.

The judge uses the model in the judge: section of judy.yaml. Choose the Elastic Inference Service on your cluster (no extra key), Anthropic, or any OpenAI-compatible endpoint. --provider and --model override it for one run. See Providers.

No judgements yet? judy synthesize has a model write queries for your own documents, so there is something to judge against.