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.

Mermaid diagram

The metrics page shows how each number comes from the results and the grades.

  1. judy run runs the set against a target and writes a results file.
  2. judy compare pairs two results files and says whether the difference is real.
  3. When a score surprises you, judy diagnose and judy suggest ask an LLM why. judy judge rates 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.