﻿---
title: Glossary
description: Each term has one meaning in judy. Other pages link here the first time they use a term. 
url: https://docs-v3-preview.elastic.dev/concepts/glossary
---

# Glossary
Each term has one meaning in judy. Other pages link here the first time they use a term.

| Term                       | Meaning                                                                                                                                                                                                                       |
|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Query**                  | The text a searcher types.                                                                                                                                                                                                    |
| **Result**                 | One document that a search returns for a query.                                                                                                                                                                               |
| **Grade**                  | A number from 0 (not relevant) to 3 (perfect) that says how well a result answers a query.                                                                                                                                    |
| **Judgement set**          | A file of queries, and a grade for each result a person rated. See [judgement sets](https://docs-v3-preview.elastic.dev/concepts/judgements).                                                                                 |
| **Judgement**              | One grade for one result of one query.                                                                                                                                                                                        |
| **Target**                 | Whatever answers the queries: a Query DSL template, an ES|QL query, your own query builder, an HTTP API or a run file. See [targets](https://docs-v3-preview.elastic.dev/concepts/targets).                                   |
| **Score**                  | A [metric](https://docs-v3-preview.elastic.dev/concepts/metrics) computed from a target's results and the grades.                                                                                                             |
| **Baseline and candidate** | The two versions you compare. The baseline is what you run today. The candidate is the change.                                                                                                                                |
| **Paired comparison**      | A comparison that scores each query on both versions, so a difference belongs to the change and not to the queries.                                                                                                           |
| **p-value**                | The chance of seeing a difference this large if the change did nothing. A value under 0.05 means the difference is probably real. judy computes it with a [permutation test](https://en.wikipedia.org/wiki/Permutation_test). |
| **LLM judge**              | A language model that grades results nobody rated. It sees the query and the document, never the search request. See [the LLM judge](https://docs-v3-preview.elastic.dev/llm/judging).                                        |
| **Gate**                   | A minimum score in a set. A run that falls below it exits with code 1.                                                                                                                                                        |
| **Mode**                   | How a search matched: *lexical* (the words), *semantic* (the meaning) or *hybrid* (both).                                                                                                                                     |
| **Router**                 | The logic that picks a mode for each query. See [modes](https://docs-v3-preview.elastic.dev/concepts/modes).                                                                                                                  |
| **Oracle**                 | The score you get if every query uses its best mode. No router can beat it.                                                                                                                                                   |
| **Holdout**                | The queries that `judy suggest` never shows to the model. They test whether an idea works beyond the examples it saw.                                                                                                         |