Evals page
The Evals page is where you test models on your own data. A dataset holds inputs and expected answers, a run sends every item to each model you pick, and a scorer grades every answer so you can see which model does best. The same page manages remote scorers, cron schedules that alert on regressions, online rules that score a sample of production traffic, shadow results, human review queues, ratings your end users sent, and red team runs. Open it at /ui/evals. It sits in the left nav in the Developer Tools group as Evals, after Response Cache.
The nav shows Evals to proxy admins and proxy admin viewers only. Other users can still open /ui/evals directly when an admin gave them a custom role with evals.read or evals.write, as described in the role section below. Org admins, internal users and internal viewers without such a role see a notice instead of the page.
The page needs the Evals and red teaming license feature. Without it the page shows "Evals needs a Spanway Enterprise license" and names that feature, with a Get a trial license link. When the license is an enterprise license that lacks the feature, the notice asks you to contact sales@spanway.ai to add it. A short loading state shows while the license is checked. Every eval route on the gateway also requires the same license feature, so a missing license is enforced on the server even if the page renders.
A real-world scenario
A support team wants to know whether a cheaper model answers refund questions as well as the one they use today. They paste twenty real questions with the answers they expect into a dataset, start one run against both models with the contains scorer, and read the per-model pass rate and cost side by side before they change the default model.
Steps
-
Open Evals under Developer Tools in the left nav, or go to
/ui/evals. The Datasets tab opens first. -
Click New dataset, type a name such as
refund-questions, keep Paste rows, paste one JSON object per line withinputandexpected, and click Create dataset. The page calls the same route as this command.curl -X POST http://localhost:4000/eval/datasets \-H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \-d '{"name": "refund-questions", "items": [{"input": "How long do refunds take?", "expected": "Refunds are issued within 14 days."},{"input": "Can I get a refund on a gift card?", "expected": "Gift cards cannot be refunded."}]}' -
Open the Runs tab and click New run. Pick the dataset, pick both models under Models, choose the
containsscorer and enter14 daysas its substring, then click Start run.curl -X POST http://localhost:4000/eval/runs \-H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \-d '{"dataset_name": "refund-questions", "models": ["gpt-5.5", "claude-sonnet-5-5"],"scorer": {"type": "contains", "substrings": ["14 days"]}}' -
Click the run in the list. The detail page refreshes every 3 seconds until the run completes. Read the per-model summary and expand a failed row to see the input, the expected answer and what the model said.
curl http://localhost:4000/eval/runs/<run_id> -H "Authorization: Bearer $SPANWAY_MASTER_KEY"
Expected result
The new run starts as pending, moves to running and ends completed. The summary table lists each model with its pass rate, mean score, latency and total cost, and the best model carries a Best badge. The API returns the same numbers.
{"run_id": "9b4e...", "status": "completed", "models": ["gpt-5.5", "claude-sonnet-5-5"],
"summary": {"best_model": "gpt-5.5", "models": [
{"model": "gpt-5.5", "item_count": 2, "scored_count": 2, "error_count": 0, "mean_score": 1.0, "pass_rate": 1.0, "mean_latency_ms": 812.4, "total_cost": 0.0021},
{"model": "claude-sonnet-5-5", "item_count": 2, "scored_count": 2, "error_count": 0, "mean_score": 0.5, "pass_rate": 0.5, "mean_latency_ms": 940.1, "total_cost": 0.0034}]}}
Page layout and tabs
Under the introduction text the page has a row of tabs. The open tab is kept in the URL as ?tab=, so a link opens the same tab. The default is Datasets.
| Tab | What it holds |
|---|---|
| Datasets | Test sets, created from pasted rows, a file, production logs, whole sessions or questions generated from pasted documents, with their versions |
| Runs | Eval runs, a side by side Compare view and a Playground |
| Scorers | Remote scorers, which are endpoints you run that grade outputs |
| Schedules | Runs that repeat on a cron and alert on regressions |
| Online | Rules that score a sample of live production responses |
| Shadow | Judge verdicts from shadow evals of live traffic against a candidate model |
| Review | Human review queues, judge calibration and golden dataset export |
| Feedback | Ratings end users sent for single requests |
| Red team | Adversarial runs that report how often a target model holds up |
Scorers, Online and Shadow are shown only to proxy admins and proxy admin viewers, because they cover every team. Custom role holders do not see those three tabs.
The introduction ends with a role note. A user who can view but not change evals reads "You can view datasets and runs, but only a proxy admin can create or change them." A custom role holder reads that they see their own team's datasets, runs, schedules, review queues and red team runs, that scorers, online rules and shadow results stay with admins, and that a role with evals.write changes them through the API.
Most tables on the page share the same toolbar pieces. A refresh button reloads the table, server side paging shows 25 rows per page by default, and a column menu hides columns. Toasts confirm each change or show the error the gateway returned.
Datasets tab
The table lists every dataset you can see.
| Column | Meaning |
|---|---|
| Dataset | The name, with the description (or the dataset id when there is none) under it |
| Items | How many items the current version holds |
| Created by | Who created it, or "-" |
| Updated | When it last changed |
Clicking a row, or View items in the row's actions menu, opens the dataset detail sheet. Proxy admins also get Delete in the actions menu and four toolbar buttons, From logs, From sessions, Generate synthetic dataset and New dataset.
New dataset dialog
The dialog is titled New dataset.
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required, up to 200 characters | The dataset name. The placeholder reads "Customer support, v2". An empty name shows "Enter a dataset name". |
| Description | Text field | Optional description. |
| Items | Dropdown | Paste rows (default) or Upload a file. |
| Rows | Text area, shown for Paste rows | One JSON object per line with an input and an optional expected (a message list may carry images on user turns and recorded audio on user and assistant turns, see image and voice scorers), or CSV with an input column and optional expected, context and retrieval_context columns. The first non-empty line decides the format, a line that starts with { means JSONL. |
| File | File picker, shown for Upload a file | A .jsonl or .csv file with input, expected, context, retrieval_context and metadata fields. The browser reads the file and sends it as text. |
| Create dataset | Button | Validates the rows and creates the dataset. |
| Cancel | Button | Closes the dialog. |
In JSONL, input may be a string or a list of messages with the roles system, user or assistant. In CSV, a context or retrieval_context cell may hold a JSON list of strings, otherwise the whole cell becomes one entry. Rows without an input are skipped. Problems show in a "Check the dataset" alert, for example "Line 3 is not valid JSON", "Line 3 needs an "input" string or message list", "A CSV needs an "input" column…", "No row has an input", "Paste at least one row", "Choose a .jsonl or .csv file" or the file name followed by "is empty". A gateway error shows as "Could not create the dataset".
Dataset from logs dialog
From logs opens Dataset from logs, which samples real requests the proxy served. The inputs become items, and the recorded responses can become the expected answers.
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required, up to 200 characters | The placeholder reads "Production sample, October". |
| Description | Text field | Optional. |
| Models | Multi select | Limits the sample to these models. Empty means any model. |
| Tags | Multi select, accepts typed values | Limits to requests with these tags. |
| Teams | Multi select | Limits to these teams. |
| Keys | Multi select, accepts typed values | Limits to these keys. The list offers key aliases, and a typed value may also be a key hash as the Logs page shows it. The gateway resolves each alias to its key. |
| From, To | Date and time fields, required | The window. They default to the last 7 days. The end must be after the start. |
| Status | Dropdown | Any status (default), Succeeded or Failed. |
| Min tokens, Max tokens | Number fields | Whole numbers. The maximum must be at least the minimum. |
| Sample size | Number field | 1 to 1,000. Defaults to 100. |
| Strategy | Dropdown | Random sample (default) or Most recent. |
| Use the recorded responses as the expected answers | Switch | Off by default. Disabled when the logs hold no request bodies. |
| Create dataset | Button | Creates the dataset. Disabled until the preview has loaded and while request bodies are missing. |
The Preview section shows how many requests match and up to 20 of them with When, Model, Team, Input, Output, Cost and Latency. It reads "No logged request matches these filters." when nothing matches. If the logs hold metadata only, a "Request bodies are not stored" warning explains that you need to turn on request and response storage in the proxy's logging settings before new requests can be sampled. Only proxy admins can create a dataset from logs, and the preview needs a proxy admin or proxy admin viewer on the gateway.
Dataset from sessions dialog
From sessions opens Dataset from sessions. Each session becomes one item that holds the whole conversation, tool calls and tool results included, ready for replay, agent or logged runs. Every item keeps the data policy of the request it came from.
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required, up to 200 characters | An empty name shows "Name the dataset". |
| Description | Text field | Optional. |
| Source | Dropdown | Request logs, by session id (default) or Lens traces, by trace id. The Lens option is disabled with "Lens is not configured" when the gateway has no Lens connection. |
| Session ids or Trace ids | Text area | One id per line, or separated by commas. Duplicates are removed. At most 1,000 session ids or 200 trace ids. |
| Include sessions whose tool calls were truncated when logged | Switch | Off by default. |
| Create dataset | Button | Creates the dataset. |
The Preview table shows up to 50 sessions with Session, Model, Turns, Tool calls and Last user turn, and badges truncated and data policy on the session id. A line under it counts sessions it skipped because they were redacted, had truncated tool calls, had no readable conversation, or had an invalid data policy. A "No request bodies were logged" warning tells you to set general_settings.store_prompts_in_spend_logs to true, and a "Lens is not configured" warning tells you to set SPANWAY_LENS_URL. Form errors and gateway errors show as "Could not create the dataset". Only proxy admins can create a dataset from sessions.
Generate synthetic dataset dialog
Generate synthetic dataset opens a dialog of the same name. For each document you paste, a model you pick writes questions a user could ask and refines them, and each question becomes an item. Review the items before you rely on a run over them.
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required, up to 200 characters | An empty name shows "Name the dataset". |
| Description | Text field | Optional. |
| Generator model | Dropdown, required | The model that writes the questions. Calls go through the gateway as you, so your budget, rate limits, guardrails and data policies apply. |
| Documents | Text area, required | The text the questions come from. Separate documents with a line holding only ---. Up to 20 documents of 8,000 characters each. Only this text is sent, never logged traffic. |
| Questions per document | Number field, default 2 | A whole number from 1 to 5. The hint shows the most model calls the request can make, since each question takes up to 5. |
| Answer each question from its document as the expected output | Switch, on | Fills expected on each item from its document. |
| Scenario, Task | Text fields | Optional, up to 1,000 characters each, for example "a new customer asking about refunds" and "answer support questions". |
| Generate dataset | Button | Sends the request to POST /eval/datasets/synthesize and reads "Generating..." while it runs. |
Problems show as "Could not generate the dataset", for example "Pick the model that writes the questions", "Paste at least one document" or a document that is too long. On success a toast names the dataset and its item count.
Dataset detail sheet
The sheet opens from the right with the dataset name and description. It lists ID, Items, Created by, Created and Updated, then every item of the current version as a card with its input (plain text or a transcript), Expected, Context, Retrieval context, Tools, Expected tool calls, Expected outcome and metadata. A dataset with no items reads "This dataset has no items.", and a load failure shows "Could not load the items".
Under the items is the Versions section. Every set of items the dataset has held is kept as a version.
| Column or control | Meaning |
|---|---|
| Version | The version number, with "(current)" on the current one |
| Items | How many items that version holds |
| Created by | Who made that version |
| Show items / Hide items | Lists the inputs of that version below the table |
| Delete | Proxy admins only. Opens a confirmation. Disabled on the current version, with the hint "The current version cannot be deleted. Change the items first." |
Deleting a version asks "Delete version N?" and says "The version and its items are deleted for good. Finished runs keep their results." This cannot be undone. The help text explains how to remove an item from history, for example personal data. Change the items so the current version no longer holds it, then delete each earlier version that still does. The page has no control to edit a dataset's items, so that change has to go through the gateway API.
Delete a dataset
Delete asks "Delete this dataset?" and shows the dataset name and item count. Every run of the dataset and their results are deleted with it, and this cannot be undone. A dataset with a run in progress cannot be deleted, so cancel the run first.
Runs tab
The Runs tab has three views, chosen with buttons at the top and kept in the URL as ?view=. Runs is the default, Compare is for everyone, and Playground is shown only to proxy admins.
Runs list
| Column | Meaning |
|---|---|
| Selection | A checkbox per row, used by Compare |
| Run | The run name (or id) and the run id, with a CI badge for runs started from CI and a Baseline badge for a trusted baseline. Hovering the CI badge shows the ref, commit, pull request and baseline key. |
| Dataset | The dataset name |
| Schedule | The schedule that started the run. Shown only when a listed run came from a schedule. |
| Prompt | The prompt id and version. Shown only when a listed run used a managed prompt. |
| Models | Up to three model badges and a "+N" badge for the rest. The best model is highlighted. |
| Scorer | The scorer type, with a badge for the run mode when it is not single answer |
| Status | A badge (see below). Hovering a failed run shows its error. |
| Best model | The model with the best result, or "-" |
| Created | When the run was created |
| Badge | Meaning |
|---|---|
| Pending | The run is queued |
| Running | Items are being sent and scored |
| Completed | Every item was processed |
| Failed | The run stopped with an error |
| Cancelled | Someone cancelled the run |
The list refreshes every 3 seconds while any listed run is pending or running.
| Control | Type | What it does |
|---|---|---|
| All datasets | Filter | Shows runs of one dataset. |
| All statuses | Filter | Shows runs with one status. |
| Baseline key | Text field | Shows runs with this baseline key. It applies when you press Enter or leave the field. |
| Compare | Button | Opens the Compare view with every model of every selected run as an arm. It is disabled with a reason as the tooltip unless you select 2 to 4 runs of one dataset and one mode, none of them a logged run, holding at most 4 models together. |
| New run | Button, proxy admins only | Opens the New run dialog. |
The row actions menu has View results for everyone. Proxy admins also get Cancel on a pending or running run and Delete on any other run. Clicking a row opens the run detail and puts the run id in the URL as ?run=.
Cancel asks "Cancel this run?". Items already scored are kept and nothing else is sent to the models. An optional Reason of up to 500 characters is kept in the audit log. Delete asks "Delete this run?". The run and every result in it are removed for good and the dataset stays.
New run dialog
The dialog is titled New run. Every item in the dataset is sent to each model, the scorer grades every answer, and the run continues in the background.
| Control | Type | What it does |
|---|---|---|
| Dataset | Dropdown, required | The dataset, with its item count. Prefilled when the list is filtered to one dataset. |
| Run mode | Dropdown | Single answer (default) sends each item once to each model. Replay conversation has each model answer every user turn of the stored conversation, seeing its own earlier replies. Agent with tools has each model work the item with its tools, answered from the item's fixtures, until it stops calling them. Score logged conversation scores the stored conversation as it is and calls no model. |
| Max steps | Number field, Agent with tools only | 1 to 25. The placeholder is 8. Each step is one model call, so a run costs up to items times models times max steps calls. |
| Models | Multi select, required except for logged runs | The models to compare. Hidden for Score logged conversation. |
| Scorer | Dropdown, required | The scorers that fit the mode. Transcript scorers need a conversation mode. A scorer marked "needs the evals extra" is disabled until the evals extra is installed on the proxy, and a hint counts how many are unavailable. The chosen scorer's description shows under it. The list comes from GET /eval/scorers and covers rule checks, judged rubrics such as the G-Eval variants and the DAG decision graph, and RAG, agent, MCP, conversation and safety scorers, as listed in the metric catalogue. |
| Scorer settings | Fields that depend on the scorer | Numbers, choices, switches, lists (one per line or comma separated, or checkboxes when the scorer has fixed options) and JSON objects. Required settings carry a red asterisk, and ranges show under the field. A remote scorer has a dropdown of enabled remote scorers with their revision. |
| Run name | Text field | Optional, up to 200 characters. |
| Concurrency | Number field | 1 to 32. Empty uses the proxy default. |
| Prompt ID | Text field, single answer and agent modes | Optional, a prompt from the Prompts page. |
| Prompt version | Number field | Optional, defaults to the latest. Needs a prompt ID. |
| System prompt | Text area, single answer and agent modes | Optional, up to 20,000 characters. It replaces the system turns of every item. |
| User template | Text area, single answer and agent modes | Optional, up to 20,000 characters. It must contain the input placeholder, which is the word input inside double curly braces. The placeholder is replaced with the last user turn of the item and nothing else is substituted. |
| Temperature, Top p, Max tokens, Seed | Number fields | Optional sampling settings. Temperature 0 to 2, top p 0 to 1, max tokens 1 to 32,768, seed a whole number. Empty uses the model default. Hidden for logged runs. |
| Stop sequences | Text area | Optional, one per line, at most four. |
| Start run | Button | Validates and starts the run. |
A template and a prompt ID cannot be used together, and the form says "Use a template or a prompt ID, not both". When the chosen dataset has items without a field the scorer reads, a "Some items lack what this scorer needs" warning counts them, and those items are scored without it. When a remote scorer is chosen, a note warns that its params are sent with every request and are visible to every admin viewer, so never put credentials in them. Gateway errors show as "Could not start the run". Starting a run needs a proxy admin on the gateway.
Run detail
The detail page has Back to runs, the run name and its status badge, and refreshes every 3 seconds while the run is active.
| Control | Type | What it does |
|---|---|---|
| Compare | Button | Opens Compare with every model of this run as an arm. Hidden for logged runs. |
| Cancel run | Button, proxy admins, active runs | Same confirmation as in the list. |
| Delete run | Button, proxy admins, finished runs | Same confirmation as in the list. After deleting you return to the list. |
A summary lists Dataset, Scorer (a remote scorer shows as "Remote" with its name and revision, or "Remote: deleted scorer"), Mode, Max steps, Schedule, Prompt, System prompt, User template, Params, Created by, Created, Started and Completed, showing only the rows that apply. A failed run shows "The run failed" with the error.
For a scheduled run a box compares the pass rate with the previous scheduled run and links to it. Its title is "Regression alert sent" when the schedule's alert threshold was crossed, otherwise "Compared with the previous scheduled run". The first completed run of a schedule says there is nothing to compare with yet.
CI gate
Runs started from CI, runs with a baseline key and runs with a gate show a CI gate box. It lists Repository, Pull request (a link to the pull request in the GitHub repository when the run names that CI provider), Ref, Commit, CI job (a link, only for an https job URL), Baseline key and Trusted baseline. The verdict refreshes while it is pending.
| Badge | Meaning |
|---|---|
| Waiting for the run | The run has not finished |
| Gate passed | Every check passed |
| Gate failed | At least one check failed |
| Nothing to gate | There was nothing to check |
| Gate error | The gate could not be decided |
Next to the badge is the baseline run it was compared with, as a link, or the reason there is no baseline. A table lists each check with Check, Model, Outcome, Actual, Limit and Baseline, and a list shows up to 20 regressed items with their model and cause.
Summary and results
The per-model summary table has Model, Pass rate, Mean score, Mean latency, Mean steps (conversation modes only), Total cost, Scored (scored of total items) and Errors, with a Best badge on the best model.
The results table lists one row per item and model with Item, Model, Outcome (Passed or Failed), Score, Steps, Latency, Cost and Error. Filters All models and All outcomes narrow it. Expanding a row shows Input, Expected, Output, Score, Reason and Error. In conversation modes it also shows the transcript, with a stop badge (Finished, Stopped at max steps or Logged conversation), the step count, an Open in run ledger link, tool calls with their results, a truncated badge on cut arguments and a No fixture marker when an agent called a tool the item had no answer for. An empty table reads "The run has not started yet." for a pending run, otherwise "No results match these filters.".
Compare view
Compare puts two to four runs, or two models of one run, side by side on the same dataset item by item. The first arm is the baseline. An error on one side decides first, then a pass that turned into a fail or back, then a score that moved by more than the tolerance. The chosen arms are kept in the URL, so a comparison can be shared as a link.
| Control | Type | What it does |
|---|---|---|
| Dataset | Dropdown | Limits the run pickers to runs of one dataset. Any dataset by default. Changing it clears the arms. |
| Baseline run, Arm N run | Dropdowns | The run for each arm, listing the 100 most recent runs with their status. |
| Model | Dropdown | The model of that run. Picked for you when the run has one model. |
| Remove arm | Icon button | Removes an arm. Shown when there are more than two. |
| Add arm | Button | Adds an arm, up to four. |
| Score tolerance | Number field | 0 to 1, default 0. A score change within the tolerance counts as unchanged. |
| Compare | Button | Runs the comparison. Disabled until every arm has a run and a model and each arm is a different run and model. |
When some results need care, a "Read these results with care" warning lists why, for example a different scorer than the baseline, different dataset items, a dataset that changed after a run, a run that is not finished, or results whose items are no longer in the dataset.
The per-arm table shows Pass rate, Mean score, Mean latency and Total cost for each arm with the change against the baseline in green or red, and counts of Regressed, Improved, Unchanged and Incomparable items. Below it, Show filters items (All items, Regressed, Improved, Changed, Unchanged, Incomparable) and Sort orders them (Dataset order or Largest score drop first). The items table shows each item's verdict (Regressed, Improved, Mixed, Unchanged or Incomparable) and each arm's result with a change badge such as Pass to fail, Score dropped, New error, Fail to pass, Score rose, Error fixed, No baseline result or No result. Clicking an item shows its input, expected answer, each arm's reason and error, and a diff of each arm's output against the baseline. Outputs are cut to their first 4,000 characters here. Results show 50 items per page with Previous and Next.
Playground view
The Playground tries a prompt on a few dataset items before you run it on the whole dataset. Results come back while you wait and are not stored, but every call is billed to your key and marked as playground traffic in the spend logs. It runs at most 30 item and model pairs and stops waiting after 45 seconds.
| Control | Type | What it does |
|---|---|---|
| Dataset | Dropdown, required | The dataset to sample. |
| Sample | Dropdown | First items (default), Random items or Chosen item ids. |
| Items | Number field | 1 to 20, default 5. Hidden for chosen ids. |
| Seed | Text field, random sampling | Empty draws new items. After a random run the seed used is filled in, so you can repeat the draw. The shuffle button clears it. |
| Item ids | Text area, chosen ids | One per line or separated by commas. |
| Models | Multi select, required | Up to three models. |
| Scorer | Dropdown | No scorer, outputs only (default) or a scorer that fits single answers. A remote scorer sends each item and output to its endpoint. |
| Scorer settings | Fields | As in the New run dialog. |
| Start from | Dropdown | A blank template (default) or A managed prompt, which shows Prompt ID (required) and Prompt version. |
| System prompt, User template, sampling settings, Stop sequences | Fields | As in the New run dialog. The template fields show only for a blank template. |
| Pin as baseline | Button | Keeps the current results so later runs show the score change against them. Appears after a run. |
| Save as run | Button | Opens the New run dialog filled from this setup. It runs on every item of the dataset, not only the sample. Disabled until a scorer and a model are chosen. |
| Run | Button | Runs the sample. Disabled while more than 30 pairs are chosen or a blank template's user template lacks the input placeholder. |
A counter shows the number of pairs out of 30 and turns red above the limit. After a run, a "What item N was sent as" section shows the messages sent for one item, and a grid shows each item and model with the output or error, pass or fail, score, change against the pinned baseline, latency and cost. Pairs still running after 45 seconds show as errors under "Some pairs ran out of time". A failure shows "The playground did not run".
Scorers tab
This tab lists remote scorers. A remote scorer is an endpoint you run that grades eval outputs. The gateway never runs scorer code. It sends each output as a signed request and stores the score.
| Column | Meaning |
|---|---|
| Scorer | The name, with the endpoint host under it |
| Requires | The item fields the scorer reads, or "-" |
| Revision | The current revision, such as r3 |
| Secret | A hint of the signing secret, with a Rotating badge during a rotation grace window |
| Enabled | A switch that enables or disables the scorer. On means runs, schedules and online rules can call it. Off stops new calls to it, and is refused with 409 while an enabled online rule uses it. Disabled for users who cannot change evals. |
Proxy admins get Register scorer in the toolbar and a row menu with Test, Edit, Rotate secret and Delete.
Register or edit a remote scorer
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required on create, fixed on edit | Lowercase letters, digits, - and _, starting with a letter or digit, up to 63 characters. The placeholder is "support-grader". |
| URL | Text field, required on create | A full https URL without credentials. Plain http only works when the host is in user_url_allowed_hosts. Only the host is shown after saving. On edit, leaving it empty keeps the stored URL. |
| Description | Text area | Up to 500 characters. |
| Timeout (ms) | Number field | 500 to 60,000. Default 10,000. |
| Retries | Number field | 0 to 3. Default 2. |
| Concurrency | Number field | 1 to 64. Default 8. |
| Item fields the scorer reads | Checkboxes | expected, context, retrieval_context, tools, expected_tool_calls and expected_outcome. |
| Register scorer / Save scorer | Button | Saves. On edit only the changed fields are sent. |
On edit the dialog says that changing the URL, limits or item fields starts a new revision, and runs already going keep the revision they started with. The endpoint receives dataset items and model outputs.
After you register a scorer or rotate its secret, a dialog shows the signing secret once. Store it with your scorer, because it is shown only once. Requests are signed with it using Standard Webhooks, so your scorer can reject anything that did not come from this gateway. Copy copies it and I stored it closes the dialog.
Test, rotate and delete
Test opens a dialog with Input, Expected, Model (default "test-model") and Output, and Score sends one signed request exactly as a run would, storing nothing. The result shows the score, pass or fail, the latency and the reason, or "The scorer returned an error".
Rotate secret asks "Rotate the signing secret?" with a Grace window (hours) field, 0 to 168, default 24. During the grace window every request is signed with both secrets, so you can update your scorer without dropping requests. A grace of 0 drops the old secret at once.
Delete asks "Delete this scorer?" and shows the name and endpoint. Runs that already finished keep their results. A pending or running run, or an enabled schedule that uses the scorer, blocks the delete. Deleting cannot be undone.
Schedules tab
| Column | Meaning |
|---|---|
| Schedule | The name with the cron expression under it |
| Items | The dataset name, or "From logs" with the sample size and strategy |
| Models | Model badges |
| Scorer | The scorer type |
| Enabled | A switch that enables or pauses the schedule. Paused means no run starts at its cron times and no alert is sent, while its settings stay. Disabled for users who cannot change evals. |
| Next run | When it next runs, or "Paused" |
| Last run | When it last ran, as a link that opens that run on the Runs tab |
Proxy admins get New schedule and a row menu with Edit, Run now and Delete.
New or edit schedule dialog
A run starts on the cron schedule, scores every model and compares the pass rate with the previous run. Alerts fire when it drops below the minimum or regresses by more than the threshold.
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required | Up to 200 characters. The placeholder is "Nightly support regression". |
| Items | Dropdown | A saved dataset (default) or A sample of logs from a fixed window. |
| Dataset | Dropdown, required for a saved dataset | The dataset to run. |
| Log filters, Sample size, Strategy, Use the recorded responses as the expected answers | Fields, for a log sample | The same fields as the Dataset from logs dialog. A schedule accepts only Random sample and Most recent. |
| Models | Multi select, required | The models to evaluate. |
| Scorer and Scorer settings | Dropdown and fields, required | As in the New run dialog. |
| Cron presets | Buttons | Hourly, Daily at 09:00 (the default for a new schedule) and Weekly on Monday at 09:00. |
| Cron expression | Text field, required | Five fields, minute hour day month weekday. |
| Time zone | Dropdown, required | Defaults to your browser's time zone. |
| Minimum pass rate | Number field | Optional, 0 to 1. |
| Regression threshold | Number field | Optional drop in pass rate, 0 to 1. |
| Enabled | Switch | On by default. The help line under it says that while it is on the gateway starts a run at every cron time and sends the alerts you chose, which spends model and judge tokens each time, and that turning it off pauses the schedule without losing its settings, for example during a model migration. |
| Create schedule / Save schedule | Button | Saves. |
A line under the cron fields shows the next run time in the chosen zone, or "Enter a valid cron expression to see the next run.".
Run now asks "Run this schedule now?". A run starts right away with the schedule's models and scorer, and the next scheduled run is unchanged. Delete asks "Delete this schedule?". No more runs start from it, runs it already produced are kept, and it cannot be undone.
Online tab
Online rules score a sample of production responses after they went back to the caller. Scores appear here, in the log drawer of each scored request, and feed eval regression alerts.
| Column | Meaning |
|---|---|
| Rule | The name and what it matches (models, teams, keys, tags, or "All traffic") |
| Sample | The sample percentage |
| Scorers | The scorer types |
| Today | Scored, errors and skipped requests for the UTC day, updated with the spend flush |
| Judge spend today | Today's judge spend, and the daily budget when set |
| Enabled | A switch that enables or pauses the rule. Paused means no live request is scored and no judge spend is made, while its past scores stay. Disabled for users who cannot change evals. |
Clicking a row opens a card for that rule over the last 7 days, titled with the rule's name and the version it runs now. It counts today's Scored, Errors, Not sampled, Shed under load, Over judge budget and Unscorable requests, and a table lists each model group and scorer with Scored, Errors, Pass rate, Mean score and Judge cost. With no scores it reads "No scores in the last 7 days yet.".
Under it three more cards cover evaluator operations:
| Card | What it shows and does |
|---|---|
| Versions | Every saved version with its number, whether it was created, updated or restored, its scorers, its sampling and who saved it. The help text says each save keeps a numbered copy, that restore puts an earlier copy back as a new version and can be undone, that scorers added later stay, and that only proxy admins restore. Proxy admins get Restore on every version except the current one, which asks "Restore version N?" first. |
| Backfills | Proxy admins pick What to score (Logged requests in a time window or Lens traces I pick), Days back or Trace IDs, Most requests to score, the Score only what live sampling would pick switch and Judge budget for this backfill (USD), then click Start backfill. Each control has a help line saying what it does, its default and its cost. The table lists each backfill with when it started, its status (running, completed, failed, cancelled or interrupted), how many requests it scored and skipped and its judge spend, and refreshes every 5 seconds while one runs. A running backfill has a Cancel button. |
| Judge versus human agreement | Pick a Review queue and optionally a Rule version, then click Compare to see, per scorer and version, how many requests were compared, the agreement, kappa, the threshold now and a suggested threshold, with "(small sample)" under 30. Below it, Why was a request scored or not? takes a request id and, after Check, explains whether sampling picks it, whether the rule's match selects it and whether a score was stored. |
Proxy admins get New rule and a row menu with Edit and Delete.
New or edit online rule dialog
The rule scores a sample of live requests after the response went back to the caller, so callers never wait on it. Scorers see only the request and its reply.
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required | The placeholder is "Support answers tone". |
| Sample percentage | Number field, required | Above 0, up to 100. Default 5. |
| Description | Text field | Optional. |
| Model groups | Multi select | Limits the rule to these models. |
| Team IDs, Key aliases or hashes, Request tags | Text fields | Comma separated. Request tags are set by the caller. A value that starts with sk- is refused with "Enter a key alias or a key hash, never the key itself". |
| Scorer N | Dropdown and settings | Only scorers that need no expected answer, retrieval context, tools or expected tool calls are offered, and remote scorers that require no item field. The contains scorer needs its substrings listed, because live traffic has no expected answer. Saved scorers keep their place and type so their history stays comparable, but their settings can change. New scorers have a remove button. |
| Add scorer | Button | Adds a scorer, up to 5. At least one is required. |
| Daily judge budget (USD) | Number field | Above 0. Required when a judged scorer is used. |
| Minimum pass rate, Regression threshold | Number fields | Optional, 0 to 1. |
| Window (minutes) | Number field | 15 to 1,440. Default 60. |
| Minimum scored requests | Number field | 1 to 10,000. Default 20. |
| Enabled | Switch | On by default. The help line under it says that while it is on the gateway scores the sampled share of matching live requests, which costs judge or remote scorer calls, and that turning it off stops the scoring and that spend at once while the rule and its past scores stay. |
| Try it before saving | Box | Runs the rule's scorers on up to 10 samples without saving anything. Samples picks Logged requests, A question and answer I type or Lens traces, Request IDs or Trace IDs take up to 10 ids, and Most to spend on judges (USD) (default 1) stops judge calls once the test spent that much. Run test lists each sample's verdicts, the judge's reasons and the test's judge cost, and Preview cost shows the matching requests a day, how many would be scored, the judge cost a day and whether the daily budget runs out first. Judge calls in a test are billed to you. |
| Create rule / Save rule | Button | Saves, and keeps the settings as a new numbered version. |
Values in one match field are alternatives, and every filled field must match. Leaving all of them empty samples all chat, Messages and Responses traffic. A rule with a judged scorer that is not narrowed by model, team, key or tag may sample at most 10 percent. At 100 percent with a judged scorer, an "Every matching request calls the judge" warning says each matching request costs one or more judge calls, billed to you, until the daily budget is reached.
Delete asks "Delete this rule?". Scoring stops on every pod within 30 seconds. Its scores are no longer listed and are removed by score retention. This cannot be undone.
Shadow tab
The Shadow tab lists judge verdicts from shadow evals, where a judge compares a sample of live traffic against a candidate model.
| Column | Meaning |
|---|---|
| Request | The request id |
| Shadow model | The candidate model |
| Real model | The model that served the caller |
| Verdict | A badge (see below) |
| Confidence | The judge's score |
| Cost | What the shadow call cost |
| Judged | When it was judged |
| Error | The error, when there was one |
| Badge | Meaning |
|---|---|
| Shadow won | The judge preferred the candidate |
| Tie | The judge saw no difference |
| Real won | The judge preferred the real response |
| Error | The comparison failed |
Filters are All models and a From and To time window. With no results it reads "No shadow evals in this window." followed by a short explanation.
Review tab
Human review queues collect pass or fail labels from the reviewers you assign, on eval results, sampled production responses and shadowed requests. Calibration shows how often each judge agrees with them, and labelled items export to a golden dataset. Reviewers label from the Review page.
The queue list shows Queue, Pending, Done and Reviewers. Clicking a queue opens its card below the list. With no queues it reads "No review queues yet.". Proxy admins get a New queue button.
New or edit queue dialog
Reviewers are user ids of internal users or proxy admins. Each sees only the content to judge, never the judge's verdict or other labels. Removing a reviewer takes away their access at once.
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required | An empty name shows "Give the queue a name". |
| Reviewers | Text field | User ids separated by commas or spaces. The placeholder is "alice, bob". The gateway refuses unknown users and users who are not internal users or proxy admins. |
| Labels per item | Number field | 1 to 5. Default 1. |
| Instructions for reviewers | Text area | Shown to reviewers above each item. |
| Ask for a 0 to 1 score as well as pass or fail | Switch | On by default. |
| Blind review | Switch | Off by default. On, reviewers no longer see the expected answer, so a reference answer cannot sway them, and each reviewer gets the items in their own shuffled order. Turn it on when you calibrate a judge or build a golden set. Off, the expected answer shows and items come oldest first. Judge verdicts, other labels and the model stay hidden from reviewers either way. See blind review. |
| Create / Save | Button | Saves. On edit only the changed fields are sent, and saving with no change shows "Nothing changed". |
Queue card
The card shows the queue name, how many items are pending and done, the labels per item, the reviewers and "Blind review." when the switch is on.
| Control | Type | What it does |
|---|---|---|
| Edit queue | Button, proxy admins | Opens the queue dialog. |
| From a completed run | Run id field, Which results dropdown and Add run results button, proxy admins | Adds the latest 100 results of a run. failed results (default), passed results or all results. |
| From shadow attempts (proxy admins) | Optional shadow job id, Judge outcome dropdown and Add shadowed responses button | Adds the latest 100 shadow attempts, optionally only those where the judge preferred real, shadow or tie. |
| From production logs (proxy admins) | Log filters, sample fields and Add logged responses button | Adds a sample of logged responses, with the same filters as the Dataset from logs dialog. |
| Reviewer ticks and Share out unassigned items | Checkboxes and button, proxy admins | Gives the oldest items nobody holds, up to 1,000 at a time, to the ticked reviewers, each item to whoever has the fewest. Every reviewer is ticked to start with. |
| Take back | Button on each board row, proxy admins | Returns everything that reviewer holds to the shared pool. Disabled when they hold nothing. |
| Compare against run | Text field and Compare button | Loads judge calibration, optionally against a run over an exported golden dataset. |
| Export golden dataset | Form and button, proxy admins | See below. |
| Delete queue | Button, proxy admins | Deletes the queue after confirmation. |
Adding items shows a toast with how many were added, how many were already queued and how many were skipped by data policy. Adding from shadow attempts and from logs needs a proxy admin on the gateway, not only a role that can change evals.
The Assignment board section reads "N pending, N not assigned to anyone." and lists each reviewer with Assigned (items an admin gave them), Open now (items they are looking at this minute), Can take, Labelled, Skipped and Last labelled ("never" when they have not labelled yet). Assigned items wait only for their reviewer until that person labels or skips them or leaves the queue. Sharing out shows a toast with how many items were assigned, and taking back one with how many were returned. Both are written to the audit log. See the assignment board.
The Reviewer agreement section explains in plain words what agreement means, then reads "N item(s) labelled by two or more reviewers, N disputed. Agreement N%, alpha N.". A table lists each reviewer with Labels, Pass rate, Mean score, Shared items (with a low sample badge under 30) and Agrees with others, and a second table lists each pair with Shared items, Agreement and Kappa with its band. The ids of up to 50 disputed items follow. It needs labels per item of 2 or more to show numbers. See reviewer agreement.
The Judge calibration section summarizes decided, labelled and tied items and the inter-rater agreement. A table lists each scorer and model with Items (and a low sample badge), Agreement, Kappa with its band (poor, slight, fair, moderate, substantial or almost perfect), the four agreement counts, Score error, and the current threshold next to the suggested one. With nothing to compare it reads "No automated verdict to compare yet.".
The Items section lists Source, Output, Human (the consensus, which is pass, fail, tie or unlabelled), Labels and a Run ledger link for the request. View opens a Review item dialog with the input, output, expected answer and each reviewer's label, score and comment. Production and shadow content is shown only to proxy admins and admin viewers. Proxy admins also get Delete, which asks "Delete this review item?". The item and every label on it are deleted for good, and datasets already exported keep their copy. Items page 50 at a time. An empty queue reads "No items in this queue yet. Add some from a run, from logs or from shadow results above.".
The Golden dataset export has New dataset with a dataset name, or Append to a dataset with a dataset id, a Which items dropdown (passed items by default, failed items or all items) and the switch Use passed responses as the expected answer, on by default. Export golden dataset shows how many items were exported and how many the dataset now holds.
Delete queue asks "Delete" followed by the queue name. Every item and label in the queue is deleted and cannot be recovered. Datasets already exported keep their items.
Feedback tab
The Feedback tab lists ratings the end users of your apps gave single requests, sent with POST /eval/feedback. A rating is kept until it is deleted here, until the end user is erased, or until maximum_eval_feedback_retention_period passes.
| Control | Type | What it does |
|---|---|---|
| Request id | Text field | Shows ratings of one request. |
| Session id | Text field | Shows ratings of one session. |
| Show ratings | Button | Applies the filters. Pressing Enter does the same. |
The table shows Request, Rating (the score and label), Comment and End user, for the 50 most recent matches. When the key that sent a rating, its team or its organization requires zero data retention, the gateway drops the comment and keeps the score, label and ids. Proxy admins get Delete on each row, which asks "Delete this rating?". The rating is deleted for good and stops counting in feedback filters. With no matches it reads that apps send ratings with POST /eval/feedback and the request id the Logs page shows, about ten seconds after the response.
Red team tab
| Column | Meaning |
|---|---|
| Run | The run name and id |
| Status | The same badges as eval runs |
| Target model | The model under attack |
| Vulnerabilities | How many vulnerabilities were tested. Hover for their names. |
| Pass rate | The share of attacks the target withstood |
| Created | When the run was created |
The All statuses filter narrows the list. Proxy admins get New red team run. The row menu has View results, and for proxy admins Cancel on an active run or Delete on a finished one, with the same confirmations as eval runs. The open run is kept in the URL as ?redteam_run=.
New red team run dialog
The simulator writes adversarial prompts for each vulnerability, the target answers them, and the evaluation model decides whether each answer held up.
| Control | Type | What it does |
|---|---|---|
| Target model | Dropdown, required | The model under attack. |
| Simulator model | Dropdown, required | Writes the attacks. |
| Evaluation model | Dropdown, required | Judges each answer. |
| Framework preset | Dropdown | Tests the model against a published risk framework instead of vulnerabilities you pick, so you can show an auditor which categories it held up against. None, choose vulnerabilities yourself (default) keeps the pickers below. A category preset such as MITRE ATLAS or EU Artificial Intelligence Act hides them and shows a summary of the vulnerabilities, types and attacks the run will probe. It costs more model calls than a short hand-picked run. Aegis and BeaverTails show Dataset prompts instead. Only proxy admins start runs. See framework presets. |
| Dataset prompts | Text area, Aegis and BeaverTails only, required | One JSON object per line with the prompt as input and its harm category as category, up to 200. Each prompt is sent to the target exactly as written and the evaluation model checks the answer for that harm. Nothing is downloaded from the internet. A bad line shows, for example, "Line 2 is not a JSON object with an input and a category". |
| Vulnerabilities | Checkboxes, at least one required without a preset | Ticking a vulnerability shows its types, and each ticked vulnerability needs at least one type. |
| Attacks | Checkboxes, without a preset | Each attack is marked Single turn or Multi turn. Leave every attack unticked to let the proxy choose. |
| Target purpose | Text area | Optional. What the target model is meant to do, so attacks stay relevant. |
| Attacks per vulnerability | Number field | A whole number of 1 or more. Empty uses the proxy default. |
| Run name | Text field | Optional. |
| Concurrency | Number field | A whole number of 1 or more. Empty uses the proxy default. |
| Start red team run | Button | Starts the run. Disabled when red teaming is not available. |
When the proxy cannot run red teaming, the dialog shows "Red teaming is not available on this proxy" and asks you to install the evals extra.
Red team run detail
The detail page shows the overall pass rate and how many attacks were withstood, with the run's average CVSS score and a severity badge (None, Low, Medium, High or Critical) and its Worst finding score and badge once the run completed, then Target, Framework preset ("None" when the run picked its own vulnerabilities), Simulator, Evaluator, Attacks ("Proxy default" when none were picked), Per vulnerability, Purpose, Created by, Created, Started and Completed. Tables break the pass rate down by vulnerability and type, weakest first, with a Worst CVSS column that shows the highest score of that type and its badge, by attack, and by framework category across the OWASP, NIST AI RMF, MITRE ATLAS and EU AI Act frameworks. A category with failures is highlighted, and the framework table reads "No framework category lists the vulnerabilities scored so far." when none applies. The results table has Attack input, Vulnerability, Attack, Outcome (Withstood or Broken), Score, Severity and Error, with filters All vulnerabilities, All attacks and All outcomes. Expanding a row shows the attack input, target output, score, CVSS score with severity, reason and error. Red team frameworks and severity explains how the categories and scores are derived.
Empty, error and disabled states
Each table has its own empty message, for example "No datasets yet. Create one from pasted rows or a file.", "No runs yet. Start one against a dataset.", "No remote scorers yet. Register one to grade outputs with your own code.", "No schedules yet. Create one to run an eval on a cron and get alerted on regressions.", "No online rules yet. Create one to score a sample of live traffic." and "No red team runs yet. Start one against a model.". The datasets message mentions creating one even for users who cannot.
A user who is not a proxy admin or proxy admin viewer first sees "Checking whether your role can read evals..." while the page asks the gateway for one dataset. If the gateway refuses, the page reads "Your role cannot read evals. Ask a proxy admin for a custom role with evals.read to see your team's datasets and runs, or evals.write to change them.".
Detail views that fail to load show "Could not load the run" or "Could not load the items" with the gateway's message, or say the run or dataset was not found. Dialogs show the gateway's error in an alert and keep your input, so you can fix it and try again. While a dialog is saving, Cancel is disabled and the dialog cannot be closed. Enable switches are disabled for users who cannot change evals.
Data on the page loads only when the session belongs to a premium (licensed) proxy. If the license check could not run, the page still opens, and lists stay empty until the gateway answers.
Differences by role and license
| Who | What they get |
|---|---|
| Proxy admin | Every tab and every create, edit, run and delete control |
| Proxy admin viewer | Every tab in the nav. The gateway refuses their changes. |
Custom role with evals.read or evals.write | No nav entry, but /ui/evals opens for them. Datasets, Runs, Schedules, Review, Feedback and Red team, limited to their own team's records. No create or change controls in the page, a role with evals.write changes records through the API. |
| Org admin, internal user, internal viewer without such a role | The "Your role cannot read evals" notice |
A proxy admin viewer's session role is "Admin Viewer", so they see every tab read-only, with no create, edit, run or delete control. The gateway refuses those writes from a viewer too. Changes are allowed only for proxy admins and for custom roles with evals.write, and starting a run, creating a dataset from logs or sessions, and adding review items from logs or shadow attempts need a proxy admin.
A few settings have no control on this page and are set through the API: a rule's daily_remote_call_cap, a remote scorer's self_hosted flag, and a schedule that draws a rolling window of logs with lookback_seconds instead of a fixed window. Send them with the requests Evals shows, and the page keeps them when you edit the object.
The whole page needs the Evals and red teaming license feature, both in the UI and on every eval route of the gateway. Red teaming and the scorers marked "needs the evals extra" also need the evals extra installed on the proxy.
Errors
| What you see | What it means | Fix |
|---|---|---|
| "Evals needs a Spanway Enterprise license" | The license lacks the Evals and red teaming feature. The gateway answers 403 on every eval route. | Add the feature to the license, or ask sales@spanway.ai for a trial. |
| "Your role cannot read evals" | The user is not a proxy admin or admin viewer and has no custom role with evals.read. | Ask a proxy admin for a custom role, see the Roles page. |
"Could not start the run" with send exactly one of dataset_id and dataset_name (422) | The request named both or neither. | Pick one dataset. |
"Could not start the run" with models needs at least one model | No model was picked for a mode that calls models. | Pick at least one model, or choose Score logged conversation. |
| "Use a template or a prompt ID, not both" | The form has a system prompt or user template and a prompt ID. | Clear one of them. |
a dataset named '<name>' already exists (409) | Dataset names are unique. | Choose another name, or open the existing dataset. |
dataset_id=<id> not found or run_id=<id> not found (404) | The id is wrong, deleted, or belongs to a team the caller cannot read. | Check the id in the list. |
| A scorer marked "needs the evals extra" is disabled | The gateway image was built without the optional eval scorers. | Use a gateway image that includes them, or pick a rule scorer such as contains. |
playground is busy (429) | The replica already runs four playground requests. | Wait a few seconds and try again. |
Logs
The page writes no log lines of its own. Schedules and online rules log on the gateway, as the Evals logs list, and every change made on this page is in the audit log under the eval tables, see Permissions and audit.