---
title: "Evals"
url: https://eldan.ai/topics/evals
canonical: https://eldan.ai/topics/evals
locale: en
language: en
updated: 2026-11-23
author: "Eldan Abdrashim"
cite_as: "Eldan Abdrashim. \"Evals.\" Eldan.ai, updated 23 November 2026. https://eldan.ai/topics/evals."
---

# Evals

## Writing

- **[Caching LLM calls without fooling yourself](https://eldan.ai/writing/cache-llm-calls-honestly.md)**: Provider prompt caching and response caching solve different problems. Know which one you use, build cache keys from everything that shapes the answer, let prompt and model changes invalidate them, and keep response caches out of the evals that decide releases.
- **[Write the eval before the prompt](https://eldan.ai/writing/write-the-eval-before-the-prompt.md)**: Most teams tune prompts by feel and learn about regressions from users. Reverse the order: define what right means, collect twenty real inputs, get a baseline, then write the prompt.
- **[Most RAG bugs are search bugs](https://eldan.ai/writing/most-rag-bugs-are-search-bugs.md)**: When a retrieval-augmented answer is wrong, the model is usually the last suspect. Measure what reached the prompt before you touch the prompt.
- **[Structured output is a contract, not a prompt](https://eldan.ai/writing/structured-output-is-a-contract.md)**: Asking the model nicely for JSON is a hope, not an interface. Write the schema first, validate every response in code, retry once with the validation error, version the schema, and track the parse rate as an eval metric.
- **[The demo is not the product](https://eldan.ai/writing/the-demo-is-not-the-product.md)**: The distance between an AI demo and a product people rely on is mostly invisible in the demo: the long tail of real inputs, an eval set that defines right, and budgets for cost and latency. How to see that distance early.

## Courses

- [LLM Apps in Production](https://eldan.ai/workshops/llm-apps-in-production.md): Calls, structure, streaming and cost: the layer every AI feature sits on.
- [Your First Eval](https://eldan.ai/tutorials/first-eval.md): Build a golden set, a grader and a CI gate for a model-backed feature in five short lessons.

## AI engineering glossary

- [Eval](https://eldan.ai/glossary/eval.md): An eval is a repeatable test for software that uses a model. It has a set of inputs, a way to run your feature on them and a grader that scores each output, and it returns a rate instead of a pass or fail. Run it on every change to a prompt, model or retrieval setting.
- [Error analysis](https://eldan.ai/glossary/error-analysis.md): Error analysis is the habit of reading failed cases, sorting them into a few named groups and counting each group to decide what to fix next. It beats guessing and beats adding metrics. The biggest group usually is not the one you expected, so read real failures before you change anything.
- [Golden set](https://eldan.ai/glossary/golden-set.md): A golden set is a collection of real inputs, each paired with a known good answer or a labelling rubric, used to evaluate a model-backed feature. It should cover every category, include deliberately hard cases and be labelled before you look at model output. Keep part of it held out so tuning does not overfit.
- [Prompt](https://eldan.ai/glossary/prompt.md): A prompt is everything you send to a model in one request: instructions, examples, the conversation so far, retrieved documents and the user's input. The model produces its reply from this text alone. Because outputs depend entirely on the prompt, it deserves the same version control and testing as code.
- [Temperature](https://eldan.ai/glossary/temperature.md): Temperature is a sampling setting that controls how much randomness the model uses when choosing each next token. Lower values make outputs more predictable, higher values more varied. Even at zero, results are not guaranteed to be identical between runs, and some model families do not let you change the setting at all.
- [Hallucination](https://eldan.ai/glossary/hallucination.md): A hallucination is model output that reads fluently but is false or unsupported by the sources it was given. It is not a rare bug that a patch removes. It follows from how models generate text. You reduce it with grounding and verification and measure it with faithfulness checks.
- [LLM as judge](https://eldan.ai/glossary/llm-as-judge.md): LLM as judge means using a model to grade another model's output against a written rubric, typically with yes or no criteria. It scales evaluation of open-ended text, but a judge is just another prompt with its own biases. Check its agreement with human labels, for example with Cohen's kappa, before it gates anything.
