> ## Documentation index
> Fetch the complete documentation index at: https://docs.heurastudios.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Evals

> Test questions with what a passing answer must say. Every run is scored on them before and after, and the held-out ones decide what ships.

Source: https://docs.heurastudios.com/build/evals/

Evals are how you know a model learned. Each **test question** is a prompt with what a passing answer must include and must not include. Every training run answers your tests before it starts and after every round, so you see what it fixed and what it broke, question by question.

## Writing a test

Open the **tests** tab and add a question people will actually ask, then say what a passing answer must contain.

| Field | What it does |
| --- | --- |
| **Question** | The prompt, as a user would send it. |
| **Must include** | Items every passing answer contains. `a|b` means either one. |
| **Must not include** | Items no passing answer may contain. |
| **Ideal answer** | Optional. With no must-include items, an answer passes when its word overlap with the ideal answer is high enough (F1 of at least 0.5). |

A test passes when every must-include item is in the answer and no must-not-include item is.

```json title="A test, as Agent mode writes it"
{
  "q": "How many orders shipped last month?",
  "must": ["count", "shipped_at"],
  "must_not": ["created_at"]
}
```

## Held-out tests

A test question that no example asks is **held out**: the model never trains on it, so passing it shows learning, not memory. The [release gate](https://docs.heurastudios.com/concepts/versions-and-the-release-gate/) decides on held-out tests only. **Make them from your examples** turns examples into tests in one step, but those aren't held out: write your most important tests from fresh questions.

## The six specs

Every run reports six numbers before and after:

| Spec | What it measures |
| --- | --- |
| **Accuracy** | The share of test questions it passes. |
| **Held-out accuracy** | The same, on test questions no run trains on. |
| **Lesson recall** | The lessons it trained on that it answers right, asked as taught. |
| **Paraphrase robustness** | The same lessons, asked a little differently. |
| **Constraint adherence** | Answers that say nothing on their must-not-include list. |
| **Non-regression** | Of the test questions the version before passed, the share this one still passes. |

## Running tests

- **Run tests** answers every test question with the model's current version and engine, and records the score as the model's readiness.
- **Compare engines** runs the same tests on another engine (Claude, GPT, Gemini or your own model server) without changing readiness, so you can see where Heura Arche stands against a frontier model on your task.
- **Run tests every night** runs them once a night, at about 3 a.m. server time. On Heura Arche, answers that can't have changed are reused, so a quiet night costs almost nothing.

How many test runs an hour an account can start depends on its plan.

## Writing evals that mean something

- **Test the job, not the wording.** Check for the items a right answer can't do without (`count`, `shipped_at`), not a whole sentence.
- **Name the failure.** If the model keeps using the wrong column, put it in must-not-include.
- **Cover every rule that matters.** A rule in the script without a test is a rule you can't prove it follows.
- **Keep them real.** Take tests from questions people have asked, and keep them out of your examples.
- **Grow them with the model.** When chat shows a new kind of mistake, add a test for it before you fix it, so the next run proves the fix.

> **Note:**
>
> A training run needs at least one test question: the gate has nothing to decide on without one.
