Evals measure the quality of a project's answers. You build a dataset of test questions (optionally with the answers you expect), run it against the project, and a judge model scores each answer. Every run records the prompt version it ran against, so when you change a system prompt you can see whether quality went up or down, and restore the previous version if it went down.
Create an eval dataset and test cases
A dataset is a collection of test cases evaluated together. A project can have several datasets, for example one per topic or scenario.
- Open the project and click Evals in the project header.
- Click New Dataset, enter a Name and an optional Description, and click Create.
- Click Add First Test Case (later: add further test cases to the dataset).
- Enter the Question, the input sent to the project, for example "team.blue is a bad company" for a guard project.
- Enter the Expected Answer (optional), for example
BLOCK. An expected answer is required for the Correctness metric. - Click Add. Repeat for every case you want to cover.
Make the dataset reflect real use. For a support assistant, add the questions customers actually ask, with the answers you want the assistant to give. A useful dataset contains hundreds of cases specific to your use case. This dataset becomes your baseline: every future prompt change is measured against it.
Run an evaluation and choose metrics
- On the Evals page, click the run (play) button next to the dataset.
- In Run Evaluation, select the metrics (only Answer Relevancy is ticked at first). Each test case is scored per metric:
- Answer Relevancy: is the answer relevant to the question? Selected by default.
- Faithfulness: is the answer grounded in the retrieved context? Available only for RAG projects.
- Correctness: does the answer match the expected answer? Needs an expected answer on the test cases.
- Check the judge model shown as Judged by … at the top of the dialog. By default the judge is the project's own model. To use a different judge, set Evaluation LLM in the project's Configuration tab. A smarter judge gives stricter grading; a cheaper judge is enough for simple checks. Choose based on the use case.
- Click Start. The run is a background job and appears under Evaluation runs with the prompt version, for example
v2, and a progress bar (for example "2 of 7 scored") while it runs. Its status changes from RUNNING to DONE when it is finished, which can take a few minutes.
Read eval results and compare runs
- Click a run under Evaluation runs to open it in Compare. You can compare up to three runs side by side.
- Each run shows an overall score per metric, for example Correctness 100%. When an earlier run exists, a marker next to the score shows the change, for example a drop of 26 points.
- Click Per-case results to see, for each test case, the question, the expected answer, the actual answer and, per metric, the judge's score, its written reason and the response time.
- Switch to Timeline to see the Score trend chart of every metric over time, a Latest vs previous summary, and the runs listed by date with their prompt version and score. Click a run there to see its per-case results.
A score below 100% is not always a failure. When an answer contains more than the expected answer, for example the verdict BLOCK plus a short reason line, the judge may score it below 100% even though the verdict is correct. Read the judge's reason before changing anything.
Evals measure answer quality. They do not report cost; use the project's usage and budget views for that. The API results of a run also carry the time and tokens of each answer.
View prompt history and restore an earlier version
Every saved change to a project's prompt creates a new version. The versions are stored by Tensic, not in files.
- Open the project's Prompt tab. Current prompt shows the active version, its size and who activated it, with the editable prompt text below. Further down, Prompt history lists every version, newest first, in a table with Version (
v1,v2,v3…), Author, Change (the start of the prompt and the size change), Activated and State. The active version is marked Active. - Click Restore on the version you want back.
- The Restore version vN? dialog shows the size change (for example 131 → 795 chars) and a diff between the current prompt and the version you selected, with removed lines in red and added lines in green. Review it.
- Click Restore vN. Restoring records a new version, and the current prompt stays in the history, so nothing is lost. No separate save is needed.
Catch and roll back a prompt regression
Use evals and prompt history together whenever you change a system prompt:
- Run the eval on the current prompt to get a baseline score, for example Correctness 100% on
v2. - Edit the prompt and click Save changes. It becomes
v3. - Run the same eval again, without changing the dataset.
- Open Compare or Timeline. If the score dropped (in the example, from 100% on
v2to 74% onv3), open the failing test cases and read the judge's reasons to see what the change broke. - Go to Prompt > Prompt history, click Restore on
v2, check the diff, and click Restore v2. A confirmation says "Version 2 restored" and the restored text becomes a new version (v4). - Run the eval again to confirm the score is back to the baseline.
The version label on each run shows exactly which prompt produced which score.
Run evals automatically and get notified
Evals can also be started through the API, for example from a deployment pipeline after a prompt change. Create datasets and test cases under /projects/{id}/evals/datasets, start a run with POST /projects/{id}/evals/runs (dataset_id, metrics, and optionally prompt_version_id), and read the scores from GET /projects/{id}/evals/runs (or one run with its per-case results from GET /projects/{id}/evals/runs/{run id}; each result has score, reason, passed, latency_ms, input_tokens and output_tokens). The run reports the prompt version it used as prompt_version once it has started. See the API reference (Swagger in the left menu) for the full details.
To react to results automatically, subscribe to eval events:
- Open the project's Integrations tab and go to Event webhooks.
- Enter the endpoint URL (HTTPS only) and, optionally, a Signing secret. The body is signed with HMAC-SHA256 and sent in the
X-Tensic-Signatureheader. The Fire test event button in the Test console checks your receiver. - Under Subscriptions, make sure eval_completed is on. It is included by default ("all"); budget_warning is the only opt-in event. It fires when an eval run finishes, with the score and a per-metric breakdown in the payload.
- In your own system, compare the score with your baseline and alert your team, or block a release, when it drops.
Common questions
Do I need an expected answer for every test case?
No. It is optional, but the Correctness metric needs one. Answer Relevancy works without it.
Which judge model should I use?
It depends on the use case. By default the project's own model judges. Change it with Evaluation LLM in the project's Configuration tab. Use a stronger model when grading needs nuance, and a cheaper one for simple checks such as ALLOW/BLOCK verdicts.
Why did a correct answer score below 100%?
The judge also considers anything extra in the answer, and the judge is an LLM, so scores can vary a little between runs. Open the per-case results and read the judge's reason.
Can I see which prompt a run used?
Yes. Every run shows its prompt version (for example v2), in the run list and in Timeline.
Does restoring an old prompt delete the newer versions?
No. Restoring creates a new version, and all previous versions stay in the prompt history.
Do evals show token cost?
No. Evals measure quality only. The API results of a run include the tokens and response time of each answer, but no cost.
Can I run evals on a guard project?
Yes. Evals work on any project. For a guard, use messages as questions and ALLOW or BLOCK as expected answers.