Evaluation
Evaluation lets you build sets of test questions and run them against Cortex, so you can measure how well it finds the right answers.
The page is titled Evaluation Harness. Its subtitle reads "Test retrieval quality, measure precision/recall, and gate deployment on quality metrics."
How it works
- You make a dataset: a named set of test cases. Each case is a question with the answer you expect.
- You run the dataset. Cortex answers each question and compares the result with what you expected.
- You read the run: an overall pass rate, plus precision, recall and F1 for each case.
Datasets tab
The tab shows a count. With none, the page says "No datasets" and "Create a dataset with test Q&A pairs to measure retrieval quality."
| Column | What it shows |
|---|---|
| Dataset | The name, with the description under it |
| Cases | How many test cases it has |
| Actions | Edit cases, Run eval and a trash button to delete |
Create a dataset
Click New dataset
The button is at the top right.
Name it
Dataset name is required. Description is optional.
Create and add cases
Click Create & add cases. The test case editor opens straight away.
Add test cases
The editor window is titled "Test cases" with the dataset name. It lists your cases and shows the case count at the bottom. Click Add case to open the form.
| Field | Notes |
|---|---|
| Question | Required |
| Expected answer | Required. Used for scoring |
| Context | Optional hints for the retriever |
| Expected citation IDs | Optional, comma-separated, for example mem-abc123, mem-def456 |
| Tags | Optional, comma-separated, for example factual, reasoning |
Click Add case under the form to add it to the list. Use the x on a case to remove it.
Run an evaluation
Click Run eval on a dataset. The page shows "Eval complete" and switches to the Eval runs tab. Every run asks for the top 5 results for each question. There is no setting for this number on the page.
Delete a dataset
Click the trash button and confirm. The dataset and its test cases are deleted.
Eval runs tab
Use the Dataset filter list to show runs for one dataset. The default is All datasets. With none, the page says "No eval runs yet. Run an evaluation from the Datasets tab."
| Column | What it shows |
|---|---|
| Dataset | The dataset name |
| Pass rate | A percentage and a bar. Sortable |
| Passed | For example "7/10 passed" in a coloured pill |
| Status | The run status |
| Run at | When it ran |
The Passed pill is green at 80 percent or more, amber from 50 up to 80 percent, and red under 50 percent.
Run details
Click a run to open its side panel.
| Field | Meaning |
|---|---|
| Pass rate | Overall percentage, coloured the same way |
| Passed | Passed cases out of total |
| Failed | Failed case count |
| Status and Completed | Run state and finish time |
| Run ID | The unique ID of the run |
Under Case results each case shows a pass or fail mark, the question, and three scores: P (precision), R (recall) and F1, each with two decimals. Precision is how much of what Cortex found was right. Recall is how much of what it should have found it actually found. F1 combines the two. If a run has no per-case results, the panel says "No case results".
Gaps to know about
- You cannot rename a dataset or change its description after creating it.
- The page shows results but does not itself block a deployment. The subtitle mentions gating, but no gate setting appears here.