Concepts
judy has four parts. Every command combines them.
| Part | What it is | File |
|---|---|---|
| Judgement set | Queries, and the grades that say which results answer each | *.judgements.yaml |
| Target | Whatever answers a query: a Query DSL template, ES|QL, a query builder, an HTTP API or a run file | judy.yaml |
| Results | What a target returned for every query, with each query's scores | {set}.{target}.results.yaml |
| Comparison | Two results, paired per query | printed, or --format json |
New terms? See the glossary.
The metrics page shows how each number comes from the results and the grades.
judy runruns the set against a target and writes a results file.judy comparepairs two results files and says whether the difference is real.- When a score surprises you,
judy diagnoseandjudy suggestask an LLM why.judy judgerates the results nobody rated.
A results file holds each query's scores and the ranked ids the target returned. Comparing two files needs no cluster. You can run
a baseline once on the main branch, keep it, and compare every pull request against it. The file
{set}.{target}.requests.jsonl holds the request that judy sent for each query, so you can trace a surprising score to its request.
Only the judgement set decides. A result that the set does not mention counts as not relevant. The judged@k metric
says how many results that is. The LLM judge rates them. Its grades live in {set}.llm.yaml, so you can
always score with or without them (--labels human).
- Judgement sets: the file format, grades, tags and gates.
- Metrics: what each number means, with pictures.
- Targets: the five ways judy can ask a search system.
- Modes: lexical, semantic and hybrid, and routers.