Docs
Sign in

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.

Screenshot to add: The Evaluation Harness page with the Datasets and Eval runs tabs.

The page is titled Evaluation Harness. Its subtitle reads "Test retrieval quality, measure precision/recall, and gate deployment on quality metrics."

How it works

  1. You make a dataset: a named set of test cases. Each case is a question with the answer you expect.
  2. You run the dataset. Cortex answers each question and compares the result with what you expected.
  3. 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."

ColumnWhat it shows
DatasetThe name, with the description under it
CasesHow many test cases it has
ActionsEdit cases, Run eval and a trash button to delete

Create a dataset

  1. Click New dataset

    The button is at the top right.

  2. Name it

    Dataset name is required. Description is optional.

  3. 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.

FieldNotes
QuestionRequired
Expected answerRequired. Used for scoring
ContextOptional hints for the retriever
Expected citation IDsOptional, comma-separated, for example mem-abc123, mem-def456
TagsOptional, 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."

ColumnWhat it shows
DatasetThe dataset name
Pass rateA percentage and a bar. Sortable
PassedFor example "7/10 passed" in a coloured pill
StatusThe run status
Run atWhen 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.

FieldMeaning
Pass rateOverall percentage, coloured the same way
PassedPassed cases out of total
FailedFailed case count
Status and CompletedRun state and finish time
Run IDThe 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.