# Evals (Evaluations)

AI Glossary · Training, Fine-Tuning & Evals
Canonical URL: https://aisat.uk/glossary/evals
Author: Lucy Gilmore, Assistant General Counsel, Product, Privacy & AI at Sprinklr | Practical Privacy, Product & AI Governance & Defensible Risk Decisions (https://www.linkedin.com/in/lucy-gilmore/)
Breadcrumb: [Glossary](https://aisat.uk/glossary) > [Training & Evals](https://aisat.uk/glossary?category=training) > Evals (Evaluations)

## TL;DR

> **Evals (evaluations)** are systematic tests used to measure the accuracy, faithfulness, safety, latency, and cost of an AI application across representative datasets. Acting as unit and integration tests for non-deterministic systems, evals let teams change prompts, models, or retrieval pipelines without shipping silent regressions.

## How Evals (Evaluations) works in practice

In traditional software, a test passes or fails with binary certainty. In AI applications, changing two words in a system prompt, swapping an embedding model, or upgrading to a new model checkpoint can fix one edge case while quietly breaking twenty others. An evaluation harness replaces guesswork ('vibe checks') with repeatable scoring across a golden dataset of real production traces and adversarial edge cases.

A mature eval pipeline uses three layers of graders. First, fast deterministic code assertions check hard constraints: valid JSON Schema conformance, absence of forbidden regex patterns, citation ID existence, and latency thresholds. Second, LLM-as-a-judge graders use a rubric-prompted model to score subjective dimensions such as answer faithfulness to retrieved RAG chunks, completeness, and tone, calibrated against human annotations. Third, online production monitoring samples live traffic and tracks implicit user feedback such as thumbs-down clicks, prompt re-tries, and copy-paste rates.

For instance, a London fintech running an automated mortgage broker assistant gates every pull request in GitHub Actions against 350 historical broker queries; if context faithfulness drops below 97 per cent or p95 latency exceeds three seconds, the build fails automatically.

## Why it matters and trade-offs

Without a bespoke eval suite, AI engineering teams quickly become paralysed: they are afraid to edit system prompts, unable to tell whether a cheaper small language model could replace a frontier API, and blind to retrieval drift when document corpora change. Public leaderboard benchmarks (such as MMLU or SWE-bench) only tell you how a raw model performs on academic tasks, not whether your specific RAG pipeline misreads UK VAT exemptions.

The main trap is building overly complex, uncalibrated LLM-as-a-judge rubrics before looking at real failure traces. Teams should start by manually inspecting 100 real input-output pairs, categorising the exact failure modes they observe, and writing simple binary pass/fail evaluators aligned with those failures.

## Related AI concepts

- [Retrieval-Augmented Generation (RAG)](https://aisat.uk/glossary/retrieval-augmented-generation): Retrieval-Augmented Generation (RAG) is an AI architecture that retrieves relevant passages from external documents or databases at query time and injects them into a language model's context window to generate cited, grounded answers.
- [Hallucination](https://aisat.uk/glossary/hallucination): Hallucination is a failure mode in which a generative AI model outputs confident, fluent statements that are factually false, fabricated or unsupported by source documents because it predicts statistically plausible tokens rather than verifying truth.
- [Guardrails](https://aisat.uk/glossary/guardrails): Guardrails are programmable validation layers placed on the input and output paths of an AI application to detect prompt injections, redact personally identifiable information, verify citations and block policy-violating completions in real time.
- [Fine-Tuning](https://aisat.uk/glossary/fine-tuning): Fine-Tuning is the post-training process of updating a pre-trained model's weights on a curated dataset of task-specific input-output examples to lock in domain vocabulary, strict formatting or lower inference cost.
