Learn · GlossaryGlossary Run an eval ↗
Learn · Glossary

LLM evaluation, A to Z

The vocabulary you need to read an eval report without nodding along. Each entry is one paragraph; where the idea shows up somewhere in this site, there is a link to it.

C

7 terms

Calibration

how closely a model’s stated confidence matches how often it is actually right. A well-calibrated model that says it is 90% sure is right about nine times in ten; most models are overconfident, which is why a confident tone on its own tells you nothing.

Chain-of-thought (CoT)

prompting technique where the model is asked to show its reasoning step by step before giving a final answer. Improves accuracy on math, logic, and multi-step tasks. Trade-off: more tokens, higher latency.

Code

scoring

a scoring type for a reply that has to contain a working function rather than a phrase: the signature, the number of arguments and any forbidden constructs are checked, and a stub that never returns fails. The rules come with the question, so a copied coding prompt carries them and a hand-written one cannot ask for this.

Cohen’s Kappa

a measure of how far two judges agree beyond what chance alone would produce. Raw agreement flatters them: if 90% of answers are correct, two judges that always say “correct” agree 90% of the time while measuring nothing at all.

Confidence interval

the range the true accuracy probably sits in, given how few questions were asked. 14 of 15 is 93%, but anywhere from 70% to 99% is consistent with it — the interval is the honest version of the number.

How this site computes it →

Contamination

when the questions you are testing with were already in the model’s training data. A contaminated benchmark measures memorisation rather than ability, and the score goes up while nothing about the model got better.

Cost-per-correct-answer

what one right answer actually costs: the price of running the whole test set divided by the number of answers that passed. A cheaper model that is wrong more often can cost more per correct answer than an expensive one.

E

2 terms

Elo rating

a ranking built from head-to-head comparisons rather than from a fixed test set, borrowed from chess. Each model gains or loses points according to whether it beat an opponent it was expected to beat.

Eval harness

a framework or script that runs a model against a test suite and collects scores. assert(llm) is a browser-based eval harness. Others: OpenAI Evals, EleutherAI lm-evaluation-harness, promptfoo.

Run the harness →

F

2 terms

Faithfulness

whether the model’s answer is supported by the source document it was given. A model can be correct but unfaithful (right answer, wrong reasoning) or faithful but wrong (follows the document, but the document is wrong). Core metric in RAG evaluation.

Few-shot prompting

including 2-5 example input→output pairs in the prompt so the model learns the expected format and behavior. Zero-shot = no examples. One-shot = one example. More shots generally improve consistency but cost tokens.

G

1 term

Golden dataset

a manually curated set of question→expected_answer pairs used as ground truth for evaluation. The quality of your eval is capped by the quality of your golden dataset. Who validates the validator? This is the hardest problem in LLM testing.

Browse the bundled sets →

H

1 term

Hallucination

the model generates information that is fabricated, not grounded in input or reality. Subtypes: phantom import (imports a nonexistent library), fabricated fact (invents a statistic), wrong entity (correct pattern, wrong name). Hallucination ≠ wrong answer: a wrong answer is a mistake, a hallucination is a confident invention.

See CODE-007: phantom delegation →

I

1 term

Inter-model agreement

how often different models give the same answer to the same question. Disagreement marks the questions worth reading by hand; unanimous agreement is not evidence of a right answer, since models share training data and share mistakes with it.

L

1 term

LLM-as-judge

using one LLM to evaluate another LLM’s output. Common pattern: Model A generates, Model B scores on a 1-5 scale. Risk: self-preference bias (a model rates its own family’s output higher). Mitigation: use a different model family as judge, or calibrate with human scores.

M

3 terms

McNemar’s test

a test of whether two models really differ, built only from the questions where they disagreed. Questions both got right, or both got wrong, say nothing about which is better, so counting them only makes the difference look smaller than it is.

Multiple choice

scoring

a scoring type for a reply judged on which option it picked, matched as a letter on word boundaries so that “c” is not read out of “cannot”. The prompt has to list the options for the letter to mean anything.

Mutation testing

deliberately breaking the code to check that the tests notice. A suite that stays green while the thing it covers is broken is not evidence of anything, and this is the only way to find that out.

N

1 term

Non-determinism

the same prompt can produce different answers on different runs (temperature > 0). Consequence: a single eval run is a sample, not a measurement. Reliable evaluation needs multiple runs and variance tracking.

O

1 term

Open-ended evaluation

scoring

scoring a reply when there is no right answer to compare it against: a judge rates it 1–5 on relevance, completeness, accuracy, coherence and helpfulness, and the mean of the five is reported. It is one model’s opinion rather than a measurement, so it is kept out of every pass rate and confidence interval. Also called reference-free evaluation.

Write a prompt with no expected answer →

P

3 terms

Pass rate

the share of questions where the answer matched what was expected. It means as little or as much as the number of questions behind it, which is why it is never reported here without a confidence interval.

How scoring works →

Prompt injection

input written to override the instructions a model was given, the way SQL injection overrides a query. Anything the model reads is input, including a document or a web page it was handed rather than something a user typed.

Prompt regression

testing whether a change to a prompt (system prompt, template, examples) makes outputs better or worse on a fixed dataset. Same idea as software regression testing, applied to prompts.

R

4 terms

RAG evaluation

testing a retrieval-augmented system on both halves of what it does: whether it fetched the right context, and whether the answer actually follows from what it fetched. A correct answer drawn from the wrong source is still a failure. See RAGAS for the metrics usually used.

RAGAS

Retrieval-Augmented Generation Assessment. A framework for evaluating RAG pipelines on four dimensions: faithfulness, answer relevancy, context precision, context recall. Not for evaluating standalone LLMs — specifically for systems that retrieve documents and then generate.

Red teaming

deliberately attacking a model to find where it breaks, rather than checking that it works on the cases you already thought of. Covers safety, refusals, prompt injection and anything else an adversary would try.

Reference-based evaluation

scoring

scoring by comparing the reply to a known correct answer. The verdict is deterministic — the same reply always gets the same score — which is what makes a run reproducible and what open-ended evaluation gives up. Also called deterministic evaluation.

How scoring works →

S

1 term

Short answer

scoring

a scoring type where a short expected phrase is looked for inside the reply, matched on word boundaries so that “c” does not match “cannot”. A whole sentence as the expected answer almost never appears word for word, so keep the key term only.

How scoring works →

T

2 terms

Temperature

controls randomness in token sampling. 0 = greedy (always pick the highest-probability token), 1 = sample from the full distribution. Lower temperature = more deterministic but less creative. For eval, use temperature 0 to minimize non-determinism.

Token efficiency

accuracy weighed against how much the model wrote to get there. Two models on the same pass rate are not equivalent if one of them needs four times the output tokens to say it.

W

1 term

Wilson score interval

the formula used here to put a confidence interval on a small sample. The normal approximation puts the upper bound past 100% at 14 of 15; Wilson stays inside 0–100% and stays honest about how little 15 answers tell you.

Why this one →
Seen enough words?

Run one. Every term above shows up in the report.

Pass rate, confidence interval, judge score: all on one page, from your own key.