# Frequently asked questions

Short answers about MorganaBench, with links to the full documentation. Each answer is self-contained and says whether it applies to the web UI, the CLI, or both.

The first sections cover concepts and the web UI; the "CLI:" sections cover the command line, starting with [CLI: Getting started](#11-cli-getting-started); the [REST API](#18-rest-api) section covers calling the API directly; and the last sections, starting with [Usage examples and comparisons](#19-overview), are independent of the others and collect usage examples and comparisons from the published DataMorgana (now MorganaBench) papers.

**Concepts and web UI**

- [1. Basics](#1-basics)
- [2. Getting started](#2-getting-started)
- [3. Corpora](#3-corpora)
- [4. Specifications](#4-specifications)
- [5. More Like This (example-driven guidance)](#5-more-like-this-example-driven-guidance)
- [6. Benchmarks](#6-benchmarks)
- [7. Running agents and evaluations](#7-running-agents-and-evaluations)
- [8. Metrics](#8-metrics)
- [9. Troubleshooting and limits](#9-troubleshooting-and-limits)
- [10. Glossary](#10-glossary)

**Command line (CLI) and REST API**

- [11. CLI: Getting started](#11-cli-getting-started)
- [12. CLI: Corpora](#12-cli-corpora)
- [13. CLI: Specifications](#13-cli-specifications)
- [14. CLI: Benchmarks](#14-cli-benchmarks)
- [15. CLI: Evaluations](#15-cli-evaluations)
- [16. CLI: Metrics](#16-cli-metrics)
- [17. CLI: Troubleshooting and limits](#17-cli-troubleshooting-and-limits)
- [18. REST API](#18-rest-api)

**Usage examples and comparisons**

- [19. Overview](#19-overview)
- [20. Other tools](#20-other-tools)
- [21. Quality and diversity](#21-quality-and-diversity)
- [22. Configuration and generation](#22-configuration-and-generation)
- [23. LiveRAG Challenge](#23-liverag-challenge)

## 1. Basics

### 1.1 What is MorganaBench?
<!-- src: index.md#morganabench-documentation, system-overview.md#at-a-glance -->
MorganaBench is an AI benchmark generation and evaluation platform. You build a benchmark from your own data and score how well your AI agent performs on it. The benchmark is custom in two senses: it is grounded in your agent's own resources, and it covers the scenarios you decide are worth testing.

See also: [Overview](system-overview.md#at-a-glance)

### 1.2 What is the MorganaBench pipeline?
<!-- src: index.md#the-pipeline, system-overview.md#at-a-glance, ui-guide/index.md#pipeline-overview -->
The pipeline is Corpus, then Guidance, then Benchmark Generation, then Evaluation. You provide documents or tool definitions (the corpus), define what test cases to generate (guidance), generate a benchmark by combining the two, and evaluate your agent by submitting its output for the benchmark and choosing the metrics to score it with.

See also: [The Pipeline](index.md#the-pipeline)

### 1.3 What is Guidance?
<!-- src: ui-guide/index.md#pipeline-overview, ui-guide/benchmarks.md#step-2-guidance, index.md#the-pipeline, system-overview.md#starting-from-examples-instead, reference/specifications.md#specifications, reference/more-like-this.md#more-like-this -->
Guidance is how you tell MorganaBench what test cases to generate for a benchmark. It comes in two interchangeable forms, and every benchmark uses exactly one: a specification (a scenario description plus categories and labels) or a seed of example requests (More Like This).

See also: [UI Guide: Pipeline Overview](ui-guide/index.md#pipeline-overview)

### 1.4 What kinds of benchmarks can MorganaBench generate?
<!-- src: index.md#the-pipeline, index.md#use-cases -->
Two kinds: agentic search benchmarks, generated from document corpora (by specification or from example seeds), and function-calling benchmarks, generated from MCP-formatted tool definitions.

See also: [Use cases](index.md#use-cases)

### 1.5 Can I evaluate my agent on a benchmark I already have?
<!-- src: index.md#use-cases -->
Yes. MorganaBench can act as an evaluation service for your agent on your own benchmark, using either the web UI or the CLI. You can also evaluate on benchmarks that MorganaBench generates for you.

See also: [Use cases](index.md#use-cases)

### 1.6 Where do I do what in the web interface?
<!-- src: ui-guide/index.md#sidebar-navigation, ui-guide/index.md#admin-only-sections, ui-guide/index.md#usage, ui-guide/index.md#assistant -->
Each sidebar item serves one part of the workflow. **Sandbox** tries guidance (a specification or seed examples) on a small sample of corpus content before you commit to a full benchmark. **Corpora** holds your document collections and tool definitions, which you can import, view and delete. **Specifications** is your library of reusable specifications. **Benchmarks** generates a test set by combining a corpus with guidance. **Metrics** is where you browse the scoring metrics and create custom ones. **Evaluations** scores your agent's output against a benchmark with the metrics you choose. **Usage** tracks your organization's quota consumption and usage statistics. Admins also see Users, Organizations, Limits, Background Jobs, Previews and Costs. On every page, the sparkle button in the bottom-right corner opens the Assistant.

See also: [UI Guide: Sidebar Navigation](ui-guide/index.md#sidebar-navigation), [UI Guide: Admin-Only Sections](ui-guide/index.md#admin-only-sections)

### 1.7 What is the Assistant in the web UI?
<!-- src: ui-guide/index.md#assistant -->
A chat panel opened from the sparkle button in the bottom-right corner of every page. It answers questions about how MorganaBench works and where to find things in the UI, and its answers can link to the relevant page. It cannot see your corpora, benchmarks, evaluations, costs or settings and cannot act for you; each conversation is private to you and kept between visits, and **New chat** starts a new one.

See also: [UI Guide: Assistant](ui-guide/index.md#assistant)

## 2. Getting started

### 2.1 How do I get started in the web UI?
<!-- src: getting-started.md#ui, ui-guide/example-resources.md -->
Open the MorganaBench application in your browser, log in with your credentials, and use the Sandbox to test benchmark generation against a small sample of documents or tool definitions before working with your own corpora. To see the full workflow on ready-made data, open the example resources. From the UI you can manage corpora, edit specifications, generate benchmarks, evaluate your agent and view results.

See also: [Getting Started: UI](getting-started.md#ui), [Example Resources](ui-guide/example-resources.md)

### 2.2 How can I try MorganaBench without my own data?
<!-- src: ui-guide/example-resources.md -->
Every organization has read-only example resources: a Documents corpus, specification, benchmark and evaluation (a short astronomy corpus) and the same four for Tools (an email server's tools). Find them by the **Example** badge on the Corpora, Specifications, Benchmarks and Evaluations pages. You can't edit or delete them, but you can use them as inputs. A good order is: read the example benchmark, open the guidance behind it, read the example evaluation, try an example specification in the Sandbox, create your own benchmark from an example corpus and specification, then evaluate your own agent on an example benchmark. Anything you create from an example belongs to your organization and can be deleted like any other.

See also: [Example Resources](ui-guide/example-resources.md#what-to-try-first)

### 2.3 What is in the example corpus, benchmark and evaluation?
<!-- src: ui-guide/example-resources.md#documents-examples, ui-guide/example-resources.md#tools-examples -->
The Documents examples are built on two astronomy articles (star formation and molecular clouds): a specification with four categories, a benchmark of 10 cases generated from it (a spec-based benchmark, not a More Like This one), and an evaluation of a sample agent on that benchmark with six metrics. The Tools examples are built on six email tool definitions (such as `sendMail` and `searchEmails`): a specification with three categories, a benchmark of 10 single-turn requests and an evaluation scored with `tool_call_correctness`. The examples cannot be edited or deleted.

See also: [Example Resources](ui-guide/example-resources.md)

### 2.4 What do the example evaluations show?
<!-- src: ui-guide/example-resources.md#example-documents-evaluation, ui-guide/example-resources.md#example-tools-evaluation -->
In the Documents example, the sample agent usually gives relevant answers that match the expected ground truth, but it is often not faithful to the retrieved context, contradicts the ground truth in 2 of 10 cases and once refuses a request it was expected to answer. In the Tools example, the mean `tool_call_correctness` is 0.60: the agent made the right call with matching arguments in 6 of 10 requests. Open a single case to see its per-case scores. With only 10 cases, no category slice is flagged as significantly worse, so the Issues tab has nothing to report in the Documents example, while the Segments tab still breaks the scores down by category.

See also: [Example Resources: Documents Evaluation](ui-guide/example-resources.md#example-documents-evaluation), [Example Resources: Tools Evaluation](ui-guide/example-resources.md#example-tools-evaluation)

## 3. Corpora

### 3.1 What is a corpus, and what types are there?
<!-- src: system-overview.md#corpora-the-agents-resources, ui-guide/corpora.md#corpus-types, ui-guide/corpora.md#corpora -->
A corpus is the set of resources your agent has access to, and it is the knowledge source for benchmark generation. A Documents corpus is the knowledge base for search benchmarks (does the agent answer correctly from the documents); a Tools corpus holds function definitions for tool-calling benchmarks (does the agent pick the right tool with correct parameters). Providing your agent's own corpus is what makes the benchmark custom to your agent.

See also: [UI Guide: Corpus Types](ui-guide/corpora.md#corpus-types)

### 3.2 How do I create a corpus in the web UI?
<!-- src: ui-guide/corpora.md#creating-a-corpus, _partials/search-bmark-common.md#import-your-corpus -->
Go to Corpora, click Create Corpus, choose Documents or Tools, enter a Name and optional Description, add your files, configure columns if you chose Parquet, and click Submit for processing. A progress display shows the processing stage, and the page redirects to the corpus detail view when processing completes. The name is auto-suggested from your filename; if it already exists, an alternative unique name is suggested in amber, which you can accept or replace before submitting again.

See also: [UI Guide: Creating a Corpus](ui-guide/corpora.md#creating-a-corpus)

### 3.3 What file formats can a Documents corpus use?
<!-- src: ui-guide/corpora.md#documents-corpus, ui-guide/corpora.md#supported-file-types -->
Provide exactly one of: a Parquet file (each row is one document), several individual files, or a ZIP/TGZ archive; these cannot be combined. In files and archives, `.txt` and `.md` are used directly and `.pdf`, `.docx` and `.pptx` are converted to Markdown, with each file becoming one document and nested directories allowed in archives. Files with other extensions are skipped and reported in the ingestion results, and file names and folder structure do not affect benchmark generation.

See also: [UI Guide: Supported File Types](ui-guide/corpora.md#supported-file-types)

### 3.4 How do I use a Parquet file for a Documents corpus in the web UI?
<!-- src: ui-guide/corpora.md#parquet-column-configuration -->
Each row becomes one document. A column panel detects your columns and pre-selects `content` and `id` if present; you must choose the content column, while id is optional and auto-generates sequential IDs (1, 2, 3...) if omitted.

See also: [UI Guide: Parquet Column Configuration](ui-guide/corpora.md#parquet-column-configuration)

### 3.5 What format must tool definitions have in a Tools corpus?
<!-- src: ui-guide/corpora.md#tool-definition-format -->
Tools follow the MCP tools/list schema; each needs `name` (unique identifier), `description` (natural-language text the LLM reads to decide whether to call the tool) and `inputSchema` (a JSON Schema object for the parameters). Four JSON layouts are accepted: the MCP `{"tools": [...]}` response (recommended), a bare array, a single tool object, or a JSON-RPC wrapper (`{"result": {"tools": [...]}}`).

See also: [UI Guide: Tool Definition Format](ui-guide/corpora.md#tool-definition-format)

### 3.6 Can I combine several JSON files into one Tools corpus?
<!-- src: ui-guide/corpora.md#tools-corpus -->
Yes. Provide a single JSON file, several `.json` files, or one ZIP/TGZ archive of `.json` files; all tools are merged into one corpus, which is useful for combining tool sets from several MCPs. File names are discarded and tools are flattened into one list, except that when two files define a tool with the same name, the file name is prefixed (for example `slack__search` and `github__search`).

See also: [UI Guide: Tools Corpus](ui-guide/corpora.md#tools-corpus)

### 3.7 What are the size and length limits for corpora?
<!-- src: ui-guide/corpora.md#limits -->
Documents corpus: 350 MB; Tools corpus: 10 MB; corpus name: 255 characters; description: 1,000 characters; each document: 100,000 characters (longer documents are auto-split).

See also: [UI Guide: Limits](ui-guide/corpora.md#limits)

### 3.8 What are the corpus processing statuses?
<!-- src: ui-guide/corpora.md#processing-status, ui-guide/corpora.md#corpora-list -->
A corpus moves through `pending` (queued), `uploaded` (files received, ingestion about to begin), `preparing`, `copying` (files copied to internal storage) and `processing` (documents parsed, converted and indexed), then ends as `ready` (usable for benchmark generation) or `failed` (see the error messages on the detail page). In the UI, the detail page shows per-stage progress bars and the list shows "Processing N%" in the status badge, auto-refreshing while any corpus is processing.

See also: [UI Guide: Processing Status](ui-guide/corpora.md#processing-status)

### 3.9 How do I browse, search and sort my corpora in the web UI?
<!-- src: ui-guide/corpora.md#corpora-list -->
The Corpora page has a list view (sortable columns) and a grid view (cards), toggled from the filter bar and remembered across sessions, plus Search by name, a Status filter and Sort by name or creation date.

See also: [UI Guide: Corpora List](ui-guide/corpora.md#corpora-list)

### 3.10 What does the corpus detail page show?
<!-- src: ui-guide/corpora.md#corpus-detail-page -->
Status with progress bars, an inline-editable name and description (pencil icon), metadata (Corpus ID, type, creation date), ingestion results ("Ready documents: X/Y", with a warning for skipped unsupported files or error messages on failure), Download Raw Data, Create Benchmark (enabled only when Ready) and a table of Linked Benchmarks.

See also: [UI Guide: Corpus Detail Page](ui-guide/corpora.md#corpus-detail-page)

### 3.11 How do I rename or download a corpus in the web UI?
<!-- src: ui-guide/corpora.md#corpus-detail-page -->
Use the pencil icon to edit the name and description, and Download Raw Data to get the original file.

See also: [UI Guide: Corpus Detail Page](ui-guide/corpora.md#corpus-detail-page)

### 3.12 How do I delete a corpus in the web UI, and who can?
<!-- src: ui-guide/corpora.md#deleting-a-corpus -->
Open the detail page and click Delete Corpus. Deletion is immediate and permanent. Non-admin users can only delete corpora in Ready or Failed status, admins in any status (including still processing), and example (pre-loaded) corpora can never be deleted. Linked benchmarks are not deleted, but they can no longer reference the source data.

See also: [UI Guide: Deleting a Corpus](ui-guide/corpora.md#deleting-a-corpus)

### 3.13 Why did my corpus fail?
<!-- src: ui-guide/corpora.md#troubleshooting-failed-corpora -->
Common causes are an archive with no valid files (only unsupported extensions), JSON syntax errors in tools files, a Parquet file missing the specified content column, or empty content in all rows. The error messages on the detail page say what went wrong; correct your file and create a new corpus.

See also: [UI Guide: Troubleshooting Failed Corpora](ui-guide/corpora.md#troubleshooting-failed-corpora)

### 3.14 What should I do if a corpus is stuck processing?
<!-- src: ui-guide/corpora.md#troubleshooting-failed-corpora, ui-guide/corpora.md#deleting-a-corpus -->
Contact your administrator: a non-admin user cannot delete a corpus that has not finished processing, so an admin must handle it. Also contact them if you hit organization-level limits such as the maximum number of corpora.

See also: [UI Guide: Troubleshooting Failed Corpora](ui-guide/corpora.md#troubleshooting-failed-corpora)

## 4. Specifications

### 4.1 What is a specification?
<!-- src: system-overview.md#specifications-controlling-the-mix, ui-guide/specifications.md#managing-specifications, reference/specifications.md#specifications -->
A specification is the category-driven form of guidance: a scenario description shared by every generated test case, plus categories of variation whose weighted labels shape the mix of cases. Where the corpus supplies the material, the specification shapes the cases built from it.

See also: [Overview: Specifications](system-overview.md#specifications-controlling-the-mix)

### 4.2 What is a scenario description?
<!-- src: system-overview.md#specifications-controlling-the-mix, system-overview.md#starting-from-examples-instead, reference/specifications.md#top-level-fields, use-cases/search-bmark-doc-spec.md#customize-the-benchmark-specification, ui-guide/specifications.md#specification-editor -->
A scenario description is free text stating what holds for every generated test case: the agent, who it serves, and what it is for. For an illustration, see the example in "What is the difference between the scenario description and a category?".

See also: [Specifications: Top-level fields](reference/specifications.md#top-level-fields)

### 4.3 What are categories, labels and weights?
<!-- src: system-overview.md#specifications-controlling-the-mix, reference/specifications.md#categories, use-cases/search-bmark-doc-spec.md#customize-the-benchmark-specification -->
A category is one axis along which test cases should vary, such as question topic. Its labels name the alternatives (for example billing or shipping), and the label weights (probabilities) set how often each is drawn; every generated turn draws one label per category. See the example in "What is the difference between the scenario description and a category?".

See also: [Specifications: Categories](reference/specifications.md#categories)

### 4.4 What is the difference between the scenario description and a category?
<!-- src: reference/specifications.md#top-level-fields, reference/specifications.md#categories, reference/specifications.md#example, use-cases/search-bmark-doc-spec.md#customize-the-benchmark-specification -->
The scenario description states what is true of **every** case in the benchmark: the agent, who it serves and what it is for. A category is one axis along which test cases should **differ**: its labels name the alternatives, and their weights set how often each one is drawn (one label per category for every generated turn).

For example, for a customer-support assistant:

```yaml
scenario_description: |
  The conversation is between a user and a customer-support assistant whose
  answers are grounded in the product knowledge base.

categories:
  - name: question-topic
    description: The part of the product the question is about.
    labels:
      - name: billing
        description: a question about invoices, charges, or refunds.
        probability: 0.4
      - name: shipping
        description: a question about delivery times, tracking, or shipping costs.
        probability: 0.3
      - name: account-settings
        description: a question about account settings, notifications, or privacy preferences.
        probability: 0.3
```

The scenario description holds what never changes (it is a support assistant answering from a knowledge base). The topic changes from question to question, so it is a category, and the weights make about 40% of turns billing questions, 30% shipping and 30% account settings.

A common mistake is putting a variation in the scenario description. In the use-case walkthrough, "Users will ask questions either in English or Spanish" describes a variation, so it belongs in a category with the labels English and Spanish. "The answer is always in the user's language" holds for every test case, so it stays in the scenario description. The **Review** button in the web UI flags this mistake and proposes the missing category.

See also: [Specifications reference: Top-level fields](reference/specifications.md#top-level-fields), [Specifications reference: Categories](reference/specifications.md#categories), [Customize the benchmark specification](use-cases/search-bmark-doc-spec.md#customize-the-benchmark-specification)

### 4.5 What can a category express, and how do I make sure my benchmark covers certain topics or user types?
<!-- src: system-overview.md#specifications-controlling-the-mix -->
A category can express any kind of variation: style (phrasing, verbosity, expected response, grammatical correctness), user types, or topic. To cover certain topics or user types, add a category whose labels are those topics or user types; topic labels steer part of the benchmark toward those topics within your corpus. See the example in "What is the difference between the scenario description and a category?".

See also: [Overview: Specifications](system-overview.md#specifications-controlling-the-mix)

### 4.6 How do I create a Library specification in the UI?
<!-- src: ui-guide/specifications.md#creating-a-specification, ui-guide/specifications.md#managing-specifications -->
On the Specifications page (your Library of reusable specifications), click Create, enter a Name and Description, select the Corpus Type, define the scenario and categories in the editor, and click Save. The Corpus Type is `docs` (RAG benchmarks) or `tools` (tool-calling benchmarks) and decides which corpora the specification can be used with.

See also: [UI Guide: Creating a Specification](ui-guide/specifications.md#creating-a-specification)

### 4.7 What does the specification editor do in the web UI, and what is the library browser?
<!-- src: ui-guide/specifications.md#specification-editor, ui-guide/specifications.md#library-browser -->
The editor lets you define the scenario description and categories, validates structure and schema before saving, and shows inline error messages. Its library browser lists pre-built category templates, lets you click one to preview it, and inserts it into your specification as a starting point to customize.

See also: [UI Guide: Library Browser](ui-guide/specifications.md#library-browser)

### 4.8 How do I edit or delete a Library specification in the UI?
<!-- src: ui-guide/specifications.md#editing-existing-specifications, ui-guide/specifications.md#deleting-a-specification -->
Open a specification from the list to change its name, description and content, or open its detail view and click Delete. Example (pre-loaded) specifications cannot be deleted.

See also: [UI Guide: Deleting a Specification](ui-guide/specifications.md#deleting-a-specification)

### 4.9 What statuses can a saved specification have?
<!-- src: reference/specifications.md#statuses -->
A saved specification is `ready` (valid and available) from the moment it is created and stays `ready` through edits, because invalid YAML is rejected rather than stored. Deletion is soft: the row is marked `deleted` and hidden from the Specifications page. `pending` and `failed` are reserved values accepted as list filters, but nothing produces them, and a benchmark's own specification has no status.

See also: [Specifications: Statuses](reference/specifications.md#statuses)

### 4.10 How do I set up the specification when creating a benchmark in the web UI?
<!-- src: ui-guide/specifications.md#creating-a-benchmark-from-a-specification, ui-guide/benchmarks.md#step-2-guidance, use-cases/search-bmark-doc-spec.md#customize-the-benchmark-specification -->
In the benchmark wizard, set up the specification like this:

1. In the Guidance step, choose **By Specification** and continue. The specification editor opens with the default specification for your corpus type, which you can use as it is.
2. Edit it if you want to tailor it to your agent: change the scenario description, categories and labels directly in the editor. Or click **Load** in the editor header to switch to the Default Specification or to a specification you saved earlier in your Library (your collection of reusable specifications).
3. Optionally click **Review**, which checks the specification against the guidelines and proposes fixes, and **Preview**, which generates sample test cases so you can check the result before the full run.
4. Click **Continue to Generation**.

Click **Save** in the editor header to store your edits in the Library for reuse. The specification you submit is copied onto the new benchmark, so editing or deleting Library specifications later does not change existing benchmarks.

See also: [UI Guide: Creating a Benchmark from a Specification](ui-guide/specifications.md#creating-a-benchmark-from-a-specification), [Use case: Customize the benchmark specification](use-cases/search-bmark-doc-spec.md#customize-the-benchmark-specification)

### 4.11 Does editing a Library specification change existing benchmarks?
<!-- src: reference/specifications.md#snapshots, ui-guide/specifications.md#creating-a-benchmark-from-a-specification -->
No. Every benchmark snapshots its specification YAML when it is created (whether authored from scratch, loaded from a Library specification, or loaded and edited), so later edits or deletion of the Library specification never reach benchmarks already generated.

See also: [Specifications: Snapshots](reference/specifications.md#snapshots)

### 4.12 How do I see the guidance a benchmark was generated from in the web UI?
<!-- src: ui-guide/specifications.md#viewing-a-benchmarks-applied-guidance, ui-guide/benchmarks.md#benchmark-detail-page, reference/specifications.md#snapshots -->
Open the benchmark and, in the Guidance field, click View specification (View seed for a seed-backed benchmark, whose page is titled Seed Details), or go to `/benchmark/:id/specification`. The read-only viewer shows the guidance exactly as at generation time: scenario description, categories, labels and percentages, or the seed examples.

See also: [UI Guide: Viewing a Benchmark's Applied Guidance](ui-guide/specifications.md#viewing-a-benchmarks-applied-guidance)

### 4.13 How do I save a benchmark's specification to the Library in the web UI?
<!-- src: ui-guide/specifications.md#viewing-a-benchmarks-applied-guidance, reference/specifications.md#snapshots -->
On a specification snapshot, click Save to Library, either as a new Library specification or over an existing one. If one with that name exists you are asked to pick a different name or overwrite it; overwriting only updates the template for future use, and generated benchmarks keep their own snapshots.

See also: [UI Guide: Viewing a Benchmark's Applied Guidance](ui-guide/specifications.md#viewing-a-benchmarks-applied-guidance)

### 4.14 Can I write a specification in the UI, or only as YAML?
<!-- src: reference/specifications.md#specifications -->
You can author it in the specification editor in the UI, or as YAML through the CLI or API. The editor surfaces only the common fields, so fields marked "YAML only" (such as `scope`, `transitions`, `resource_selection_policy`, `benchmark_acceptance_criteria` and `forbidden_label_combinations`) can be set only outside the UI.

See also: [Specifications](reference/specifications.md#specifications)

### 4.15 Which top-level fields does a specification have?
<!-- src: reference/specifications.md#top-level-fields -->
`scenario_description` and `number_of_turns_distribution` are required. `categories` is optional, and `benchmark_acceptance_criteria` and `forbidden_label_combinations` are optional and YAML only.

See also: [Specifications: Top-level fields](reference/specifications.md#top-level-fields)

### 4.16 Is a specification without categories valid?
<!-- src: reference/specifications.md#top-level-fields -->
Yes. Without categories, conversations vary as the corpus and MorganaBench vary them rather than in stated proportions. A new specification started in the UI is pre-populated with default categories for the corpus type, which you can edit or remove.

See also: [Specifications: Top-level fields](reference/specifications.md#top-level-fields)

### 4.17 Which specification fields affect benchmark quality the most?
<!-- src: reference/specifications.md#specifications -->
Three free-text fields reach MorganaBench verbatim as instructions: `scenario_description`, each label's `description`, and each acceptance-criteria aspect's `description`. Write them as clear, explicit instructions.

See also: [Specifications: Writing good specifications](reference/specifications.md#writing-good-specifications)

### 4.18 What is `number_of_turns_distribution`, and what is its default?
<!-- src: reference/specifications.md#top-level-fields, reference/specifications.md#turns -->
It is a probability distribution over turns per conversation, for example `{1: 0.5, 2: 0.3, 3: 0.2}`, and the values must sum to `1.0`. For Documents benchmarks each conversation draws its own length from it, and the highest turn count is the longest a conversation may get. The default specification halves the weight of each additional turn: 53.3% one turn, 26.7% two, 13.3% three and 6.7% four.

See also: [Specifications: Turns](reference/specifications.md#turns)

### 4.19 Can tool-use or More Like This benchmarks have multiple turns?
<!-- src: reference/specifications.md#turns, reference/more-like-this.md#constraints -->
No. Tools and More Like This benchmarks are always single-turn; multi-turn conversations are available for Documents benchmarks.

See also: [Specifications: Turns](reference/specifications.md#turns)

### 4.20 What happens to turn counts above my organization's maximum-turns limit?
<!-- src: reference/specifications.md#turns, ui-guide/benchmarks.md#step-3-generation -->
They are never generated: they are dropped from the distribution and the remaining probabilities are re-scaled to sum to `1.0`. In the UI, Max turns (cannot exceed your organization's limit, 4 by default) sets the highest turn count and rebuilds the distribution in the same halving shape.

See also: [Specifications: Turns](reference/specifications.md#turns)

### 4.21 Can I set the turn distribution explicitly in the UI?
<!-- src: reference/specifications.md#turns -->
No. The editor has no field for the distribution, so setting one explicitly is YAML only, and a distribution loaded into the editor is replaced if Max turns changes.

See also: [Specifications: Turns](reference/specifications.md#turns)

### 4.22 What fields does a category have?
<!-- src: reference/specifications.md#categories -->
`name` (unique within the specification), `description`, `labels` and optional `probabilities`, plus the YAML-only `scope` and `transitions`.

See also: [Specifications: Categories](reference/specifications.md#categories)

### 4.23 How do label probabilities work?
<!-- src: reference/specifications.md#categories, reference/specifications.md#labels -->
Set them per label with `probability` (between `0` and `1`) or in the category's `probabilities` map of label name to probability. Labels left out of the map share the remaining probability evenly, a map covering every label must sum to `1.0`, and omitting probabilities entirely makes the category uniform.

See also: [Specifications: Categories](reference/specifications.md#categories)

### 4.24 Is a label drawn per turn or per conversation, and what does `scope` do?
<!-- src: reference/specifications.md#categories -->
By default (`scope: turn`) a label is resampled on each turn, so a multi-turn conversation may take a different label each turn. Set `scope: conversation` (YAML only) to sample once and hold the label for the whole conversation; it cannot be combined with `transitions`.

See also: [Specifications: Categories](reference/specifications.md#categories)

### 4.25 What are `transitions`?
<!-- src: reference/specifications.md#categories, reference/specifications.md#labels -->
`transitions` (YAML only, on a category or label) give per-label probabilities of moving to a given label on the next turn, overriding `probabilities` for follow-up turns. They are valid only with `turn` scope; if omitted, each turn is sampled independently.

See also: [Specifications: Categories](reference/specifications.md#categories)

### 4.26 What fields does a label have?
<!-- src: reference/specifications.md#labels -->
`name`, `description`, `probability`, `is_unspecified`, and the YAML-only `examples` (optional example strings illustrating the label), `transitions`, `resource_selection_policy` and `filtering_threshold`.

See also: [Specifications: Labels](reference/specifications.md#labels)

### 4.27 What does `is_unspecified` do on a label?
<!-- src: reference/specifications.md#labels -->
It marks the label as the "no constraint" option, leaving its share of conversations unconstrained on that axis. Its `name` defaults to `UNSPECIFIED`, which is how the UI presents it.

See also: [Specifications: Labels](reference/specifications.md#labels)

### 4.28 What does a label description control?
<!-- src: reference/specifications.md#what-a-label-description-controls -->
A label's `description` can constrain behavior (how participants act: tone, length, verbosity, formality, expertise, linguistic correctness), subject (what the request is about), or both. A label that names a subject also steers the benchmark toward the parts of the corpus that cover it.

See also: [Specifications: What a label description controls](reference/specifications.md#what-a-label-description-controls)

### 4.29 What is a label's `filtering_threshold`?
<!-- src: reference/specifications.md#labels -->
It is a YAML-only extra quality gate that applies only to turns where that label was selected. It takes the same `threshold` and `acceptance_condition` pair as an acceptance-criteria aspect, and the judge scores the label's own `description`.

See also: [Specifications: Labels](reference/specifications.md#labels)

### 4.30 What is a resource selection policy and which keys can it contain?
<!-- src: reference/specifications.md#resource-selection-policy -->
`resource_selection_policy` is an optional, YAML-only label field constraining which corpus resources a turn uses; without it, a turn uses one or two resources unrelated to earlier turns. Every key is optional: `min_number_of_resources` (1 or 2, default 1), `max_number_of_resources` (1 or 2, default 2), `facets_to_be_equal`, `facets_to_be_different`, `facets_to_be_resumed`, `must_be_same_resource` (default `false`), `must_be_different_resource` (default `false`) and `must_be_resumed_resource` (default `false`). The facet name `id` is not accepted in the three facet lists; use the matching `must_be_*_resource` flag. A policy that can never be satisfied, such as `must_be_same_resource` together with `facets_to_be_different`, is rejected.

See also: [Specifications: Resource selection policy](reference/specifications.md#resource-selection-policy)

### 4.31 How do I keep a follow-up turn on the same document?
<!-- src: reference/specifications.md#resource-selection-policy -->
Give the label a `resource_selection_policy` with `must_be_same_resource: true`, which requires the same resources as the previous turn. `facets_to_be_equal` is for requiring that named facets of a resource match those of the previous turn; it does not accept the facet name `id`.

See also: [Specifications: Resource selection policy](reference/specifications.md#resource-selection-policy)

### 4.32 Can a specification be used for tool-use benchmarks, and is there an example?
<!-- src: reference/specifications.md#example -->
Yes. Tool usage benchmarks use a specification of the same shape as document benchmarks, with their own default categories. The Specifications reference has a full YAML example for a customer-support assistant, where 40% of questions are about billing and 30% contain minor linguistic errors.

See also: [Specifications: Example](reference/specifications.md#example)

### 4.33 How should I write good specifications?
<!-- src: reference/specifications.md#writing-good-specifications -->
MorganaBench applies a specification one turn at a time, selecting one label per category and using only the selected label's `description`. So give each label a self-contained description, express intended variation as a category, name the subjects to cover, keep all parts consistent, keep the scenario to what shapes the conversation, and describe each turn on its own terms.

See also: [Specifications: Writing good specifications](reference/specifications.md#writing-good-specifications)

### 4.34 Why must each label description make sense on its own?
<!-- src: reference/specifications.md#writing-good-specifications -->
Only the selected label's `description` is used for a turn; its category and the other labels are not part of that instruction. A description like "something between brief and thorough" or "whatever the other labels do not cover" therefore has no content of its own: name the cases explicitly, or use the `UNSPECIFIED` outcome when that share should be unconstrained.

See also: [Specifications: Writing good specifications](reference/specifications.md#writing-good-specifications)

### 4.35 Can a specification stop a benchmark from covering a topic the corpus contains?
<!-- src: reference/specifications.md#writing-good-specifications -->
Not through the scenario description. A specification controls how the corpus is used, not what it contains, so "users never ask about licensing" describes the assistant and licensing questions still appear if the corpus covers licensing. Coverage comes from the subjects the labels name and the material in the corpus.

See also: [Specifications: Writing good specifications](reference/specifications.md#writing-good-specifications)

### 4.36 How do I avoid label combinations that make no sense?
<!-- src: reference/specifications.md#writing-good-specifications, reference/specifications.md#forbidden-combinations -->
One label is selected from each category, so a benchmark covers every combination. When most combinations are unwanted, use a single category whose labels are the sensible pairings; when only a few are, list them in `forbidden_label_combinations` (YAML only), where each entry maps category name to label name and must name at least two categories.

See also: [Specifications: Forbidden combinations](reference/specifications.md#forbidden-combinations)

### 4.37 Does a label need to mention the previous turn in multi-turn conversations?
<!-- src: reference/specifications.md#writing-good-specifications -->
No. Multi-turn conversations stay coherent without help from the descriptions, so describe each turn on its own terms. The fields that shape structure across turns are `scope`, `transitions` and `resource_selection_policy`.

See also: [Specifications: Writing good specifications](reference/specifications.md#writing-good-specifications)

### 4.38 What are acceptance criteria in a specification?
<!-- src: reference/specifications.md#acceptance-criteria -->
`benchmark_acceptance_criteria` (YAML only) defines quality gates each generated turn must pass to be included. It holds a list of `filtering_aspects`, each with a `name`, a `description` (the criterion the judge scores against) and a `threshold`: `threshold.threshold` is an integer 1 to 5 scored by an LLM judge, and `threshold.acceptance_condition` is `">="` (meet or exceed) or `"<="` (at or below).

See also: [Specifications: Acceptance criteria](reference/specifications.md#acceptance-criteria)

### 4.39 How do I check and improve my specification in the web UI before generating a full benchmark?
<!-- src: use-cases/search-bmark-doc-spec.md#customize-the-benchmark-specification, reference/specifications.md#the-specification-reviewer -->
Click Review to check the scenario description and categories against the writing guidelines; remarks are anchored to the text and Review runs only on request, replacing open remarks when repeated. Apply makes the proposed change, Dismiss discards the remark, and when the fix depends on your intent the remark asks for a decision instead. Review uses a language model, so results are not deterministic. Use the Preview box to generate example request/response pairs, choosing a label per category from the dropdowns.

See also: [Specifications: The specification reviewer](reference/specifications.md#the-specification-reviewer)

### 4.40 What is the Sandbox in the web UI, and does it count against my quota?
<!-- src: ui-guide/sandbox.md#using-the-sandbox, ui-guide/sandbox.md#purpose, ui-guide/index.md#sandbox -->
The Sandbox is an interactive area for trying guidance (a specification or a seed of examples) against a small sample of corpus content before creating full benchmarks. A Sandbox preview creates no benchmark, so it does not count against your organization's test case quota or benchmark creation limits.

See also: [UI Guide: Using the Sandbox](ui-guide/sandbox.md#purpose)

### 4.41 What content and guidance can I use in the web UI Sandbox?
<!-- src: ui-guide/sandbox.md#documents-or-tools, ui-guide/sandbox.md#providing-content, ui-guide/sandbox.md#providing-guidance -->
A Documents / Tools tab pair picks the content kind, and a Text / File pair lets you paste content or choose a local file. Documents mode takes one or two documents (the second is optional) and offers a Specification / Seed tab pair for guidance. Tools mode takes JSON tool definitions in the MCP `tools/list` shape (also a full RPC response, a bare array or a single tool object), uses only the first two tools, accepts no ZIP/TGZ archives, and supports a specification only, with no seed.

See also: [UI Guide: Providing Content](ui-guide/sandbox.md#providing-content)

### 4.42 How do Sandbox previews work in the web UI?
<!-- src: ui-guide/sandbox.md#generating-preview-cases, ui-guide/sandbox.md#providing-guidance -->
Each click of Generate produces one single-turn case (the Sandbox has no turn-distribution control) and adds it to the front of a deck of preview cards that you can browse and delete. In specification mode you pick exactly one label per category from dropdowns, which are given probability 1 and the others 0, so the editor hides label probabilities.

See also: [UI Guide: Generating Preview Cases](ui-guide/sandbox.md#generating-preview-cases)

### 4.43 What does "Reset to default" do in the web UI Sandbox, and is my work saved?
<!-- src: ui-guide/sandbox.md#providing-guidance, ui-guide/sandbox.md#persistent-state -->
Reset to default restores the current tab to its defaults (the sample content, the specification, and in Documents mode the seed editor) and clears that tab's previews, leaving the other tab untouched. Sandbox state (content, guidance and previews) is otherwise saved per user and persists across sessions.

See also: [UI Guide: Persistent State](ui-guide/sandbox.md#persistent-state)

## 5. More Like This (example-driven guidance)

### 5.1 What is More Like This?
<!-- src: system-overview.md#starting-from-examples-instead, reference/more-like-this.md#more-like-this, reference/more-like-this.md#content, use-cases/search-bmark-doc-examples.md -->
More Like This is the examples-first form of guidance. Instead of categories, you provide a scenario description plus seed examples (representative user requests), and MorganaBench extends them into a full benchmark grounded in your corpus. It is a peer of the specification approach, not a kind of specification: a benchmark is generated from one or the other, never both.

See also: [More Like This](reference/more-like-this.md#more-like-this)

### 5.2 When should I use More Like This instead of a specification?
<!-- src: system-overview.md#starting-from-examples-instead, reference/more-like-this.md#more-like-this, reference/more-like-this.md#constraints, ui-guide/benchmarks.md#step-2-guidance -->
Use More Like This when your agent already serves real traffic, since that traffic is the most faithful description of what it has to handle; when you only have a few example requests in mind, because Discover can propose candidate requests from your corpus for you to approve or decline; or when you would rather show examples than describe the axes along which test cases vary. Choose a specification when you can describe those axes and want to set the proportions of the mix yourself, or when you need multi-turn conversations or a Tools benchmark. More Like This is available for Documents corpora only and generates single-turn cases.

See also: [Overview: Starting from examples instead](system-overview.md#starting-from-examples-instead), [More Like This: Constraints](reference/more-like-this.md#constraints)

### 5.3 How does More Like This compare with a specification?
<!-- src: reference/more-like-this.md#more-like-this, reference/more-like-this.md#constraints, reference/specifications.md#top-level-fields, reference/specifications.md#turns, system-overview.md#starting-from-examples-instead, ui-guide/benchmarks.md#step-2-guidance -->
They are peer ways to guide generation, and a benchmark uses exactly one. Both ground the cases in your corpus.

| | Specification | More Like This |
|---|---|---|
| You provide | A scenario description plus categories of variation, each with weighted labels | A scenario description plus seed examples (representative user requests) |
| Where the variation comes from | The categories and label weights you define | The examples themselves |
| What it controls | The mix of test cases, in the proportions you state | How requests are put together: phrasing, tone, length and structure (what they are about comes from the corpus) |
| Conversation length | Multi-turn for Documents benchmarks (set by the turn distribution); Tools benchmarks are single-turn | Single-turn only |
| Corpus types | Documents and Tools | Documents only |
| Help while you build it | Review proposes fixes; Preview shows sample cases | Discover proposes candidate requests (web UI only); a preview shows sample turns |

See also: [More Like This](reference/more-like-this.md#more-like-this), [Specifications reference](reference/specifications.md#top-level-fields)

### 5.4 How do I choose the guidance mode in the UI?
<!-- src: ui-guide/benchmarks.md#step-2-guidance, use-cases/search-bmark-doc-spec.md#customize-the-benchmark-specification, use-cases/search-bmark-doc-examples.md#provide-example-requests -->
In the benchmark creation wizard, the Guidance box offers By Specification (preselected) and By Example Seed (More Like This), which is available for Documents corpora only. Press Continue to Guidance to open the matching editor.

See also: [UI Guide: Benchmarks](ui-guide/benchmarks.md#step-2-guidance)

### 5.5 Can I combine seed examples with categories?
<!-- src: reference/more-like-this.md#more-like-this, reference/more-like-this.md#constraints, reference/more-like-this.md#categories-in-evaluation-results -->
Seed examples and author-defined categories cannot be combined as guidance for generation. After generation, MorganaBench can discover categories for use in evaluation results, so a More Like This benchmark can still have discovered labels.

See also: [More Like This: Constraints](reference/more-like-this.md#constraints), [Categories in evaluation results](reference/more-like-this.md#categories-in-evaluation-results)

### 5.6 Do I need real traffic to use More Like This?
<!-- src: system-overview.md#starting-from-examples-instead -->
No. If you have only a few examples in mind (a cold start), MorganaBench can propose candidate requests drawn from your corpus for you to approve or decline, so you can build the seed without writing a specification.

See also: [Overview: Starting from examples instead](system-overview.md#starting-from-examples-instead)

### 5.7 Does More Like This learn the subject matter from my seed examples?
<!-- src: reference/more-like-this.md#constraints, use-cases/search-bmark-doc-examples.md#provide-example-requests -->
No. What a request is about comes from the corpus, independently of the examples; the seed set shapes only how a request is put together: phrasing, tone, length and structure. So make your seeds representative of how your real users phrase and size requests, from short direct questions to longer ones.

See also: [More Like This: Constraints](reference/more-like-this.md#constraints)

### 5.8 Why are two seed examples not enough?
<!-- src: use-cases/search-bmark-doc-examples.md#provide-example-requests -->
With only two examples the generated requests copy their style and structure (for instance, the same languages and the same opening phrases), so the benchmark lacks variability. Use the Generate example turn preview to check this before generating at scale.

See also: [Provide example requests](use-cases/search-bmark-doc-examples.md#provide-example-requests)

### 5.9 How do I provide seed examples in the UI, and what format must a file have?
<!-- src: reference/more-like-this.md#seed-examples, use-cases/search-bmark-doc-examples.md#provide-example-requests -->
Load a file, type examples manually, or use Discover. A file can be YAML (`.yaml`, `.yml`), JSON (`.json`) or JSONL (`.jsonl`) whose top level is a list of SDK `Example` objects (one per line for JSONL), each with an `inputs.messages` array whose last message has `role: user` and non-empty `content`, which becomes the seed request.

See also: [More Like This: Seed examples](reference/more-like-this.md#seed-examples)

### 5.10 What is Discover in More Like This?
<!-- src: reference/more-like-this.md#discover, use-cases/search-bmark-doc-examples.md#discover-new-examples-with-morganabench -->
Discover proposes new corpus-grounded candidate requests for you to review before they join the seed set; it is deliberately explorative, so expect to reject some of each batch. It exists only in the web UI.

See also: [More Like This: Discover](reference/more-like-this.md#discover)

### 5.11 How do I review candidates in Discover in the web UI?
<!-- src: reference/more-like-this.md#discover, use-cases/search-bmark-doc-examples.md#discover-new-examples-with-morganabench -->
Click Generate candidates in Discover more examples, and each candidate in Candidates to review is an editable card. Add to examples moves it into the seed set (after your existing examples), while Reject records it as negative signal with an optional feedback note.

See also: [Discover new examples](use-cases/search-bmark-doc-examples.md#discover-new-examples-with-morganabench)

### 5.12 Does Discover remember rejected candidates?
<!-- src: reference/more-like-this.md#discover, use-cases/search-bmark-doc-examples.md#discover-new-examples-with-morganabench -->
Yes, within a Discover session: each new round takes earlier accept and reject history into account, so later batches move toward accepted patterns and away from rejected ones. This only shapes what Discover proposes; benchmark generation uses solely the accepted seed set.

See also: [More Like This: Discover](reference/more-like-this.md#discover)

### 5.13 What is the Instructions field in Discover?
<!-- src: reference/more-like-this.md#discover, use-cases/search-bmark-doc-examples.md#discover-new-examples-with-morganabench -->
It is an optional free-text steer (for example "keep the questions short and specific") that applies to every candidate in the next batch only. Unlike rejections it is not accumulated into history, so edit or clear it between rounds; if empty, the batch is guided by your examples and review history alone.

See also: [Discover new examples](use-cases/search-bmark-doc-examples.md#discover-new-examples-with-morganabench)

### 5.14 What are the limits of More Like This?
<!-- src: reference/more-like-this.md#constraints, ui-guide/benchmarks.md#step-1-settings -->
It is single-turn only (each case has exactly one turn), cannot be combined with author-defined categories, and is available for Documents corpora only, not Tools.

See also: [More Like This: Constraints](reference/more-like-this.md#constraints)

## 6. Benchmarks

### 6.1 What is a benchmark?
<!-- src: system-overview.md#benchmark-test-cases-and-ground-truth, ui-guide/benchmarks.md#benchmarks -->
A benchmark is a set of test cases, each a synthetic case paired with its ground truth (the behaviour that counts as correct). It is generated from a corpus (documents or tool definitions) together with guidance, either a specification or a seed of examples, and is later used to evaluate an AI agent.

See also: [Overview: Benchmark](system-overview.md#benchmark-test-cases-and-ground-truth)

### 6.2 What is ground truth in a benchmark?
<!-- src: system-overview.md#benchmark-test-cases-and-ground-truth -->
Ground truth takes two forms. For a knowledge-based question it is an expected response, the content a good reply should convey; for a request that requires tool use it is a set of expectations about behaviour, such as a tool that should have been called with given arguments, or one that should not.

See also: [Overview: Benchmark](system-overview.md#benchmark-test-cases-and-ground-truth)

### 6.3 What benchmark modes are there?
<!-- src: ui-guide/benchmarks.md#benchmark-modes -->
There are two, determined by the type of corpus you select. Documents tests whether the agent retrieves the right documents and answers correctly; Tools tests whether the agent picks the right tool with the correct parameters.

See also: [UI Guide: Benchmark Modes](ui-guide/benchmarks.md#benchmark-modes)

### 6.4 How do I create a benchmark in the UI?
<!-- src: ui-guide/benchmarks.md#creating-a-benchmark, ui-guide/benchmarks.md#step-1-settings -->
Go to Benchmarks and click Create Benchmark to open a 3-step wizard (Settings, Guidance, Generation). In Settings enter a Name (required) and optional Description, pick a Corpus in Ready status (or create one inline; its type sets the mode), and choose the Guidance mode: By Specification (preselected) or By Example Seed, which is available for Documents corpora only.

See also: [UI Guide: Creating a Benchmark](ui-guide/benchmarks.md#creating-a-benchmark)

### 6.5 What happens in the Guidance step of the web UI benchmark wizard?
<!-- src: ui-guide/benchmarks.md#step-2-guidance -->
By Specification opens the specification editor (scenario description and categories on the left, a live Preview panel on the right), starting from the default specification for your corpus type. The Load control switches to the Default Specification or a saved Library specification, and Save stores your edits back to the Library. By Example Seed opens the seed editor, where you provide the example requests the cases are modelled on.

See also: [UI Guide: Step 2: Guidance](ui-guide/benchmarks.md#step-2-guidance)

### 6.6 What do I set in the Generation step of the web UI wizard, and what are max turns?
<!-- src: ui-guide/benchmarks.md#step-3-generation, use-cases/search-bmark-doc-spec.md#generate-the-benchmark, reference/more-like-this.md#constraints -->
Set the number of test cases ("requests" in Tools mode) and, for specification-based benchmarks, the Max turns (the longest conversation allowed), which cannot exceed your organization's limit (4 by default). A Generation Credits panel shows estimated cost and remaining quota; click Submit for Generation to start. In the specification flow each additional turn is half as likely as the previous one, and More Like This cases are single-turn.

See also: [UI Guide: Step 3: Generation](ui-guide/benchmarks.md#step-3-generation)

### 6.7 What is Preview mode in the web UI, and does it show a representative sample?
<!-- src: ui-guide/benchmarks.md#preview-mode, ui-guide/sandbox.md#generating-preview-cases -->
Preview generates a single case before you commit to a full run, so you can validate a specification and corpus combination without consuming quota. It is not a representative sample: you pick exactly one label per category, which is generated at probability 1 (the others at 0). Click Generate Preview; you can create several previews, browse them as a deck of cards listing their labels, and delete the ones you do not want.

See also: [UI Guide: Preview Mode](ui-guide/benchmarks.md#preview-mode)

### 6.8 What are the benchmark statuses?
<!-- src: ui-guide/benchmarks.md#processing-status -->
`pending` (queued, waiting for a processing slot), `generating` (cases are being generated, with a progress percentage shown in the list), `ready` (all cases generated; available for download and evaluation) and `failed` (generation hit an error; see the detail page).

See also: [UI Guide: Processing Status](ui-guide/benchmarks.md#processing-status)

### 6.9 How do I browse, filter and sort benchmarks in the UI?
<!-- src: ui-guide/benchmarks.md#benchmarks-list -->
The Benchmarks page has a list view (sortable columns) and a grid view (cards), toggled with the icon in the filter bar. The filter bar offers Search by name, a Status filter, a Type filter (Documents or Tools) and Sort by name, status or creation date.

See also: [UI Guide: Benchmarks List](ui-guide/benchmarks.md#benchmarks-list)

### 6.10 What does the benchmark detail page show in the web UI?
<!-- src: ui-guide/benchmarks.md#benchmark-detail-page -->
The status with real-time progress, an inline-editable name and description (pencil icon), metadata (Benchmark ID, type, creation date, number of cases), the Linked Corpus and a Guidance link (View specification, or View seed for a More Like This benchmark). It also has Download and Create Evaluation, both enabled only when the benchmark is Ready, Generate Similar, and a table of Linked Evaluations.

See also: [UI Guide: Benchmark Detail Page](ui-guide/benchmarks.md#benchmark-detail-page)

### 6.11 How do I start a new benchmark from an existing one in the web UI?
<!-- src: ui-guide/benchmarks.md#benchmark-detail-page, ui-guide/specifications.md#viewing-a-benchmarks-applied-guidance -->
Click **Generate Similar** on the benchmark's detail page. It starts a new benchmark from the same corpus and guidance, after asking for a name (pre-filled and editable). The Specification Details or Seed Details page offers the same action as **Use in New Benchmark**.

See also: [UI Guide: Benchmark Detail Page](ui-guide/benchmarks.md#benchmark-detail-page)

### 6.12 Can I stop a benchmark while it is generating in the web UI?
<!-- src: ui-guide/benchmarks.md#stopping-generation -->
Yes. While a benchmark is Generating, its detail page offers **Stop Generation**, which ends the run and keeps the cases produced so far as a partial benchmark. You can download and use it like any other benchmark, but it has fewer cases than requested. No administrator is needed.

See also: [UI Guide: Stopping Generation](ui-guide/benchmarks.md#stopping-generation)

### 6.13 What do the expectation cards under a benchmark case mean?
<!-- src: ui-guide/benchmarks.md#expectation-cards -->
Each case starts with its Input, the messages the agent receives. Below the input, the detail page shows one card for each kind of expectation that the case has: Tool Call (a tool the agent should call, or "No tool should be called."), Response Refusal, Response Claims (statements the response should contain), Response Compliance (conditions the response must meet), and Expected Response or Example Response. Expected Response is the answer the agent should give, and it shows when the case has a response expectation, also next to a tool call. Example Response is an example of a good response, and it shows when the case has only an illustrative response, in a row below the other cards and in the same blue. Hover over the help icon of a card to read its meaning.

See also: [UI Guide: Expectation Cards](ui-guide/benchmarks.md#expectation-cards)

### 6.14 How do I inspect a generated benchmark in the web UI and see each turn's category labels?
<!-- src: use-cases/search-bmark-doc-spec.md#inspect-the-benchmark, use-cases/search-bmark-doc-examples.md#inspect-the-benchmark -->
The left panel shows metadata (name, corpus, specification) and the right panel shows the inputs and expected responses. Hover over the sliders button on a case to reveal the category labels of each turn; each case shows its ID with a copy button. A More Like This benchmark has no category labels.

See also: [Inspect the benchmark](use-cases/search-bmark-doc-spec.md#inspect-the-benchmark), [Inspect the benchmark (examples)](use-cases/search-bmark-doc-examples.md#inspect-the-benchmark)

### 6.15 How do I download a benchmark in the web UI, and what format is it in?
<!-- src: ui-guide/benchmarks.md#downloading-results, use-cases/mb-eval-ui.md#step-1-download-the-benchmark -->
Click Download on the detail page once the benchmark is Ready, or use the three-dots menu on its row in the Benchmarks list and click Download. The file is JSONL (newline-delimited JSON), one generated case per line, following the MorganaBench SDK `Example` schema.

See also: [UI Guide: Downloading Results](ui-guide/benchmarks.md#downloading-results)

### 6.16 What does one line of a generated benchmark file contain?
<!-- src: use-cases/search-bmark-doc-spec.md#inspect-the-benchmark -->
`inputs` holds the agent input as OpenAI-style `messages` plus per-turn metadata (including category labels), and `expectations` holds the ground truth as a list of typed items; in search benchmarks it holds the expected response, an item with `expect` set to `response`. An example may also carry an `illustrative_response`, an example of a good response that no metric reads. `outputs` and `assessments` are null until you run an agent and evaluate: `outputs` then holds the agent's responses and `assessments` MorganaBench's scoring.

See also: [Inspect the benchmark](use-cases/search-bmark-doc-spec.md#inspect-the-benchmark)

### 6.17 How do I delete a benchmark in the web UI, and who can?
<!-- src: ui-guide/benchmarks.md#deleting-a-benchmark -->
Click Delete Benchmark on the detail page. Deletion permanently removes the benchmark and its generated data. Non-admin users can delete Ready or Failed benchmarks, admins can delete in any status, and pre-loaded example benchmarks cannot be deleted.

See also: [UI Guide: Deleting a Benchmark](ui-guide/benchmarks.md#deleting-a-benchmark)

## 7. Running agents and evaluations

### 7.1 What is an evaluation?
<!-- src: system-overview.md#evaluation, reference/evaluation.md#evaluation, ui-guide/evaluations.md#running-evaluations -->
An evaluation is a scored run of a benchmark against one agent. You run your agent on the benchmark's test cases, bring its results back to MorganaBench in the expected format, and choose the metrics; MorganaBench scores every case and aggregates the scores into one number per metric.

See also: [Evaluation](reference/evaluation.md#evaluation)

### 7.2 Does MorganaBench run my agent for me, and how do I connect it?
<!-- src: system-overview.md#evaluation, agent-integ/index.md#agent-integration, agent-integ/index.md#before-you-start, index.md#user-guides, agent-integ/index.md#evaluating-your-agent-on-a-benchmark, use-cases/mb-eval-ui.md#step-2-run-your-agent-on-the-benchmark, use-cases/run_agent.md -->
No. You run your own agent on the benchmark's test cases and bring its results back to MorganaBench in the expected format. To connect it, you write a small script that feeds each case to your agent and records its response; the `mb` CLI and the Python or TypeScript SDK handle the MorganaBench side.

See also: [Agent integration](agent-integ/index.md#evaluating-your-agent-on-a-benchmark), [Agent integration: Before you start](agent-integ/index.md#before-you-start)

### 7.3 What is the difference between evaluating a MorganaBench benchmark and an external benchmark?
<!-- src: use-cases/mb-eval-ui.md#overview, use-cases/ext-eval-ui.md#overview -->
For a MorganaBench benchmark, you download the benchmark file, run your agent on it and add the answers to the file. For an external benchmark (one that did not come from MorganaBench, such as [IBM's watsonxDocsQA](https://huggingface.co/datasets/ibm-research/watsonxDocsQA) dataset used in the tutorials), you build the file yourself with the MorganaBench SDK from the benchmark's questions, its reference answers and your agent's answers. In both cases you then import the file into an evaluation, choose metrics and inspect the results.

See also: [Evaluate a MorganaBench benchmark (UI)](use-cases/mb-eval-ui.md#overview), [Evaluate an external benchmark (UI)](use-cases/ext-eval-ui.md#overview)

### 7.4 What is an executed benchmark?
<!-- src: use-cases/mb-eval-ui.md#step-3-add-agent-responses-to-the-benchmark -->
An executed benchmark is a benchmark file that also contains your agent's response to each case. It is what an evaluation scores.

See also: [Step 3: Add agent responses](use-cases/mb-eval-ui.md#step-3-add-agent-responses-to-the-benchmark)

### 7.5 How do I evaluate my agent on a MorganaBench benchmark in the web UI?
<!-- src: use-cases/mb-eval-ui.md#overview, use-cases/mb-eval-ui.md#step-3-add-agent-responses-to-the-benchmark -->
Download the benchmark, run your agent on it in your own environment, and add each response to the file. Then import the file in Evaluations > Create Evaluation, choose metrics, run the evaluation and inspect the results. The tutorial walks through each step.

See also: [Evaluate via web UI](use-cases/mb-eval-ui.md#overview)

### 7.6 How do I evaluate an external benchmark in the web UI?
<!-- src: use-cases/ext-eval-ui.md#overview, use-cases/ext-eval-ui.md#create-an-evaluation-on-morganabench, use-cases/ext-eval-ui.md#build-the-agent-and-run-it-on-the-benchmark -->
Run your agent over the external benchmark and write the results as a MorganaBench file using the SDK. Then create an evaluation in Evaluations > Create Evaluation by importing that file, choosing metrics and running it. The tutorial does this for IBM's watsonxDocsQA benchmark.

See also: [Evaluate an external benchmark via the web UI](use-cases/ext-eval-ui.md#create-an-evaluation-on-morganabench), [Build the agent and run it](use-cases/ext-eval-ui.md#build-the-agent-and-run-it-on-the-benchmark)

### 7.7 Can I try my agent on a few test cases first, and speed up a full run?
<!-- src: use-cases/mb-eval-ui.md#running-the-agent, agent-integ/index.md#evaluating-your-agent-on-a-benchmark -->
Yes. Run your agent on just the first few cases of the benchmark to check your setup before a full run, and process cases concurrently in the full run so it finishes much faster. The tutorial shows both.

See also: [Running the agent](use-cases/mb-eval-ui.md#running-the-agent)

### 7.8 Does my agent have to use LlamaIndex or AWS Bedrock?
<!-- src: use-cases/ext-eval-ui.md#build-the-agent-and-run-it-on-the-benchmark, use-cases/mb-eval-ui.md#prerequisites -->
No. The tutorials use LlamaIndex with AWS Bedrock only as a simple example, and you can use any agent or provider. All MorganaBench needs is the executed benchmark file in the expected format.

See also: [Build the agent](use-cases/ext-eval-ui.md#build-the-agent-and-run-it-on-the-benchmark)

### 7.9 How do I create an evaluation in the web UI?
<!-- src: ui-guide/evaluations.md#creating-an-evaluation, use-cases/mb-eval-ui.md#step-4-import-the-executed-benchmark, use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
Go to Evaluations and click Create, import your agent output file, give the evaluation a name, choose one or more metrics and run it. MorganaBench reads the benchmark and corpus from the file, and shows your remaining evaluation credits and an estimated cost and time before you run.

See also: [UI Guide: Creating an Evaluation](ui-guide/evaluations.md#creating-an-evaluation)

### 7.10 What does the agent output file look like?
<!-- src: ui-guide/evaluations.md#agent-output-format, reference/evaluation.md#agent-output, ui-guide/evaluations.md#format-overview, ui-guide/evaluations.md#two-accepted-shapes, ui-guide/evaluations.md#required-validation-rules, ui-guide/evaluations.md#searchdocuments-format, ui-guide/evaluations.md#tool-calling-format -->
It is an NDJSON (JSONL) file with one JSON object per line, following the MorganaBench SDK `Example` schema, where each line holds your agent's response and execution trace for one benchmark case. It comes in two shapes: outputs-only, where each line carries just the case `id` and your agent's `outputs` (recommended for MorganaBench benchmarks), or complete examples that also carry the inputs and expectations (for outputs that did not come from a MorganaBench benchmark). What the outputs contain differs between search or documents benchmarks and tool-calling benchmarks. The UI Guide describes the fields and rules for each.

See also: [UI Guide: Agent Output Format](ui-guide/evaluations.md#agent-output-format), [Two Accepted Shapes](ui-guide/evaluations.md#two-accepted-shapes)

### 7.11 Where can I find example agent output files and the schema?
<!-- src: ui-guide/evaluations.md#download-example-files, ui-guide/evaluations.md#additional-resources -->
The UI Guide offers three downloadable examples (outputs-only, search or documents, and tool-calling), and the full schema is in the MorganaBench SDK documentation.

See also: [UI Guide: Download Example Files](ui-guide/evaluations.md#download-example-files)

### 7.12 Why is my agent output file rejected or flagged in the web UI?
<!-- src: use-cases/mb-eval-ui.md#step-4-import-the-executed-benchmark, ui-guide/evaluations.md#required-validation-rules, ui-guide/evaluations.md#format-overview -->
The UI shows a warning if the file cannot be linked to its original benchmark, and an error describing the problem if the JSONL is invalid. An accepted file shows a green check and a case count matching the benchmark. The validation rules are listed in the UI Guide.

See also: [UI Guide: Required Validation Rules](ui-guide/evaluations.md#required-validation-rules)

### 7.13 Which metrics can I choose when creating an evaluation in the web UI?
<!-- src: use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
The built-in metrics on offer depend on the benchmark type, with one set for search benchmarks and another for tool benchmarks, and your organization's custom metrics are available too. The Metrics section of this FAQ explains what each one measures.

See also: [Step 5: Select metrics](use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation)

### 7.14 How do I add metrics to an evaluation that is already ready in the web UI?
<!-- src: reference/evaluation.md#statuses, use-cases/mb-eval-ui.md#step-6-inspect-evaluation-results -->
A ready evaluation can still get more metrics: on its results page click Add Metrics to Evaluation, select them and click Calculate Metrics. Only the new metrics are computed, on the same data.

See also: [Evaluation: Statuses](reference/evaluation.md#statuses)

### 7.15 Which metrics does an evaluation compute, and how do they count against my limit?
<!-- src: reference/evaluation.md#results -->
The metrics are chosen when the evaluation is created: the system metrics that apply to the benchmark being evaluated, plus your organization's active custom metrics. Every metric multiplies the scoring work, so an evaluation consumes `rows × metrics` against your organization's evaluation limit.

See also: [Evaluation: Results](reference/evaluation.md#results)

### 7.16 What statuses does an evaluation go through?
<!-- src: reference/evaluation.md#statuses -->
`pending` (created, awaiting agent output), `uploaded` (agent results received, waiting for scoring to begin), `processing` (metrics being computed, or, once scoring is done, waiting up to 60 minutes for the benchmark's category discovery), then `ready` (scores available) or `failed` (an error occurred).

See also: [Evaluation: Statuses](reference/evaluation.md#statuses)

### 7.17 How do I follow an evaluation's progress and find evaluations in the web UI?
<!-- src: ui-guide/evaluations.md#monitoring-progress, use-cases/mb-eval-ui.md#step-6-inspect-evaluation-results, ui-guide/evaluations.md#evaluations-list -->
Evaluations run asynchronously, and the Evaluations page and each evaluation's page show its status and progress. The page lists your evaluations as a list or as cards, with search by name, a status filter and sorting. Processing time depends on the number of cases and the metrics selected.

See also: [UI Guide: Monitoring Progress](ui-guide/evaluations.md#monitoring-progress), [UI Guide: Evaluations List](ui-guide/evaluations.md#evaluations-list)

### 7.18 What do evaluation results include, and how do I read them?
<!-- src: reference/evaluation.md#results, ui-guide/evaluations.md#viewing-results, use-cases/mb-eval-ui.md#step-6-inspect-evaluation-results, ui-guide/evaluations.md#downloading-results -->
Each metric gives a score per case plus a benchmark-level result: the mean with its confidence interval, and how many cases were scored, ineligible or failed. In the web UI the Overview tab shows the benchmark-level results, the Case details tab the per-case scores, and the Segments and Issues tabs break each metric down by the benchmark's categories. You can also download a results file in which each case's scores sit next to its inputs, expectations and outputs.

See also: [Evaluation: Results](reference/evaluation.md#results), [UI Guide: Viewing Results](ui-guide/evaluations.md#viewing-results)

### 7.19 How do I see where my agent does worse than average in the web UI?
<!-- src: ui-guide/evaluations.md#segments-and-issues, ui-guide/evaluations.md#segments-tab, ui-guide/evaluations.md#issues-tab, reference/segments.md#the-table, reference/segments.md#where-the-dimensions-come-from, reference/issues.md#issues -->
The evaluation page's Segments and Issues tabs break scores down by category, using both author-defined and discovered categories when available, and names each category's type, **from spec** or **Inferred**. A segment is the set of cases sharing a label (such as `Topic: Billing`) or a pair of labels (such as `Topic: Billing` and `Tone: Angry`). Segments shows every segment's score however small, and selecting a cell opens its cases. Issues is a short ranked list of only the segments that score significantly worse than the evaluation's own average, to help you decide what to fix first.

See also: [Segment analysis](reference/segments.md), [Issues](reference/issues.md)

### 7.20 Why does my evaluation have categories I never defined?
<!-- src: reference/more-like-this.md#categories-in-evaluation-results, ui-guide/evaluations.md#where-categories-come-from, reference/segments.md#where-the-dimensions-come-from, reference/segments.md#when-segments-are-missing -->
MorganaBench can discover categories from the cases and expected responses in generated Documents benchmarks. Discovery runs after the benchmark reaches **Ready** and can add categories to both More Like This benchmarks and benchmarks generated from specifications, alongside any author-defined categories. The discovered categories work like declared ones in Segments, Issues and the Case details filters, and are marked **Inferred** wherever the evaluation page names a category's type; they are not shown on the benchmark page. Benchmark downloads never include discovered labels; an evaluation's results include the ones it used, in `inputs.metadata.inferred_categories`. Discovered categories are not guaranteed for every benchmark.

See also: [Segment analysis: Where the dimensions come from](reference/segments.md#where-the-dimensions-come-from), [More Like This: Categories in evaluation results](reference/more-like-this.md#categories-in-evaluation-results)

### 7.21 How do the expectations and the agent output appear in the Case details tab of an evaluation?
<!-- src: ui-guide/evaluations.md#viewing-results, ui-guide/benchmarks.md#expectation-cards -->
The Case details tab shows each case in three parts, one below the other: the Input, the Expectations, and the Agent output. The Expectations are the cards Tool Call, Response Refusal, Response Claims, Response Compliance, and Expected Response. The Example Response is not shown. The Agent output row sits under the Expectations row, and each row scrolls sideways on its own. In each row, the tool cards come first and the response cards come next. The agent's tool call cards are titled Tool Call, like the expectation cards, and each card keeps the height of its content. When a part has no cards, its row says "This case has no expectations." or "This case has no agent output."

See also: [UI Guide: Viewing Results](ui-guide/evaluations.md#viewing-results), [UI Guide: Expectation Cards](ui-guide/benchmarks.md#expectation-cards)

### 7.22 What does "low confidence" mean on a score or segment?
<!-- src: ui-guide/evaluations.md#confidence-levels, reference/metrics.md#reading-a-score -->
A score is low confidence when it is not precise enough to trust, by the same rule on the Overview cards (a badge), the Case details tab and the Segments table (an icon). Fewer than 10 scored cases is always low confidence. Otherwise it depends on the width of the 95% confidence interval relative to the metric's range: up to 5% is high, up to 10% is medium, and anything wider is low. Treat a low-confidence segment as a lead to check, not a conclusion; a larger benchmark narrows the intervals.

See also: [Metrics: Reading a score](reference/metrics.md#reading-a-score)

### 7.23 Why is a segment I expected missing from an evaluation's Segments tab, or why does the tab say categories are missing?
<!-- src: ui-guide/evaluations.md#why-an-example-can-be-missing-from-segments, reference/segments.md#when-segments-are-missing, reference/segments.md#where-the-dimensions-come-from -->
Categories are associated with each example through its `inputs`: return this field unchanged, or use the outputs-only shape so MorganaBench reads it back from the benchmark. If you change `inputs` without preserving its category metadata, cases can appear in **Unspecified**, or the tab can show "Segment categories are missing from these results" if no categories remain. "No segment dimensions found" means no categories are available for this evaluation. **Ready** means the benchmark is usable while discovery may still run; an evaluation waits for it after scoring, for up to 60 minutes, and otherwise finishes without discovered categories and says so. Benchmark downloads never include discovered labels.

See also: [Segment analysis: When segments are missing](reference/segments.md#when-segments-are-missing)

### 7.24 How does the Issues tab decide what is an issue, and how are issues ordered?
<!-- src: reference/issues.md#how-findings-are-chosen, reference/issues.md#order, reference/issues.md#empty-states -->
A segment becomes an issue when its cases score significantly worse than all other cases, after correcting for multiple comparisons, and by more than 5% of the metric's range. Segments with fewer than 10 cases are not tested, and metrics with fewer than 20 scored cases are not analyzed. Issues are ordered by the largest drop within each finding's confidence interval, so a smaller but less certain drop can rank above a larger one; "No issues found" means nothing was conclusively worse, not that nothing is wrong.

See also: [Issues](reference/issues.md)

### 7.25 How do I filter the cases of an evaluation in the web UI?
<!-- src: ui-guide/evaluations.md#filtering-cases -->
On the Case details tab, use **+ Add filter** to add a metric filter (a score value or range, or cases with a scoring error or marked ineligible) or a segment filter (values of one category). Values of one category are combined with OR, different filters with AND; `×` removes one filter and **Clear filters** removes all. Selecting a Segments cell or an Issues card opens this tab with the matching segment filters already set.

See also: [UI Guide: Filtering cases](ui-guide/evaluations.md#filtering-cases)

### 7.26 Can I share a link to a specific view of an evaluation's results?
<!-- src: reference/segments.md#sharing-a-view -->
Yes. The tab, the Segments table's metric, rows and columns, and segment filters are kept in the URL, so copying the address bar shares the exact view. For example `?tab=segments&dim=persona&dim2=politeness&smetric=faithfulness`; a category or metric that does not exist in an evaluation falls back to the first available one.

See also: [Segment analysis: Sharing a view](reference/segments.md#sharing-a-view)

### 7.27 If I rename or delete a custom metric, do past evaluations change?
<!-- src: reference/evaluation.md#results -->
No. When an evaluation runs it keeps a snapshot of each custom metric's name, description and config, so later renaming, duplicating or deleting the metric does not change what past numbers mean.

See also: [Evaluation: Results](reference/evaluation.md#results)

### 7.28 How can I compare agents or versions of an agent?
<!-- src: system-overview.md#at-a-glance, system-overview.md#evaluation -->
Evaluate each agent or version on the same benchmark with the same metrics and compare the benchmark-level scores. The per-case scores show which cases failed and what the failures have in common.

See also: [Overview: Evaluation](system-overview.md#evaluation)

### 7.29 How do I delete an evaluation in the web UI, and who can?
<!-- src: ui-guide/evaluations.md#deleting-an-evaluation -->
Click Delete Evaluation on the evaluation's page; this permanently removes the evaluation and its results. Non-admin users can delete evaluations that are Ready or Failed, admins can delete in any status, and the pre-loaded example evaluations cannot be deleted.

See also: [UI Guide: Deleting an Evaluation](ui-guide/evaluations.md#deleting-an-evaluation)

## 8. Metrics

### 8.1 What is a metric?
<!-- src: reference/metrics.md#metrics, system-overview.md#metrics-what-counts-as-good-behaviour -->
A metric is one question about your agent's behaviour, asked of every case in the benchmark and answered with a score, for example how closely an answer matches the reference, whether it is faithful to retrieved documents, or whether its tone stays professional. Each metric scores every test case on its own and aggregates those scores into one benchmark-level average with a confidence interval.

See also: [Metrics](reference/metrics.md#metrics)

### 8.2 What kinds of metrics are there?
<!-- src: reference/metrics.md#metrics, system-overview.md#metrics-what-counts-as-good-behaviour -->
System metrics are the fixed set MorganaBench ships, and custom metrics are prompt-based LLM-judge metrics you author for standards particular to your product. A single evaluation can use any mix of both, and both appear on the Metrics page in the UI.

See also: [Metrics](reference/metrics.md#metrics)

### 8.3 Which built-in metrics does MorganaBench provide, and what does each measure?
<!-- src: reference/metrics.md#system-metrics, use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
MorganaBench ships eight built-in (system) metrics. The first six suit search benchmarks and the last two apply only to tool-use benchmarks:
- `ground_truth_alignment`: The degree to which the reference answer is covered by the response. It is scored from `0.0` to `1.0`, and higher is better.
- `ground_truth_contradiction`: The degree to which the reference answer is contradicted by the response. It is scored from `0.0` to `1.0`, and lower is better.
- `faithfulness`: The degree to which the response is supported by the retrieved documents. It is scored from `0.0` to `1.0`, and higher is better.
- `query_relevance`: The degree to which the response is relevant to the user's request. It is scored from `0.0` to `1.0`, and higher is better.
- `context_sufficiency`: The degree to which the reference answer is supported by the retrieved documents. It is scored from `0.0` to `1.0`, and higher is better. It judges retrieval, not the agent's response.
- `refusal`: The rate at which the agent refuses requests it was expected to answer. Each case scores `0` or `1`, and lower is better. Cases that expect a refusal are excluded.
- `tool_call_correctness`: The rate at which the agent makes every expected tool call with the right arguments. Each case scores `0` or `1`, and higher is better.
- `no_tool_call_correctness`: How correct the agent's response is when no tool call is expected. It is scored from `0.0` to `1.0`, and higher is better. Calling a tool scores `0`; otherwise the response is graded against the case's compliance expectations or its expected response.

In the UI the choices depend on the benchmark type, and the UI labels `query_relevance` "Relevance to Request" and `no_tool_call_correctness` "No-Tool-Call Correctness". The questions below explain each metric in more detail.

See also: [Metrics: System metrics](reference/metrics.md#system-metrics)

### 8.4 Which metrics are better when higher, and which when lower?
<!-- src: reference/metrics.md#system-metrics, use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
Lower is better for `ground_truth_contradiction` and `refusal`; higher is better for all the other system metrics. A custom metric declares its own `direction`.

See also: [Metrics: System metrics](reference/metrics.md#system-metrics)

### 8.5 What does `ground_truth_alignment` measure?
<!-- src: reference/metrics.md#system-metrics, use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
The degree to which the reference answer is covered by the response. It is scored from `0.0` to `1.0`, and higher is better. It compares `outputs.response` with the expected response (the `response` item of `expectations`), so cases without an expected response are ineligible. For how it differs from the other metric, see "What is the difference between `query_relevance` and `ground_truth_alignment`?".

See also: [Metrics: System metrics](reference/metrics.md#system-metrics)

### 8.6 What does `ground_truth_contradiction` measure?
<!-- src: reference/metrics.md#system-metrics, use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
The degree to which the reference answer is contradicted by the response. It is scored from `0.0` to `1.0`, and lower is better. Leaving a point out lowers `ground_truth_alignment` but does not raise this score. Like `ground_truth_alignment`, it compares `outputs.response` with the expected response (the `response` item of `expectations`).

See also: [Metrics: System metrics](reference/metrics.md#system-metrics)

### 8.7 What does `faithfulness` measure?
<!-- src: reference/metrics.md#system-metrics, use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
The degree to which the response is supported by the retrieved documents. It is scored from `0.0` to `1.0`, and higher is better. In the UI it is judged against the retrieved documents referenced in `outputs.citations[].document_id`, so your executed benchmark should include citations.

See also: [Step 5: Select metrics](use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation)

### 8.8 What does `context_sufficiency` measure?
<!-- src: reference/metrics.md#system-metrics, use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
The degree to which the reference answer is supported by the retrieved documents. It is scored from `0.0` to `1.0`, and higher is better. It judges retrieval: the agent's response is not read. Like `faithfulness`, it relies on the retrieved documents referenced in `outputs.citations[].document_id`.

See also: [Step 5: Select metrics](use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation)

### 8.9 What does `query_relevance` measure?
<!-- src: reference/metrics.md#system-metrics, use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
The degree to which the response is relevant to the user's request. The request is the last user message. It is scored from `0.0` to `1.0`, and higher is better. The UI calls it Relevance to Request. For how it differs from the other metric, see "What is the difference between `query_relevance` and `ground_truth_alignment`?".

See also: [Metrics: System metrics](reference/metrics.md#system-metrics)

### 8.10 What is the difference between `query_relevance` and `ground_truth_alignment`?
<!-- src: reference/metrics.md#system-metrics, use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation, ui-guide/evaluations.md#creating-an-evaluation, use-cases/ext-eval-ui.md#create-an-evaluation-on-morganabench -->
They check different things. `ground_truth_alignment` (Ground Truth Alignment in the UI) compares the agent's response with the reference answer in the benchmark, so it tells you how well the response matches the expected ground truth. `query_relevance` (Relevance to Request) compares the response with the user's request, so it tells you whether the response addresses what was asked. An answer can therefore be relevant without matching the reference answer, for example a fluent, on-topic reply that gets the facts wrong. Use `ground_truth_alignment`, the default and recommended correctness metric for search and documents output, to judge correctness, and `query_relevance` to check that responses stay on topic.

See also: [Metrics: System metrics](reference/metrics.md#system-metrics), [Step 5: Select metrics](use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation)

### 8.11 What does `refusal` measure?
<!-- src: reference/metrics.md#system-metrics, use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
The rate at which the agent refuses requests it was expected to answer. Each case scores `0` or `1`, and lower is better. Cases whose expectations include a refusal are ineligible, so the score counts only refusals the benchmark did not call for.

See also: [Metrics: System metrics](reference/metrics.md#system-metrics)

### 8.12 What does `tool_call_correctness` measure?
<!-- src: reference/metrics.md#system-metrics -->
The rate at which the agent makes every expected tool call with the right arguments. Each case scores `0` or `1`, and higher is better. It applies only to tool-use benchmarks.

See also: [Metrics: System metrics](reference/metrics.md#system-metrics)

### 8.13 What does `no_tool_call_correctness` measure?
<!-- src: reference/metrics.md#system-metrics, reference/metrics.md#per-case-scores -->
How correct the agent's response is when no tool call is expected. It is scored from `0.0` to `1.0`, and higher is better. Calling a tool scores `0`; otherwise the response is graded against the case's compliance expectations (`1` if all pass, `0` if any fail) or, when it has none, by its alignment with the expected response. It applies only to tool-use benchmarks, and a case without a no-tool-call expectation (an item with `expect` set to `no_tool_called` in `expectations`) is ineligible.

See also: [Metrics: System metrics](reference/metrics.md#system-metrics)

### 8.14 Should I look at benchmark-level scores or per-case scores?
<!-- src: reference/metrics.md#metrics -->
Both. The benchmark-level figure is the headline to compare between agent versions, prompts or models, while the per-case scores show which cases the agent handled badly on that aspect and what they have in common.

See also: [Metrics](reference/metrics.md#metrics)

### 8.15 What does a benchmark-level metric result report?
<!-- src: reference/metrics.md#benchmark-level-results -->
`n_total`, `n_scored`, `n_ineligible`, `n_errors`, `mean_score` (the average over scored cases only, `null` if none were scored) and `confidence_interval`; `n_scored + n_ineligible + n_errors` always equals `n_total`. Results are keyed by the metric name for a system metric (such as `ground_truth_alignment`) and by `custom:<metric_id>` for a custom metric.

See also: [Metrics: Benchmark-level results](reference/metrics.md#benchmark-level-results)

### 8.16 How is the confidence interval computed and when is it missing?
<!-- src: reference/metrics.md#benchmark-level-results -->
It is a 95% confidence interval for the average, clamped to the metric's own value range. It is `null` when it cannot be computed, for example with a single scored case.

See also: [Metrics: Benchmark-level results](reference/metrics.md#benchmark-level-results)

### 8.17 What do the colors on an evaluation's scores mean?
<!-- src: reference/metrics.md#reading-a-score -->
They show where a score falls in the metric's range, the same way on the Overview cards, the Case details tab and the Segments table. For a higher-is-better metric, 80% of the range or more is good, 60-79% fair and below 60% poor; for a lower-is-better metric, 20% or less is good, 21-40% fair and above 40% poor. The colors depend on the metric's range, not on the evaluation's overall score.

See also: [Metrics: Reading a score](reference/metrics.md#reading-a-score)

### 8.18 What happens to each case when a metric scores it?
<!-- src: reference/metrics.md#per-case-scores -->
It ends in exactly one of three states: Scored (counted in the average), Ineligible (it lacks something the metric requires, so it is reported but left out of the average) or Error (scoring failed, most often because a content-policy filter blocked the judge, and it is left out of the average).

See also: [Metrics: Per-case scores](reference/metrics.md#per-case-scores)

### 8.19 Why is a case marked ineligible for a metric, and what do the codes mean?
<!-- src: reference/metrics.md#per-case-scores -->
It lacks something the metric requires, and the code, shown on hover in the results table, says what: `MISSING_EXPECTED_RESPONSE` (no reference answer in `expectations`), `MISSING_INPUT_MESSAGES` (no `inputs.messages`, or the last message is not from the user), `MISSING_NO_TOOL_CALL_EXPECTATION` (no no-tool-call expectation in `expectations`), `MISSING_AGENT_RESPONSE` (no `outputs.response`) and `MISSING_RETRIEVED_CONTEXT` (no retrieved documents in `outputs.trace`).

See also: [Metrics: Per-case scores](reference/metrics.md#per-case-scores)

### 8.20 What happens if my agent produced no response for a case?
<!-- src: reference/metrics.md#per-case-scores -->
System metrics treat a missing or empty agent response as a failure by the agent, not as missing data: `ground_truth_alignment`, `faithfulness` and `context_sufficiency` score `0.0` and `refusal` scores `1.0`. For a custom metric, a missing response makes the case ineligible when `agent_response` is `REQUIRED`, and it is scored anyway when `OPTIONAL`.

See also: [Metrics: Per-case scores](reference/metrics.md#per-case-scores)

### 8.21 What is a custom metric and when should I use one?
<!-- src: reference/metrics.md#custom-metrics, system-overview.md#metrics-what-counts-as-good-behaviour -->
A custom metric is an LLM-judge scorer for a standard particular to your product, such as always offering an escalation path, citing the governing policy or never speculating medically. You write the criteria in plain language, choose what the judge sees and the shape of its score, and every case is scored against it.

See also: [Metrics: Custom metrics](reference/metrics.md#custom-metrics)

### 8.22 Are custom metrics reusable, and must their names be unique?
<!-- src: reference/metrics.md#custom-metrics, system-overview.md#metrics-what-counts-as-good-behaviour -->
Custom metrics belong to your organization, and one definition can be applied to as many evaluations as you like. A metric's name must be unique among your organization's active metrics.

See also: [Metrics: Custom metrics](reference/metrics.md#custom-metrics)

### 8.23 How do I create a custom metric in the web UI? Can you show an example?
<!-- src: reference/metrics.md#custom-metrics, reference/metrics.md#definition, reference/metrics.md#a-worked-example, ui-guide/metrics.md#creating-a-custom-metric -->
Go to **Metrics**, then **Create Metric**, which holds the config editor and the score preview. Give the metric a name, an optional description and a config. For example, this 1 to 5 politeness metric reads the request and the agent's prose, ignores retrieval and the reference answer, and skips any test case where the agent produced nothing:

```json
{
  "name": "Tone Politeness",
  "description": "Whether the agent's answer stays polite and professional.",
  "config": {
    "scoring_instructions": "Score the politeness and professionalism of the agent response, given the user's request. 1 = dismissive, curt, or blaming the user. 2 = noticeably brusque. 3 = neutral and businesslike. 4 = courteous. 5 = warm and courteous, and explicitly offers further help. Judge only tone and register — never whether the answer is correct, complete, or well formatted.",
    "direction": "HIGHER_IS_BETTER",
    "score_type": "INTEGER_SCALE",
    "integer_scale": { "min": 1, "max": 5 },
    "input": {
      "conversation": "REQUIRED",
      "retrieved_context": "DISABLED",
      "reference": "DISABLED",
      "agent_response": "REQUIRED"
    }
  }
}
```

A binary metric that checks no medical advice is given would instead use `"score_type": "BINARY"` with `integer_scale` omitted, and `"direction": "LOWER_IS_BETTER"` if `1` marks the violation.

See also: [Metrics: A worked example](reference/metrics.md#a-worked-example), [Metrics: Definition](reference/metrics.md#definition)

### 8.24 What fields define a custom metric?
<!-- src: reference/metrics.md#definition -->
A name, an optional description, and a config with `scoring_instructions` (up to 20,000 characters), `direction` (`HIGHER_IS_BETTER` or `LOWER_IS_BETTER`), `score_type` (`BINARY` or `INTEGER_SCALE`), `integer_scale` (only for `INTEGER_SCALE`) and `input`.

See also: [Metrics: Definition](reference/metrics.md#definition)

### 8.25 What score types can a custom metric use?
<!-- src: reference/metrics.md#definition -->
`BINARY` is a pass/fail score reported as `0` or `1`. `INTEGER_SCALE` takes an inclusive `{min, max}` with `max > min`, including negative ones such as `-2` to `2`, and `integer_scale` must be omitted for `BINARY`.

See also: [Metrics: Definition](reference/metrics.md#definition)

### 8.26 Why must I explain the scale in the scoring instructions?
<!-- src: reference/metrics.md#definition -->
`integer_scale` only tells the judge which integers are legal, not what they mean. Spell out the anchors in `scoring_instructions`, for example "1 = dismissive, 3 = neutral, 5 = warm and explicitly offers further help".

See also: [Metrics: Definition](reference/metrics.md#definition)

### 8.27 What does the `input` setting of a custom metric control?
<!-- src: reference/metrics.md#inputs -->
It nominates which parts of each case the judge sees: `conversation` (from `inputs.messages`), `agent_response` (from `outputs.response`), `retrieved_context` (from `outputs.trace`) and `reference` (the reference answer, from `expectations`). Each is `REQUIRED` (always seen; a case missing it is ineligible), `OPTIONAL` (seen when present; the case is still scored) or `DISABLED` (never seen), and at least one must be `REQUIRED`.

See also: [Metrics: Inputs](reference/metrics.md#inputs)

### 8.28 How does a custom metric's judge read the reference and the agent response?
<!-- src: reference/metrics.md#the-reference-and-the-response -->
The reference answer as a list of claims, and the agent response as prose, exactly as the agent wrote it. Neither is configurable: each input only takes `REQUIRED`, `OPTIONAL` or `DISABLED`.

See also: [Metrics: The reference and the response](reference/metrics.md#the-reference-and-the-response)

### 8.29 Where does a custom metric's reference answer come from?
<!-- src: reference/metrics.md#the-reference-and-the-response -->
From the case's `expectations`. The judge gets it as a list of claims, which are extracted from the expected response when the case has no claims of its own.

See also: [Metrics: The reference and the response](reference/metrics.md#the-reference-and-the-response)

### 8.30 What does the judge receive for a custom metric in the UI?
<!-- src: reference/metrics.md#what-the-judge-receives -->
In the UI, the `scoring_instructions` start with a preamble generated automatically from the input fields you selected, followed by your own criteria.

See also: [Metrics: What the judge receives](reference/metrics.md#what-the-judge-receives)

### 8.31 Can I test a custom metric before saving it in the web UI?
<!-- src: reference/metrics.md#preview-before-you-save -->
On the authoring page, import an agent-output file, select rows and run a preview to score the draft against real rows.

See also: [Metrics: Preview before you save](reference/metrics.md#preview-before-you-save)

### 8.32 How do I browse metrics in the web UI?
<!-- src: ui-guide/metrics.md#metrics-gallery, ui-guide/metrics.md#metric-detail-page -->
The **Metrics** page is a gallery of the system metrics, grouped by category, and **Your Metrics**, your organization's custom metrics. Each card shows the metric's name, a short description and its score type; selecting it opens a detail page with its direction, range and description, plus the judge configuration for a custom metric.

See also: [UI Guide: Metrics](ui-guide/metrics.md)

### 8.33 Can I edit, duplicate or delete a custom metric in the web UI?
<!-- src: ui-guide/metrics.md#metric-detail-page, ui-guide/metrics.md#duplicating-and-deleting -->
You can edit the description of your own custom metrics, but not the name or configuration. To change those, use **Duplicate** on the detail page, which opens Create Metric pre-filled. **Delete** is available for your own custom metrics, not for system metrics or the bundled example; past evaluations keep their numbers, and a deleted metric used by one stays reachable from it with a **Deleted** badge and a **Restore** button.

See also: [UI Guide: Duplicating and Deleting](ui-guide/metrics.md#duplicating-and-deleting)

### 8.34 How do I choose metrics for an evaluation in the web UI?
<!-- src: use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation -->
In Step 5 of the evaluation flow, select one or more of the metrics offered for the benchmark type.

See also: [Step 5: Select metrics](use-cases/mb-eval-ui.md#step-5-select-evaluation-metrics-and-run-evaluation)

## 9. Troubleshooting and limits

### 9.1 Why did my benchmark fail, and when should I contact my administrator?
<!-- src: ui-guide/benchmarks.md#troubleshooting-failed-benchmarks -->
Common causes are a linked corpus that is not Ready or has no indexed content, more than 70% of test case attempts failing (for example a specification and corpus mismatch), or the organization's lifetime test case quota being reached (HTTP 429); the detail page's error messages describe the problem. To end a generation early, use **Stop Generation** on the detail page. Contact your administrator if a benchmark is stuck in Generating and Stop Generation does not resolve it, you hit organization-level limits (quota, hourly rate limit), or generation failed with no actionable message.

See also: [UI Guide: Troubleshooting Failed Benchmarks](ui-guide/benchmarks.md#troubleshooting-failed-benchmarks)

### 9.2 What are the benchmark limits?
<!-- src: ui-guide/benchmarks.md#limits -->
Name: 255 characters; description: 1,000 characters; cases per benchmark: at least 1, with no per-benchmark maximum but counted against the organization quota. The organization lifetime quota is 10,000 cases (default, admin-configurable), benchmark creation is limited to 10 per hour per organization, and max conversation turns is 4 by default (admin-configurable).

See also: [UI Guide: Limits](ui-guide/benchmarks.md#limits)

### 9.3 Why was my agent output file rejected?
<!-- src: ui-guide/evaluations.md#format-overview, ui-guide/evaluations.md#two-accepted-shapes, use-cases/mb-eval-ui.md#tips-and-best-practices -->
The validation rules require valid JSON on every line, a non-null `outputs` field, a valid `outputs.trace` array, and one shape per file (every line outputs-only, or every line a complete example). Whenever `benchmark_id` is present it is cross-checked, and a file naming a different benchmark than the evaluation is linked to is rejected. Keep the response format matching the SDK JSON schema exactly.

See also: [UI Guide: Format Overview](ui-guide/evaluations.md#format-overview)

### 9.4 Why do some cases show errors or ineligible in evaluation results?
<!-- src: use-cases/mb-eval-cli.md#step-6-look-at-the-scores, reference/metrics.md#per-case-scores -->
Each metric ends in one of three states per case: scored, ineligible (the case lacks something the metric requires, such as an expected response) or error (scoring failed, most often because a content-policy filter blocked the judge). Ineligible and error cases are left out of the average. The per-metric summary reports `n_scored`, `n_errors`, `n_ineligible` and `n_total`; for example, one error among 50 cases gives `n_scored` 49.

See also: [Metrics: Per-case scores](reference/metrics.md#per-case-scores)

### 9.5 Why do I get AccessDenied or a connection error when running the example agent?
<!-- src: use-cases/mb-eval-ui.md#running-the-agent -->
You have probably not enabled Bedrock model access for your region; the tutorial's example agent calls AWS Bedrock models.

See also: [Running the agent](use-cases/mb-eval-ui.md#running-the-agent)

## 10. Glossary

### 10.1 What is a Bearer token?
<!-- src: getting-started.md#authentication -->
The `access_token` returned by `POST /api/v1/auth/login`, sent in the `Authorization: Bearer` header of every API request.

See also: [Getting Started: Authentication](getting-started.md#authentication)

### 10.2 What is the MorganaBench SDK?
<!-- src: agent-integ/index.md#before-you-start, index.md#user-guides -->
A Python and TypeScript library for working with benchmark, executed benchmark and evaluation data formats; the Python package is installed with `pip install "morgana-bench-sdk>=0.5"`.

See also: [Agent integration](agent-integ/index.md#before-you-start)

### 10.3 What is a seed example?
<!-- src: reference/more-like-this.md#seed-examples -->
A single representative user request that MorganaBench emulates when generating a More Like This benchmark; it shapes phrasing, tone, length and structure, not subject matter.

See also: [More Like This: Seed examples](reference/more-like-this.md#seed-examples)

### 10.4 What is a Library specification?
<!-- src: ui-guide/specifications.md#managing-specifications -->
A named, reusable specification YAML stored in the Specifications Library; it is a template whose YAML is snapshotted onto each benchmark at creation.

See also: [UI Guide: Managing Specifications](ui-guide/specifications.md#managing-specifications)

### 10.5 What are categories and labels?
<!-- src: ui-guide/specifications.md#specification-editor, system-overview.md#specifications-controlling-the-mix -->
A category is an axis along which generated test cases vary; its labels name the alternatives along that axis, and their weights set how often each is drawn.

See also: [UI Guide: Specification Editor](ui-guide/specifications.md#specification-editor)

### 10.6 What is MCP tools/list?
<!-- src: ui-guide/corpora.md#tool-definition-format, ui-guide/sandbox.md#providing-content -->
The Model Context Protocol schema for listing tools, shaped as `{"tools": [...]}`; it is the recommended, canonical format for tool definitions in a Tools corpus and in the Sandbox.

See also: [UI Guide: Tool Definition Format](ui-guide/corpora.md#tool-definition-format)

### 10.7 What is NDJSON / JSONL?
<!-- src: ui-guide/evaluations.md#agent-output-format, ui-guide/benchmarks.md#downloading-results -->
Newline-delimited JSON, one JSON object per line; it is the format of generated benchmarks and agent output files.

See also: [UI Guide: Agent Output Format](ui-guide/evaluations.md#agent-output-format)

### 10.8 What is an outputs-only agent output file?
<!-- src: ui-guide/evaluations.md#two-accepted-shapes -->
An agent output file whose lines carry only the benchmark case `id` and your agent's `outputs`; MorganaBench reads `inputs` and `expectations` back from the benchmark.

See also: [UI Guide: Two Accepted Shapes](ui-guide/evaluations.md#two-accepted-shapes)

### 10.9 What is a system metric versus a custom metric?
<!-- src: ui-guide/index.md#metrics -->
System metrics are the fixed set MorganaBench ships (for example `ground_truth_alignment`, `refusal`, `tool_call_correctness`); custom metrics are your own LLM-judge scorers.

See also: [UI Guide: Metrics](ui-guide/index.md#metrics)

### 10.10 What is an ineligible case?
<!-- src: reference/metrics.md#per-case-scores -->
A test case that lacks something a metric requires, such as an expected response; it is reported with a code but not scored and is left out of the metric's average.

See also: [Metrics: Per-case scores](reference/metrics.md#per-case-scores)

## 11. CLI: Getting started

### 11.1 What is the MorganaBench CLI?
<!-- src: cli-guide/index.md#cli-guide, getting-started.md#cli, agent-integ/index.md#before-you-start -->
The CLI (`mb`) is a single-binary command-line tool, installed with a script, covering corpora, specifications, benchmarks, evaluations and custom metrics, and used to log in. It is designed for interactive use and for scripting by CI pipelines and AI agents.

See also: [CLI Guide](cli-guide/index.md#cli-guide)

### 11.2 How do I install the CLI?
<!-- src: getting-started.md#cli, cli-guide/index.md#one-liner-install -->
Run `curl -fsSL https://raw.githubusercontent.com/morganalabs/mb-cli/main/install.sh | bash`. It places the `mb` binary in `/usr/local/bin`; on macOS that directory is not writable by default, so the installer runs `sudo` and macOS asks for your local system password (not your MorganaBench credentials). To avoid `sudo`, set `INSTALL_DIR="$HOME/.local/bin"`.

See also: [CLI Guide: One-liner install](cli-guide/index.md#one-liner-install)

### 11.3 How do I install a specific CLI version?
<!-- src: cli-guide/index.md#installing-a-specific-version -->
Set `MB_VERSION` when running the installer, for example `MB_VERSION=0.4.0`. Use the bare version number without a leading `v` (`v0.4.0` will not resolve); available versions are on the GitHub releases page. Omit it to install the latest release, and run `mb version` to confirm what is installed.

See also: [CLI Guide: Installing a specific version](cli-guide/index.md#installing-a-specific-version)

### 11.4 How do I log in with the CLI?
<!-- src: cli-guide/index.md#interactive-login, cli-guide/index.md#other-auth-commands -->
Run `mb login --email you@example.com --password your-password` with the same credentials as the web app, or run `mb login` with no flags to be prompted (the password is not echoed). The email is case-sensitive, so use the exact case your account was registered with. The token is stored in `~/.morganabench/tokens.yaml` (mode 0600) and used automatically; `mb whoami` shows the current user and `mb logout` clears stored credentials.

See also: [CLI Guide: Interactive login](cli-guide/index.md#interactive-login)

### 11.5 Which API URL does the CLI use?
<!-- src: cli-guide/index.md#interactive-login -->
The CLI talks to the same host as the web app; for the hosted service that is `https://morganabench.morganalabs.ai`, which is also the default. There is no separate API URL (the REST API is served under `/api/v1` on that host). You only need `--url`, or the `mb login` prompt, to point at a different environment such as staging.

See also: [CLI Guide: Interactive login](cli-guide/index.md#interactive-login)

### 11.6 What output formats does the CLI support?
<!-- src: cli-guide/index.md#output-formats -->
`--output` accepts `human` (the default when stdout is a terminal: colored tables and progress), `json` (the default when output is piped: raw API JSON for `jq`) and `table` (tab-separated values). Progress and status messages go to stderr and the parseable result goes to stdout.

See also: [CLI Guide: Output Formats](cli-guide/index.md#output-formats)

### 11.7 What are the CLI command aliases and system commands?
<!-- src: cli-guide/index.md#aliases, cli-guide/index.md#system -->
Aliases: `bm` is `benchmark`, `specification` is `spec`, `evaluation` is `eval`, `metric` is `metrics` and `corpora` is `corpus`. System commands: `mb ping` checks connectivity, `mb health` checks server health, `mb version` shows CLI and server versions and `mb limits` shows your resource limits.

See also: [CLI Guide: Aliases](cli-guide/index.md#aliases)

### 11.8 What global flags does the CLI support?
<!-- src: cli-guide/index.md#global-flags, cli-guide/index.md#configuration -->
`--url URL`, `--token TOKEN`, `--output FORMAT` (`json`, `table`, `human`), `--quiet`, `--no-wait`, `--timeout SECS` (default 30m), `--profile NAME` (default `default`), `--config PATH` (default `~/.morganabench/config.yaml`) and `--dry-run` (print what a mutating command would do without executing it). Flags always take precedence over config file values; stored tokens live in `~/.morganabench/tokens.yaml` (mode 0600).

See also: [CLI Guide: Global Flags](cli-guide/index.md#global-flags)

### 11.9 What filtering flags do CLI list commands support?
<!-- src: cli-guide/index.md#list-filtering -->
`--status S` (repeatable), `--search Q` (text search by name), `--sort FIELD` (`name`, `status`, `created_at`, `updated_at`), `--order DIR` (`asc` or `desc`), `--limit N` (page size) and `--offset N` (items to skip). Example: `mb corpus list --status ready --sort created_at --order desc --limit 10`.

See also: [CLI Guide: List Filtering](cli-guide/index.md#list-filtering)

### 11.10 How do I quick-start a benchmark from a Documents corpus with the CLI?
<!-- src: getting-started.md#cli, cli-guide/index.md#full-pipeline-interactive, ui-guide/benchmarks.md#benchmark-modes -->
A Documents corpus (`--type docs`) produces a Documents benchmark, which tests whether an agent retrieves the right documents and answers correctly (the CLI quick start calls this a RAG benchmark). The steps are: log in, then run `mb corpus create "My Corpus" --file data.tgz --type docs`, `mb benchmark create --corpus <corpus-id> -n 10 --name "My Benchmark"` (waits for completion; add `--spec-id <library-spec-id>` to use a saved specification), run your agent and save its output to `executed.jsonl`, then `mb eval create "My Eval" --file executed.jsonl --benchmark <benchmark-id>`. Download results with `mb eval download <eval-id> -o results.json`.

See also: [UI Guide: Benchmark Modes](ui-guide/benchmarks.md#benchmark-modes), [CLI Guide: Full pipeline](cli-guide/index.md#full-pipeline-interactive)

### 11.11 How do I quick-start a benchmark from a Tools corpus with the CLI?
<!-- src: getting-started.md#cli, cli-guide/index.md#tools-pipeline-tool-calling-benchmarks, ui-guide/benchmarks.md#benchmark-modes -->
A Tools corpus (`--type tools`) produces a Tools benchmark, which tests whether an agent picks the right tool with the correct parameters. The steps are: create a tools corpus with `mb corpus create "API Tools" --file tools.json --type tools`, generate the benchmark with `mb benchmark create --corpus <corpus-id> -n 10 --spec ./tools-spec.yaml --name "Tools Benchmark"` (or `--spec-id`), run your agent capturing tool-call traces to `executed.jsonl`, then evaluate with `mb eval create "Agent Tools Eval" --file executed.jsonl --benchmark <benchmark-id> --metrics tool_call_correctness`.

See also: [UI Guide: Benchmark Modes](ui-guide/benchmarks.md#benchmark-modes), [CLI Guide: Tools pipeline](cli-guide/index.md#tools-pipeline-tool-calling-benchmarks)

### 11.12 How long does the CLI wait for a resource, and can I skip waiting?
<!-- src: cli-guide/index.md#polling-and-waiting -->
By default, `create` commands poll until the resource reaches `ready` or `failed`, for up to 30 minutes. Use `--no-wait` to return immediately, then `mb <resource> wait <id>` (optionally with `--timeout SECS`) to wait later. `--timeout` only bounds the CLI's waiting; it does not cancel the server-side job.

See also: [CLI Guide: Polling and Waiting](cli-guide/index.md#polling-and-waiting)

### 11.13 How do I use the CLI in scripts and CI?
<!-- src: cli-guide/index.md#token-based-ci-scripting, cli-guide/index.md#ci-pipeline-scripted, getting-started.md#cli -->
Run `mb login ... --print-token` to get an access token, then pass `--url` and `--token` (and `--output json`) on each command so no stored config is needed. For example: `MB="mb --url $SERVER_URL --token $TOKEN --output json --quiet"`, then `CORPUS_ID=$($MB corpus create "CI Corpus" --file data.tgz | jq -r '.id')`.

See also: [CLI Guide: CI pipeline](cli-guide/index.md#ci-pipeline-scripted)

### 11.14 Which web UI features have no CLI equivalent?
<!-- src: cli-guide/index.md#what-the-cli-doesnt-cover -->
Four editor-time aids are UI-only by design: More Like This candidate discovery ("Discover more examples"), the Sandbox, the specification review copilot, and the metric preview shown while authoring a custom metric. For More Like This, the CLI lets you supply your own seed examples directly.

See also: [CLI Guide: What the CLI doesn't cover](cli-guide/index.md#what-the-cli-doesnt-cover)

## 12. CLI: Corpora

### 12.1 How do I create a corpus from the CLI?
<!-- src: cli-guide/corpus.md#corpus -->
Run `mb corpus create "My Corpus" --file data.tgz --type docs`. Docs corpora accept `.tgz` / `.tar.gz`, `.zip` and `.parquet`; for a tools corpus use `--type tools` with an MCP-formatted JSON file or a zip/tgz archive of JSON files. Unless `--no-wait` is set, the command polls until the corpus is `ready` or `failed`.

See also: [CLI Guide: Corpus](cli-guide/corpus.md#corpus)

### 12.2 How do I use a Parquet file for a Documents corpus from the CLI?
<!-- src: cli-guide/corpus.md#corpus -->
Each row becomes one document. The columns are expected to be named `id` and `content` by default; override with `--id-column`, `--content-column` and `--metadata-columns` (for example `--metadata-columns author,date,source`).

See also: [CLI Guide: Corpus](cli-guide/corpus.md#corpus)

### 12.3 How do I list, search and sort corpora from the CLI?
<!-- src: cli-guide/corpus.md#corpus, cli-guide/index.md#list-filtering -->
Use `mb corpus list [--status ready] [--search "query"] [--sort created_at] [--order desc]` and `mb corpus get <id>`; the same filtering flags (plus `--limit` and `--offset`) apply to every `list` command.

See also: [CLI Guide: List Filtering](cli-guide/index.md#list-filtering)

### 12.4 How do I rename, download or wait on a corpus from the CLI?
<!-- src: cli-guide/corpus.md#corpus -->
Use `mb corpus update <id> --name "New Name"`, `mb corpus download <id> -o corpus.zip` (the format matches the original file, so check `file_name` in `mb corpus get <id>` for the extension) and `mb corpus wait <id> --timeout 600` to wait for `ready`.

See also: [CLI Guide: Corpus](cli-guide/corpus.md#corpus)

### 12.5 How do I delete a corpus from the CLI, and who can?
<!-- src: cli-guide/corpus.md#corpus -->
Run `mb corpus delete <id>`. Deletion is immediate and permanent. Non-admin users can delete corpora in Ready or Failed status, admins in any status (including still processing), and example (pre-loaded) corpora can never be deleted. Linked benchmarks are not deleted, but they can no longer reference the source data.

See also: [CLI Guide: Corpus](cli-guide/corpus.md#corpus)

## 13. CLI: Specifications

### 13.1 How do I create a specification in the CLI?
<!-- src: cli-guide/specification.md#specification -->
CLI: `mb spec create "My Spec" --yaml spec.yaml [--corpus-type docs|tools]`. `--yaml` reads from stdin when omitted or set to `-`, for example `cat spec.yaml | mb spec create "My Spec" --corpus-type docs`.

See also: [CLI Guide: Specification](cli-guide/specification.md#specification)

### 13.2 How do I get a default specification or browse the library in the CLI?
<!-- src: cli-guide/specification.md#specification -->
CLI: `mb spec library` browses the specification library, and `mb spec get-default` returns the default specification for a corpus type (RAG by default; add `--corpus-type tools` for the tools default). Edit the default and save it as your own with `mb spec create`.

See also: [CLI Guide: Specification](cli-guide/specification.md#specification)

### 13.3 How do I list, edit or delete a Library specification from the CLI?
<!-- src: cli-guide/specification.md#specification -->
CLI: `mb spec list`, `mb spec get <id>`, `mb spec update <id> --name "Updated Spec"`, `mb spec delete <id>`. Example (pre-loaded) specifications cannot be deleted.

See also: [CLI Guide: Specification](cli-guide/specification.md#specification)

## 14. CLI: Benchmarks

### 14.1 How do I create a benchmark from the CLI?
<!-- src: cli-guide/benchmark.md#benchmark -->
CLI: `mb benchmark create --corpus <id> -n 10 --spec ./spec.yaml --name "My Benchmark"`. Exactly one source is required: `--spec` (a YAML file path, or `-` for stdin), `--spec-id` (a saved Library specification ID, fetched server-side) or piped stdin. Unless `--no-wait` is set, the command polls until the benchmark is `ready` or `failed`.

See also: [CLI Guide: Benchmark](cli-guide/benchmark.md#benchmark)

### 14.2 What is the difference between --spec and --spec-id?
<!-- src: cli-guide/benchmark.md#benchmark -->
`--spec` takes a path to a YAML file (or `-` for stdin), while `--spec-id` takes the ID of a saved Library specification. They are mutually exclusive, and with `--spec` set, piped stdin is ignored. Either way the YAML is snapshotted onto the benchmark, so later edits to the Library specification do not affect it.

See also: [CLI Guide: Benchmark](cli-guide/benchmark.md#benchmark)

### 14.3 What are the CLI rules for `--spec` and `--spec-id`?
<!-- src: cli-guide/benchmark.md#benchmark -->
Exactly one source is required: `--spec`, `--spec-id` or piped stdin. `--spec` and `--spec-id` are mutually exclusive, the YAML is capped at 200,000 characters, and older CLIs used `--spec` for a saved specification ID, so passing an ID to `--spec` now fails with "spec file <id> does not exist".

See also: [CLI Guide: Benchmark](cli-guide/benchmark.md#benchmark)

### 14.4 How do I create a More Like This benchmark from the CLI?
<!-- src: cli-guide/benchmark.md#more-like-this-mlt, cli-guide/index.md#what-the-cli-doesnt-cover -->
CLI: `mb benchmark create ... --spec ./scenario-only-spec.yaml --seed-examples seed-examples.ndjson`, where the specification is scenario-only, meaning one with no `categories` key. The flag takes NDJSON (one SDK `Example` object per line, the same format as benchmark JSONL), only the last message of each line is used and it must have role `user`, up to 1000 seed examples are accepted, and `-` reads stdin (for example `head -n 5 benchmark.jsonl | mb benchmark create ... --seed-examples -`). The CLI and API accept seed examples by file or manually but have no propose-and-review step like the UI's "discover new examples".

See also: [CLI Guide: More like this (MLT)](cli-guide/benchmark.md#more-like-this-mlt)

### 14.5 How do I download a benchmark from the CLI?
<!-- src: cli-guide/benchmark.md#benchmark -->
CLI: `mb benchmark download <id> -o benchmark.jsonl [--limit 100] [--offset 0]`. The file is JSONL (newline-delimited JSON), one generated case per line, following the MorganaBench SDK `Example` schema.

See also: [CLI Guide: Benchmark](cli-guide/benchmark.md#benchmark)

### 14.6 How do I list, update, stop or wait for a benchmark from the CLI?
<!-- src: cli-guide/benchmark.md#benchmark -->
CLI: `mb benchmark list [--corpus-type docs|tools]`, `mb benchmark get <id>`, `mb benchmark update <id> --name "Updated"` and `mb benchmark wait <id> --timeout 1800`. `mb benchmark stop <id>` stops an in-progress generation and keeps the partial results; it works only while the benchmark is generating.

See also: [CLI Guide: Benchmark](cli-guide/benchmark.md#benchmark)

### 14.7 How do I delete a benchmark from the CLI, and who can?
<!-- src: cli-guide/benchmark.md#benchmark -->
CLI: `mb benchmark delete <id> [--force] [--uncharge]`. Deletion permanently removes the benchmark and its generated data. Non-admin users can delete Ready or Failed benchmarks, admins can delete in any status, and pre-loaded example benchmarks cannot be deleted.

See also: [CLI Guide: Benchmark](cli-guide/benchmark.md#benchmark)

## 15. CLI: Evaluations

### 15.1 What do I need to evaluate from the CLI, and how long does a login last?
<!-- src: use-cases/mb-eval-cli.md#prerequisites, use-cases/mb-eval-cli.md#step-1-confirm-the-cli-is-installed, use-cases/mb-eval-cli.md#step-2-log-in, use-cases/ext-eval-cli.md#setup -->
CLI: install `mb` (`curl -fsSL https://raw.githubusercontent.com/morganalabs/mb-cli/main/install.sh | bash`), confirm it with `mb version` (`command not found: mb` means it is not installed), and have a MorganaBench account and your server URL (the public server is `https://morganabench.morganalabs.ai/`). Log in with `mb login --url <server-url> --email you@example.com --password <password>`, or omit `--password` to be prompted, and check it with `mb whoami`. The token is stored in `~/.morganabench/tokens.yaml` and lasts 24 hours, so run `mb login` again when it expires.

See also: [CLI Step 2: Log in](use-cases/mb-eval-cli.md#step-2-log-in)

### 15.2 Where do I get a ready-made executed benchmark to try the CLI evaluation?
<!-- src: use-cases/mb-eval-cli.md#step-3-get-the-agents-answers -->
CLI: the tutorial downloads `Inaugural_speeches_benchmark_executed.jsonl` (50 test cases about U.S. inaugural speeches, each already answered) with `curl -o` from the `morganalabs/mb-resources` GitHub repository. Each line has `inputs` (the question), `expectations` (the reference answer) and `outputs` (the agent's answer), and `outputs.response` is what gets scored.

See also: [CLI Step 3: Get the agent's answers](use-cases/mb-eval-cli.md#step-3-get-the-agents-answers)

### 15.3 How do I evaluate a MorganaBench benchmark from the CLI?
<!-- src: use-cases/mb-eval-cli.md#step-5-create-the-evaluation, use-cases/mb-eval-cli.md#step-6-look-at-the-scores -->
CLI: with an executed benchmark file, run `mb eval create "<name>" --file <executed.jsonl> --metrics ground_truth_alignment,refusal`. Then use `mb eval get <id>` for the summary scores and `mb eval download <id> -o results.json` for per-case results.

See also: [CLI Step 5: Create the evaluation](use-cases/mb-eval-cli.md#step-5-create-the-evaluation)

### 15.4 How do I run my agent on a benchmark and evaluate it from the CLI?
<!-- src: agent-integ/index.md#evaluating-your-agent-on-a-benchmark -->
CLI: at its simplest this is one pipeline: `mb benchmark download <benchmark-id> | python run_your_agent.py | mb eval create "<name>" --benchmark <benchmark-id> --metrics <your-metrics>`. Each stage streams JSONL: `benchmark download` emits one example per line, your script rewrites each line with your agent's output, and `eval create` reads the result from stdin because `--file` is omitted. The middle script is the only part you write: it parses each line into an SDK `Example` (`mb.entities`), calls your agent in an `invoke_agent` function that maps `example.inputs` to your agent's format and its response back to `Outputs`, and prints the example. Install the SDK with `pip install "morgana-bench-sdk>=0.5"`; real integrations usually process examples concurrently so a full benchmark runs faster.

See also: [Agent integration](agent-integ/index.md#evaluating-your-agent-on-a-benchmark)

### 15.5 How do I evaluate an external benchmark from the CLI?
<!-- src: use-cases/ext-eval-cli.md#overview, use-cases/ext-eval-cli.md#create-an-evaluation-on-morganabench -->
Run your agent over the external benchmark and write each example as MorganaBench JSONL with the SDK, then create the evaluation. CLI: `mb eval create "Watson QA" --file executed_benchmark.jsonl --metrics ground_truth_alignment`, then `mb eval get <id>` and `mb eval download <id> -o <file>`. List the available metrics first with `mb metrics list`; `eval create` waits for the evaluation to finish (statuses `pending`, `processing`, then `ready`) and prints the evaluation ID to use in the later commands. In the tutorial, running the agent over the benchmark took typically two to five minutes.

See also: [Evaluate an external benchmark via the CLI](use-cases/ext-eval-cli.md#create-an-evaluation-on-morganabench)

### 15.6 How do I create an evaluation in the CLI?
<!-- src: cli-guide/evaluation.md#evaluation -->
CLI: `mb eval create "My Eval" --file executed.jsonl --metrics m1,m2 [--benchmark <id>] [--corpus <id>]`. `--file` must be JSONL (one object per line), at least one of `--metrics` or `--custom-metrics` is required, and `--benchmark` (or `--corpus`) optionally links the evaluation to a benchmark (or corpus).

See also: [CLI Guide: Evaluation](cli-guide/evaluation.md#evaluation)

### 15.7 Does `mb eval create` wait for the evaluation to finish?
<!-- src: cli-guide/evaluation.md#evaluation, cli-guide/index.md#polling-and-waiting, use-cases/mb-eval-cli.md#step-5-create-the-evaluation -->
CLI: yes. By default it polls until the evaluation reaches `ready` or `failed`, printing the status as it goes, which can take a few minutes, or up to 60 minutes longer while the benchmark's category discovery finishes. Use `--no-wait` to return immediately, `mb eval wait <id>` (or `mb eval wait <id> --timeout 3600`) to wait separately, or the global `mb --timeout 900 ...`. The default wait is 30 minutes, and a timeout only stops the CLI waiting; the evaluation keeps running on the server.

See also: [CLI Guide: Polling and Waiting](cli-guide/index.md#polling-and-waiting)

### 15.8 How do I capture the evaluation ID in a script?
<!-- src: use-cases/mb-eval-cli.md#step-5-create-the-evaluation -->
CLI: add `--output json --quiet` to `mb eval create` (`--quiet` suppresses progress lines, `--output json` gives machine-readable output) and read the `id` field, for example `EVAL_ID=$(mb eval create ... --output json --quiet | python3 -c 'import sys,json; print(json.load(sys.stdin)["id"])')`.

See also: [CLI Step 5: Create the evaluation](use-cases/mb-eval-cli.md#step-5-create-the-evaluation)

### 15.9 How do I choose metrics for an evaluation from the CLI?
<!-- src: cli-guide/evaluation.md#evaluation, use-cases/mb-eval-cli.md#step-4-see-which-metrics-are-available, cli-guide/metric.md#next-steps, use-cases/mb-eval-cli.md#step-5-create-the-evaluation -->
CLI: `--metrics` takes lower-case snake_case API identifiers (for example `ground_truth_alignment`, `query_relevance`, `tool_call_correctness`), not the UI display labels, separated by commas, as in `--metrics ground_truth_alignment,refusal`. Run `mb metrics list` to see the exact accepted names. Custom metrics are passed by ID with `--custom-metrics <id>` to `mb eval create` or `mb eval add-metrics`.

See also: [CLI Guide: Evaluation](cli-guide/evaluation.md#evaluation)

### 15.10 How do I score an evaluation with a custom metric in the CLI?
<!-- src: cli-guide/evaluation.md#evaluation -->
CLI: `--custom-metrics <metric-id>` takes custom metric IDs (comma-separated), not names; find them with `mb metrics list` (tagged `type: custom`). Use it alone or with `--metrics`, for example `--metrics ground_truth_alignment --custom-metrics <metric-id>`.

See also: [CLI Guide: Evaluation](cli-guide/evaluation.md#evaluation)

### 15.11 How do I add metrics to a ready evaluation from the CLI?
<!-- src: cli-guide/evaluation.md#evaluation, reference/evaluation.md#statuses -->
A `ready` evaluation is not closed: further metrics can be added, which scores the same rows again for the new metrics only. CLI: `mb eval add-metrics <id> --metrics refusal` or `--custom-metrics <metric-id>`; it re-uses the original agent output file, merges the new results into the same evaluation, and works only while the evaluation is `READY` and only for metrics not already on it.

See also: [CLI Guide: Evaluation](cli-guide/evaluation.md#evaluation)

### 15.12 How do I manage evaluations from the CLI?
<!-- src: cli-guide/evaluation.md#evaluation -->
CLI: `mb eval list [--benchmark <id>]`, `mb eval get <id>`, `mb eval update <id> --name "Updated"` and `mb eval wait <id>`. `mb eval` is also available as `mb evaluation`.

See also: [CLI Guide: Evaluation](cli-guide/evaluation.md#evaluation)

### 15.13 How do I read evaluation results from the CLI?
<!-- src: reference/evaluation.md#results, use-cases/mb-eval-cli.md#step-6-look-at-the-scores -->
Each metric gets a score per case plus a benchmark-level figure: the mean, its confidence interval, and how many cases were scored, ineligible or failed. CLI: `mb eval get <id>` and look at `results`, where each metric has `mean_score`, `confidence_interval`, `n_scored`, `n_errors`, `n_ineligible` and `n_total`; scores run from 0.0 to 1.0.

See also: [CLI Step 6: Look at the scores](use-cases/mb-eval-cli.md#step-6-look-at-the-scores)

### 15.14 How do I download evaluation results from the CLI?
<!-- src: cli-guide/evaluation.md#evaluation, use-cases/mb-eval-cli.md#step-7-download-the-detailed-results -->
CLI: `mb eval download <id> -o results.json`. To get the original agent output file instead, use `mb eval download-agent-output <id> -o agent-output.jsonl`. In the downloaded file each assessment has `name`, `value` (0.0 to 1.0), `error`, `ineligible`, `source` and `rationale`, and a null `rationale` means no explanation was recorded.

See also: [CLI Guide: Evaluation](cli-guide/evaluation.md#evaluation)

### 15.15 How do I delete an evaluation from the CLI, and who can?
<!-- src: cli-guide/evaluation.md#evaluation -->
CLI: `mb eval delete <id>`. Deletion permanently removes the evaluation and its results. Non-admin users can delete Ready or Failed evaluations, admins can delete in any status, and example (pre-loaded) evaluations cannot be deleted, even by an admin.

See also: [CLI Guide: Evaluation](cli-guide/evaluation.md#evaluation)

### 15.16 Can I automate evaluations in CI?
<!-- src: use-cases/mb-eval-cli.md#conclusion -->
CLI: yes. The sequence `mb eval create`, `mb eval get`, `mb eval download` is what the tutorial suggests dropping into a CI pipeline to score your agent on every change.

See also: [CLI Guide: CI pipeline](cli-guide/index.md#ci-pipeline-scripted)

## 16. CLI: Metrics

### 16.1 How do I list, delete or restore metrics in the CLI?
<!-- src: cli-guide/metric.md#the-unified-list, cli-guide/metric.md#metrics, cli-guide/metric.md#custom-metrics -->
`mb metrics list` shows system and custom metrics together: two sections in human mode (the system ones labelled `built-in`), one merged list with a `type` field in `--output json` or `--output table`. `--status`, `--sort`, `--limit` and `--offset` apply only to custom metrics, `--search` filters both by name, and `mb metrics delete <id>` soft-deletes while `mb metrics restore <id> [--new-name "..."]` restores, failing with `METRIC_NAME_CONFLICT` if another active metric took the name.

See also: [CLI Guide: The unified list](cli-guide/metric.md#the-unified-list)

### 16.2 How do system and custom metrics look in the CLI list?
<!-- src: cli-guide/metric.md#the-unified-list -->
System metrics use the metric name as `id`, have `direction` and `range` (for example `higher_is_better`, `0-1`) and no `status`; custom metrics have a UUID `id`, a `status` of `active` or `deleted`, and `null` direction and range. Descriptions appear in `--output json` and `mb metrics get <id>`, not in the human or table view.

See also: [CLI Guide: The unified list](cli-guide/metric.md#the-unified-list)

### 16.3 How do I create a custom metric from the CLI?
<!-- src: cli-guide/metric.md#metrics -->
`mb metrics create "Conciseness" --scoring-instructions "..." --direction higher_is_better --scale 1..5 --conversation required --agent-response required`, or `mb metrics create "Conciseness" --config-file ./conciseness.yaml` (YAML or JSON; `-` reads stdin).

See also: [CLI Guide: Metrics](cli-guide/metric.md#metrics)

### 16.4 Which custom metric fields must I set from the CLI?
<!-- src: cli-guide/metric.md#custom-metrics -->
A custom metric has a name, an optional description, and a config with `scoring_instructions`, `direction`, `score_type`, `integer_scale` (only for `INTEGER_SCALE`) and `input`. In the CLI, `scoring_instructions`, `direction`, `score_type` (or `--scale`) and `input` have no default and must be set, and the flags also accept `higher`/`lower`.

See also: [CLI Guide: Custom metrics](cli-guide/metric.md#custom-metrics)

### 16.5 How do I choose the score type of a custom metric from the CLI?
<!-- src: cli-guide/metric.md#custom-metrics -->
`BINARY` is a pass/fail score reported as `0` or `1`, and `INTEGER_SCALE` takes an inclusive `{min, max}`. In the CLI, `--scale 1..5` implies `integer_scale`; `--score-type integer_scale` without a scale, `binary` with a scale, or neither is an error.

See also: [CLI Guide: Custom metrics](cli-guide/metric.md#custom-metrics)

### 16.6 How do I set what the judge sees of a custom metric from the CLI?
<!-- src: cli-guide/metric.md#custom-metrics -->
Each input (`conversation`, `agent_response`, `retrieved_context` and `reference`) is `REQUIRED`, `OPTIONAL` or `DISABLED`. In the CLI the flags are `--conversation`, `--agent-response`, `--retrieved-context` and `--reference`, and an input you do not name is `disabled`.

See also: [CLI Guide: Custom metrics](cli-guide/metric.md#custom-metrics)

### 16.7 What does the judge receive for a custom metric created from the CLI?
<!-- src: cli-guide/metric.md#custom-metrics, reference/metrics.md#what-the-judge-receives -->
Through the CLI or API, the `scoring_instructions` you send reach the judge verbatim, so write any framing yourself.

See also: [Metrics: What the judge receives](reference/metrics.md#what-the-judge-receives)

### 16.8 Can I check a custom metric from the CLI before creating it?
<!-- src: cli-guide/metric.md#custom-metrics -->
CLI: `--dry-run --output json | jq .config > conciseness.json` only resolves and lints the config locally (the server can still reject it on create).

See also: [CLI Guide: Custom metrics](cli-guide/metric.md#custom-metrics)

### 16.9 How do I combine a config file with flags in the CLI?
<!-- src: cli-guide/metric.md#custom-metrics -->
Flags override a `--config-file` field by field regardless of order, which is handy for creating a family of metrics off one file. Write wire values in the file (`HIGHER_IS_BETTER`, not `higher`); a misspelled field is reported by the server, usually as `Field required`.

See also: [CLI Guide: Custom metrics](cli-guide/metric.md#custom-metrics)

### 16.10 Can I edit a custom metric after saving it from the CLI?
<!-- src: cli-guide/metric.md#custom-metrics -->
Only the description (`mb metrics update <id> --description "..."` in the CLI). Name and config are read-only once saved, so to change either, create a new metric ("Save As").

See also: [CLI Guide: Custom metrics](cli-guide/metric.md#custom-metrics)

## 17. CLI: Troubleshooting and limits

### 17.1 Why does the macOS installer ask for a password?
<!-- src: cli-guide/index.md#one-liner-install -->
The installer runs `sudo` to write to `/usr/local/bin`, so the prompt is your local system password, not your MorganaBench credentials. Set `INSTALL_DIR="$HOME/.local/bin"` to install without it.

See also: [CLI Guide: One-liner install](cli-guide/index.md#one-liner-install)

### 17.2 How does the CLI report errors?
<!-- src: cli-guide/index.md#error-handling, cli-guide/index.md#example-responses -->
It exits with code 0 on success and non-zero on failure, printing the message to stderr (for example `Error: API error 404 (NOT_FOUND): Corpus ... not found`). Use `--output json` for structured error output.

See also: [CLI Guide: Error Handling](cli-guide/index.md#error-handling)

### 17.3 Why does my CLI script fail with "spec file <id> does not exist"?
<!-- src: cli-guide/benchmark.md#benchmark -->
Older CLIs used `--spec` for a saved specification ID; it now means a path to a YAML file (or `-` for stdin). Use `--spec-id <id>` for a saved Library specification.

See also: [CLI Guide: Benchmark](cli-guide/benchmark.md#benchmark)

### 17.4 What does the CLI --timeout flag actually do, and what is "polling timed out"?
<!-- src: cli-guide/index.md#what-timeout-does-and-doesnt -->
`--timeout` sets only how long the CLI waits for a terminal status (default 30 minutes); it does not cancel or shorten the server-side job. If the deadline passes, the command exits non-zero with `polling timed out (last status: ...)` and the resource may still finish, so re-attach with `mb <resource> wait <id>` or check `mb <resource> get <id>`. A per-command `--timeout` overrides the global one.

See also: [CLI Guide: What --timeout does](cli-guide/index.md#what-timeout-does-and-doesnt)

## 18. REST API

### 18.1 How do I authenticate when calling the REST API directly?
<!-- src: getting-started.md#authentication, getting-started.md#curl-example, getting-started.md#python-example, cli-guide/index.md#token-based-ci-scripting -->
All API requests need a Bearer token. Send `POST /api/v1/auth/login` with a JSON body containing `email` and `password`; the response contains `access_token`, `refresh_token`, `token_type` and `expires_in` (in seconds; the documented example shows 3600). Then send `Authorization: Bearer <access_token>` on later calls, for example `curl -s /api/v1/corpora -H "Authorization: Bearer $TOKEN"`. If you use the CLI instead, `mb login` signs in with the same account and its `--token` option accepts a Bearer token (see the CLI questions on authentication).

See also: [Getting Started: Authentication](getting-started.md#authentication), [CLI Guide: Token-based authentication](cli-guide/index.md#token-based-ci-scripting)

### 18.2 Why does my API request fail with an authentication error?
<!-- src: getting-started.md#authentication -->
All API requests require a Bearer token obtained by logging in. The token's `expires_in` value is in seconds, so if it has expired, log in again to get a new one.

See also: [Getting Started: Authentication](getting-started.md#authentication)

## 19. Overview

### 19.1 Is DataMorgana the same as MorganaBench?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, scientific_papers/sigir25-liverag-report.pdf, scientific_papers/sigir2026-liverag-dataset.pdf -->
Yes. DataMorgana is the former name of MorganaBench, and the published papers use that name, so their usage examples and comparisons apply to it. The papers describe the tool as it was when they were written in 2025; for what the product does today, follow the other sections of this FAQ and the documentation.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 19.2 Where can I read the research papers about DataMorgana?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, scientific_papers/sigir25-liverag-report.pdf, scientific_papers/sigir2026-liverag-dataset.pdf -->
Three papers are published with this documentation: "Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings" (ACL 2025 Industry Track, called the Q&A Benchmarks paper in this FAQ), the "SIGIR 2025 - LiveRAG Challenge Report" (SIGIR 2025, the LiveRAG report), and "LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation" (SIGIR 2026, the LiveRAG dataset paper). The Q&A Benchmarks paper introduces the tool and compares it with other approaches; the other two describe its use in the LiveRAG Challenge and the dataset built from it.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 19.3 How do the papers' terms "categorization" and "category" map to MorganaBench's category and label?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, reference/specifications.md#categories -->
The papers use older terms that were renamed in MorganaBench: what a paper calls a **categorization** is now a **category**, and what a paper calls a **category** is now a **label**. In the usage-examples sections, entries that report what a paper says keep the paper's wording and add the current term in brackets, for example "categorizations (now: categories)".

| In the papers | In MorganaBench | Example |
|---|---|---|
| categorization | category | Phrasing |
| category (inside a categorization) | label | short-search-query |

So a paper's "Phrasing" categorization with the category "short-search-query" is, in MorganaBench, a category named Phrasing with a label short-search-query. As in the papers, each label carries a probability that sets how often it is drawn.

See also: [Specifications reference: Categories](reference/specifications.md#categories)

### 19.4 What is DataMorgana, according to the LiveRAG Challenge report?
<!-- src: scientific_papers/sigir25-liverag-report.pdf, system-overview.md#specifications-controlling-the-mix, reference/specifications.md#categories -->
The report describes DataMorgana as a tool that lets RAG developers generate synthetic benchmarks from a given corpus using configuration instructions. By configuring the expected question and answer types and the personas of the hypothetical users posing the questions, the benchmark's diversity, realism and quality can be enhanced. In the current MorganaBench, a specification configures the generated conversations through a scenario description and categories whose weighted labels set the mix, and categories can express stylistic axes or characterize different types of users.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [Overview: Specifications, controlling the mix](system-overview.md#specifications-controlling-the-mix), [Specifications reference: Categories](reference/specifications.md#categories)

### 19.5 What did the Q&A Benchmarks paper set out to show?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
The paper introduces DataMorgana, a tool for generating synthetic Q&A benchmarks tailored to RAG applications in enterprise settings. It reports that, in its experiments, DataMorgana generated questions of comparable quality to the baselines but with higher lexical, syntactic and semantic diversity (Abstract, Section 7). It also states that the work focuses on question generation, and that analysis of the generated answers is left for future work.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 19.6 Is DataMorgana only for RAG evaluation?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, reference/specifications.md#turns, ui-guide/benchmarks.md#benchmark-modes, ui-guide/corpora.md#corpus-types -->
The Q&A Benchmarks paper says DataMorgana was originally designed for RAG systems evaluation but is generic enough to evaluate any Q&A system, and that it is designed to generate benchmarks for training and testing primarily RAG (and possibly other) systems that offer question answering (Sections 3 and 7). The authors also state an intention to add capabilities for other types of benchmarks, such as conversations, in the future. In the current MorganaBench, conversations are already supported: for Documents benchmarks each conversation draws its own number of turns from the specification's turn distribution (capped by your organization's maximum-turns limit, 4 by default), and besides Documents benchmarks, which test whether an agent retrieves the right documents and answers correctly, there are Tools benchmarks, which test whether an agent picks the right tool with the correct parameters and are always single-turn.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [Specifications reference: Turns](reference/specifications.md#turns), [Benchmarks UI Guide: Benchmark Modes](ui-guide/benchmarks.md#benchmark-modes), [Corpora UI Guide: Corpus Types](ui-guide/corpora.md#corpus-types)

### 19.7 Where has DataMorgana been used in practice, according to the Q&A Benchmarks paper?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
The paper states that DataMorgana is fully deployed with AI71, an applied AI company, which integrated it into its offerings. It was also made available to about 150 researchers in the SIGIR 2025 LiveRAG Challenge. Competitors used it between March and May 2025 to train and test their systems, and the challenge organizers used it to generate the unseen synthetic test benchmarks on which competitors were evaluated during a two-hour window on May 20, 2025 (Abstract, Introduction, Section 7).

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

## 20. Other tools

### 20.1 Why generate a benchmark with DataMorgana instead of asking an LLM for questions from random documents?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, reference/specifications.md#categories, system-overview.md#starting-from-examples-instead -->
The Q&A Benchmarks paper describes the common practice, when no question or query logs exist, of using an LLM to generate Q&A pairs from randomly selected documents. Its stated risk is that the generated questions often have different properties than those the experience owners envision, for example being unrealistic (too many technical terms) or not diverse enough (Introduction). DataMorgana lets the user describe the expected traffic through question categories (now: categories with labels) so the generated questions follow it. In the current MorganaBench, a specification's categories set the proportions in which a benchmark varies, and More Like This lets you show examples of the requests your agent already sees instead of describing them.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [Specifications reference: Categories](reference/specifications.md#categories), [Overview: Starting from examples instead](system-overview.md#starting-from-examples-instead)

### 20.2 What advantages does the Q&A Benchmarks paper claim for DataMorgana's configuration approach?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, reference/specifications.md#top-level-fields -->
The paper names two key properties. First, lightweight and flexible customization: configuration is done with free-text descriptions organized in categories (now: labels), which it says makes customization accessible to non-AI specialists, so the domain expert who understands the expected traffic controls generation. Second, diverse generation: the default setting offers a rich collection of orthogonal question category sets (the paper's categorizations, now: categories) that can be combined into many question types, and the user can edit or remove them instead of creating them from scratch (Introduction). In the current MorganaBench, a new specification started in the UI is pre-populated with a default set of categories for the corpus type, each of which can be edited or removed.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [Specifications reference: Top-level fields](reference/specifications.md#top-level-fields)

### 20.3 How does DataMorgana compare with other question-generation tools?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, scientific_papers/sigir2026-liverag-dataset.pdf, scientific_papers/sigir25-liverag-report.pdf -->
The ACL paper is the one that compares DataMorgana with other approaches: against the Vanilla, Know Your RAG and DeepEval baselines it reports comparable question quality with higher lexical, syntactic and semantic diversity, which it attributes to DataMorgana's finer-grained configuration. The dataset paper compares the resulting LiveRAG questions with five public QA benchmarks on diversity, and the LiveRAG report notes that free access to the tool lowered the entry barrier to the challenge. Neither LiveRAG paper makes a head-to-head comparison of DataMorgana with other generation tools.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf), [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf)

### 20.4 How does DataMorgana differ from Know Your RAG, RAGAs and DeepEval, according to the Q&A Benchmarks paper?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
In the paper's related work (Section 2), Know Your RAG, RAGAs and DeepEval use a predefined set of question types or evolution rules, while DataMorgana "controls the diversity level with finer granularity via a configuration mechanism". In the paper's description the user defines the categorizations (now: categories) and their categories (now: labels) in free text, with optional probabilities, so the question mix follows the expected traffic of the application. The paper's conclusion says other tools "typically either leave the choice of question type to the LLM, or use internal mechanisms to control question diversity".

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 20.5 What is the Vanilla LLM-prompt approach in the Q&A Benchmarks paper, and how does DataMorgana differ from it?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
The paper (Section 4) defines Vanilla as repeatedly using exactly the same prompt for different documents, so only the input document varies, and calls it probably the most common, albeit straightforward, generation strategy. In its Covid-QA example (Section 5) Vanilla questions were longer, contained many details and tended to be about a specific topic rather than open-ended, so they lacked fidelity to the human-written questions. The paper adds that the prompt could be modified to avoid this, but then the set would likely cover only a small portion of the sought distribution, such as only factoid or only open-ended questions. DataMorgana instead lets the user define categorizations (now: categories) matching the target questions.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 20.6 How does the Q&A Benchmarks paper compare DataMorgana with Know Your RAG?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
The paper (Section 2) describes Know Your RAG (de Lima et al., 2024) as a system that generates questions from a predefined taxonomy of question types: the generator decomposes the document into statements, and depending on the type, a single statement or an aggregation of several is the basis for the question. Its experiments used a re-implementation without the unanswerable question type (Section 4), because allowing unanswerable questions would introduce unbounded freedom in diversity. In Table 3 Know Your RAG scored higher than DataMorgana on relevance and answerability on some corpora (for example Cord-19 relevance 1.00 vs 0.97 and answerability 0.99 vs 0.89), while in Table 4 DataMorgana had better scores on most diversity metrics (see the diversity entries).

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 20.7 How does the Q&A Benchmarks paper compare DataMorgana with DeepEval?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
The paper (Sections 2 and 4) describes DeepEval as a widely adopted, unpublished commercial solution (6.4K stars and 567 forks as of May 2025) that encourages diversity through an evolutionary process, where new questions are generated by pre-defined evolution rules. The experiments used its default setting with one evolution step, the type drawn uniformly at random from seven possible evolutions. The paper says DataMorgana, in contrast, controls diversity through configuration and deliberately avoids multiple LLM invocations for post-processing such as evolving a question. In the paper's experiments DeepEval was close to DataMorgana on some lexical metrics and better on a few (see the diversity entries), and scored lower on quality in several corpora, for example answerability 0.56 vs 0.86 on Wikipedia (Table 3).

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 20.8 How does the Q&A Benchmarks paper compare DataMorgana with RAGAs?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
The paper (Section 2) describes RAGAs as a popular evaluation tool for RAG systems that supports generating a synthetic Q&A benchmark. Like Know Your RAG, it considers a predefined set of question types (single-hop vs multi-hop, specific vs abstract) and user personas (senior, junior, etc.). In Section 3.2 the paper cites RAGAs as an example of a costly pre-processing stage (building a knowledge graph) that DataMorgana intentionally avoids. RAGAs was not one of the baselines in the paper's experiments, so the paper reports no measured comparison with it.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 20.9 Does DataMorgana need pre-processing or many LLM calls per question, compared with other tools?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
According to the Q&A Benchmarks paper (Section 3.2), the generation procedure is simple and lightweight by design, allowing quick development iterations. It intentionally avoids a costly pre-processing stage (the paper names building a knowledge graph, as in RAGAs, and heavy analysis of the document, as in Know Your RAG) and multiple invocations for post-processing (the paper names evolving a question, as in DeepEval). The paper does not report runtime or cost measurements.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 20.10 What other related approaches (InPars, Promptagator, ARES and others) does the Q&A Benchmarks paper describe, and how does DataMorgana differ?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
The paper (Section 2) groups InPars, Promptagator and ARES under the generate-then-filter paradigm: a few-shot LLM generates questions for a document, then the (question, answer, document) tuples are scored and filtered, for example by similarity or by whether the document ranks first in retrieval. Other cited work improves diversity by training the generator (Yoon and Bak, 2023; Eo et al., 2023, by interrogative words such as who, when, what), or uses real user queries as few-shot examples with an LLM-as-a-judge filter (Rackauckas et al., 2024). The paper contrasts DataMorgana with these only in general terms (finer-grained control through configuration) and does not run them as baselines.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 20.11 Which other tools or approaches did the Q&A Benchmarks paper compare DataMorgana with?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
The paper compared three baselines (Section 4): Vanilla (the same prompt repeated for every document, with only the input document varying), Know Your RAG (a re-implementation of de Lima et al., 2024, without the unanswerable question type), and DeepEval (an open-source commercial solution, used with its default setting of one evolution step). For fairness, all methods used Claude-3.5 Sonnet v2 as the LLM backbone. The paper contrasts these with DataMorgana by saying that DataMorgana controls diversity with finer granularity through its configuration mechanism (Section 2). RAGAs and the InPars, Promptagator and ARES family are described only in the related work (Section 2) and were not run as baselines.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

## 21. Quality and diversity

### 21.1 How did the Q&A Benchmarks paper show that DataMorgana does not sacrifice question quality?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, reference/specifications.md#acceptance-criteria -->
The authors generated 200 questions for each of the 16 corpus and method pairs. An LLM judge (Claude Sonnet 3.5) scored six metrics: fluency, clarity, conciseness, relevance, consistency and answerability (Section 6.1, Appendix D). In Table 3 the paper reports near-perfect text-quality results and good passage-match results, with DataMorgana on par or better than the baselines, except for passage match against Vanilla, which the paper attributes to Vanilla not being constrained to a question type. In the current MorganaBench, a specification can define acceptance criteria (YAML only), which are quality gates scored from 1 to 5 by an LLM judge against a threshold that every generated turn must pass to be included in the benchmark.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [Specifications reference: Acceptance criteria](reference/specifications.md#acceptance-criteria)

### 21.2 Where did the other tools score higher than DataMorgana on question quality in the Q&A Benchmarks paper?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
In Table 3 (200 questions per corpus and method, scores normalized to 0-1), the paper reports DataMorgana as on par or better than the baselines with one stated exception: passage match against Vanilla, which the paper attributes to Vanilla not being constrained by the type of question it should generate. Examples from the table: on Wikipedia, Vanilla's relevance, consistency and answerability were 0.99, 0.97 and 0.96 vs 0.97, 0.96 and 0.86 for DataMorgana; on GovExternal, DataMorgana's fluency and clarity were both 0.93 vs 0.99 and 0.95 for DeepEval. On the other hand, DataMorgana scored higher than DeepEval on Wikipedia answerability (0.86 vs 0.56).

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 21.3 How much more diverse are DataMorgana's benchmarks than those of other tools, according to the Q&A Benchmarks paper?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
The paper generated 1K to 3K questions per corpus with each method and measured lexical (N-gram diversity, self-repetition, word compression ratio), syntactic (part-of-speech compression ratio) and semantic (embedding homogenization score) diversity (Section 6.2, Table 4). It reports a clear advantage for DataMorgana over the baselines in semantic and syntactic diversity, and that for lexical diversity DataMorgana surpasses Know Your RAG and is close to DeepEval on word compression ratio and N-gram diversity. The paper notes that DeepEval's questions tend to be verbose with many technical terms, which raises lexical diversity but not semantic or syntactic diversity. As expected, Vanilla showed the lowest diversity on all metrics.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 21.4 In the Q&A Benchmarks paper's experiments, did DataMorgana beat the other tools on every diversity metric?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
No. In Table 4 DataMorgana had the best score on the syntactic metric (PoS compression ratio, lower is better) and the semantic metric (embedding homogenization score) on all four corpora, on self-repetition on all four, and on N-gram diversity on three. Exceptions: on GovInternal DeepEval had the best N-gram diversity (2.682 vs 2.469) and word compression ratio (3.466 vs 3.802); on Cord-19 and Wikipedia DeepEval had the best word compression ratio (3.535 vs 3.701 and 2.477 vs 2.502); and on Wikipedia Know Your RAG's self-repetition (0.144) was not statistically significantly different from DataMorgana's (0.140). The paper summarizes that DataMorgana surpasses Know Your RAG on lexical diversity and has close performance to DeepEval on word compression ratio and N-gram diversity.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 21.5 What were the syntactic and semantic diversity numbers for each tool in the Q&A Benchmarks paper (Table 4)?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
Table 4 lists, per corpus, the part-of-speech compression ratio (lower is more diverse) and the embedding homogenization score (lower is more diverse), for Vanilla / Know Your RAG / DeepEval / DataMorgana:

| Corpus | PoS compression ratio | Homogenization score |
|---|---|---|
| GovExternal | 10.734 / 7.292 / 7.710 / 6.642 | 0.260 / 0.269 / 0.232 / 0.178 |
| GovInternal | 9.484 / 6.515 / 5.866 / 5.795 | 0.396 / 0.315 / 0.269 / 0.213 |
| Cord-19 | 7.861 / 6.271 / 5.885 / 5.583 | 0.301 / 0.265 / 0.251 / 0.249 |
| Wikipedia | 5.824 / 5.864 / 5.631 / 5.397 | 0.068 / 0.074 / 0.067 / 0.052 |

The paper's text says DataMorgana shows a clear advantage in semantic and syntactic diversity over the baselines. The sets are 1K to 3K questions per corpus.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 21.6 How diverse are DataMorgana-generated questions compared with other QA benchmarks?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf -->
The LiveRAG dataset paper compared the LiveRAG questions with equal-size samples (895 questions) from TriviaQA, PopQA, WebQuestions, SimpleQA and Natural Questions. LiveRAG had the highest lexical diversity (NGD 3.062) and the highest length entropy (3.207), and only TriviaQA was more syntactically diverse. Its semantic diversity was competitive although all questions came from a limited set of topics, and the paper concludes LiveRAG is generally more diverse than these widely used benchmarks.

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 21.7 Which corpora did the Q&A Benchmarks paper use to evaluate DataMorgana?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, ui-guide/corpora.md#corpus-types, ui-guide/corpora.md#documents-corpus -->
The paper generated synthetic data from four corpora (Section 4, Appendix B): two public ones, Wikipedia (2,682 articles containing answers to Natural Questions test-set questions) and CORD-19 (the 147 articles that experts used for the COVID-QA questions), and two private government RAG datasets shared by AI71. GovExternal is for citizens asking about processes of a governmental agency, and GovInternal is for internal government employees and holds internal reports. The paper says that both private corpora cover no more than a few hundred documents. It generated 1K to 3K questions per corpus for the diversity study: 3K for Wikipedia, 2K for Cord-19 and GovExternal, and 1K for GovInternal (Section 6.2). In the current MorganaBench, a corpus is a collection of documents or tool definitions, and a documents corpus can be provided as a Parquet file (one document per row), as several files, or as a ZIP/TGZ archive.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [Corpora UI Guide: Corpus Types](ui-guide/corpora.md#corpus-types), [Corpora UI Guide: Documents Corpus](ui-guide/corpora.md#documents-corpus)

### 21.8 How did the Q&A Benchmarks paper measure question quality, and what were the six metrics?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
Following Fu et al. (2024), it used an LLM judge (Claude Sonnet 3.5) on 200 questions per corpus and method pair (Section 6.1, Appendix D). Three metrics assess the question text: fluency, clarity and conciseness; three assess the match with the source passage: relevance, consistency (no contradictions or hallucinations) and answerability. The judge gives each question a score from 1 to 3 per metric; the paper averages them and shifts to a 0-1 range with (mean - 1)/2, so 1 is near-perfect. The prompt includes definitions and few-shot examples (Figures 5-7).

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 21.9 What diversity metrics did the Q&A Benchmarks paper use, and what does each measure?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
Following Shaib et al. (2024), the paper (Section 6.2, Appendix E.1) measures lexical diversity with N-gram diversity (fraction of unique n-grams, n from 1 to 4; higher is more diverse), self-repetition (fraction of questions with a 4-gram that also appears in another question) and word compression ratio (gzip size ratio of the questions file). Syntactic diversity is the same compression ratio applied to part-of-speech tag sequences. Semantic diversity is the homogenization score, the average cosine similarity between all question pairs using all-MiniLM-L6-v2 embeddings. Except for N-gram diversity, lower values mean more diversity.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 21.10 How did the Q&A Benchmarks paper decide whether differences in diversity scores were significant?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
Since diversity metrics are not averages of point-wise scores, Appendix E.2 describes bootstrapping by sampling without repetition (standard resampling with repetition would bias n-gram based metrics): 50 independent samples of 80% of the questions, with all metrics computed on each. Two methods were considered significantly different on a metric by a t-test at alpha 0.05 over their 50 scores. In Table 4, the best result is in bold, and results whose difference from the best is not statistically significant are underlined.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 21.11 How did the Q&A Benchmarks paper's experiment with a limited number of documents work, and what were the results?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
Each benchmark had 200 questions (Section 6.2, Figure 1), generated from an increasing number of documents: from 20 (10 questions per document) up to 147 for Cord-19 and 200 for GovExternal (the plot axes show Wikipedia up to 200 and GovInternal from 9 to 85 documents). The paper measured the part-of-speech compression ratio, where lower is more diverse, and reports that DataMorgana consistently outperformed the baselines in all settings. In the plots for three of the four corpora Vanilla's ratio was highest at few documents and fell as documents increased, while DataMorgana's stayed roughly flat.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 21.12 Did the Q&A Benchmarks paper include human evaluation or only automatic metrics?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
Quality was scored by an LLM judge and diversity by automatic metrics; the paper does not report a human rating study. Its qualitative evidence is side-by-side samples of DataMorgana, Vanilla and human-written Covid-QA questions (Table 2), and samples of CORD-19 questions from all methods (Table 6, Appendix C). It also reports use by AI71, which integrated DataMorgana into its offerings, and by close to 150 researchers in the SIGIR 2025 LiveRAG Challenge.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

## 22. Configuration and generation

### 22.1 How is DataMorgana configured, according to the Q&A Benchmarks paper?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
In the configuration stage (Section 3.1) the user defines categorizations (now: categories), each with one or more mutually exclusive categories (now: labels), so a question belongs to only one label per category. Each label has a free-text description and, optionally, a probability that sets how often it appears. The configuration is given as a JSON file or through a visual interface (Appendix A, Figures 2 and 3). In the current MorganaBench, the same structure is a specification whose categories hold labels that each have a description and a probability; it can be edited in the web UI or written as YAML.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [Specifications reference: Categories](reference/specifications.md#categories)

### 22.2 What default question types does the Q&A Benchmarks paper's configuration offer?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
Table 5 (Appendix A) gives the default configuration, usable for most corpora, with five categorizations (now: categories): factuality (factoid, open-ended), premise (direct, with-premise), phrasing (concise-and-natural, verbose-and-natural, short-search-query, long-search-query), linguistic variation (similar-to-document, distant-from-document) and user expertise (expert, novice). The paper says editing or removing categories from such a default is far easier than creating them from scratch. Figure 2 also mentions the six non-factoid question types of Bolotova et al. (2022) (instructions, reason, evidence-based, comparison, experience, debate) as an example source of labels.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 22.3 How does DataMorgana generate each question, according to the Q&A Benchmarks paper?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, reference/specifications.md#writing-good-specifications, reference/specifications.md#categories -->
In the paper's description (Section 3), the user first defines categorizations (now: categories), each made of mutually exclusive categories (now: labels) with optional probabilities. Then, for each Q&A pair, DataMorgana samples a document from the corpus, samples one category (label) from each categorization (category) according to its distribution, and builds a prompt asking the LLM to generate a question about that document that belongs to the chosen categories (labels). The paper calls this simple and lightweight by design, and says it deliberately avoids costly pre-processing (such as building a knowledge graph) and multiple LLM calls for post-processing. In the current MorganaBench, a specification is applied one turn at a time: each turn gets one label from each category, drawn according to the labels' probabilities, plus material from the corpus.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [Specifications reference: Writing good specifications](reference/specifications.md#writing-good-specifications), [Specifications reference: Categories](reference/specifications.md#categories)

### 22.4 Which language model did DataMorgana use in the Q&A Benchmarks paper, and is it tied to one model?
<!-- src: scientific_papers/2025.acl-industry.33.pdf -->
In the experiments (Section 4) all generation methods, DataMorgana included, used Claude-3.5 Sonnet v2 with default parameters as the LLM backbone, for a fair comparison. The paper adds that its prompts were not specifically engineered for that model but are expected to work well with other similar-size LLMs.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf)

### 22.5 Can DataMorgana generate questions that need more than one document?
<!-- src: scientific_papers/sigir25-liverag-report.pdf, scientific_papers/sigir2026-liverag-dataset.pdf, reference/specifications.md#resource-selection-policy -->
Yes. When the Answer Type categorization (now: category) is comparison or multi-aspect (labels), DataMorgana selects a second, complementary document: the LLM is prompted to generate 3 questions partially answerable from the first document, each with a search query for the missing information, then five documents are retrieved and the LLM picks the one that best complements the first. In the released benchmark, 137 questions are multi-document and 758 are single-document. The dataset paper adds that a second prompt asks the LLM to pick the best complementary document, or to answer "null" if no candidate is suitable, and that the information needed from one document must not appear in the other (Section 2.2.2, Appendix A.3-A.4). In the current MorganaBench, a label's `resource_selection_policy` (YAML only) can constrain which corpus resources a turn uses, for example requiring two documents for a comparison question; a turn uses one or two resources, and two is the maximum supported.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf), [Specifications reference: Resource selection policy](reference/specifications.md#resource-selection-policy)

### 22.6 How were source documents chosen when the corpus is arbitrary web pages?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf, system-overview.md#specifications-controlling-the-mix, reference/specifications.md#what-a-label-description-controls -->
Because the corpus held arbitrary web pages, the LiveRAG dataset paper used a three-stage topic-based document sampling pipeline. An LLM first generated diverse high-level topics and related subtopics, the subtopics were used to query the corpus for documents, and then duplicate, too-short and too-long documents were removed. An LLM scored the remaining documents on factuality, interest, credibility, toxicity, sexuality and freshness, and predefined thresholds per criterion defined the pool of valid documents. In the current MorganaBench, a category whose labels are topic areas steers part of the benchmark toward those topics within your corpus, and a label that names a subject points the turn at the parts of the corpus that cover it.

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf), [Overview: Specifications, controlling the mix](system-overview.md#specifications-controlling-the-mix), [Specifications reference: What a label description controls](reference/specifications.md#what-a-label-description-controls)

### 22.7 What kinds of categorizations (categories in current terms) does the Q&A Benchmarks paper show as examples?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, reference/specifications.md#example -->
The paper's default configuration (Appendix A, Table 5) lists five categorizations (now: categories), each followed by its own categories (now: labels): Factuality (factoid, open-ended), Premise (direct, with-premise), Phrasing (concise-and-natural, verbose-and-natural, short-search-query, long-search-query), Linguistic variation (similar-to-document, distant-from-document), and User expertise (expert, novice). Appendix A also shows JSON snippets where each category (label) has a name, a probability and a free-text description, for example a question-factuality categorization (factoid 0.25, non-factoid-experience 0.75) and a user-expertise categorization (expert 0.5, novice 0.5). Section 3.1 adds that categories (labels) can also describe user types, such as patient, doctor or public health authority for a healthcare RAG application. In the current MorganaBench, the documented example specification has categories such as question-topic, coarse-grained-response-type (factoid, yes/no, open-ended), response-verbosity and linguistic-correctness, where each label has a name, a description and a probability.

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [Specifications reference: Example](reference/specifications.md#example)

### 22.8 How controllable is the distribution of question types in a DataMorgana benchmark?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf, reference/specifications.md#categories -->
The LiveRAG dataset paper states that the number of questions per category (now: label) is determined by the probability distribution specified within the DataMorgana configuration. In the LiveRAG benchmark, for example, 743 questions have no premise and 152 have a premise, and 638 are written in correct English, 184 contain mild mistakes and 73 contain severe mistakes. In the current MorganaBench, each label's probability sets how often it is drawn within its category, and when no probabilities are given the labels are drawn uniformly.

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf), [Specifications reference: Categories](reference/specifications.md#categories)

### 22.9 Can a configuration mimic the questions of an existing human-made benchmark?
<!-- src: scientific_papers/2025.acl-industry.33.pdf, reference/more-like-this.md#seed-examples, reference/more-like-this.md#constraints -->
In the paper's example use case (Section 5), the authors used a small sample of questions from the COVID-QA benchmark as the target and defined three categorizations (now: categories) to mimic it: Factuality (factoid and open-ended), Phrasing (concise-and-natural) and End-user expertise (clinical researcher). They report that the resulting questions were of the same nature as the human-written ones, being short and technical, and that they included both factoid and open-ended questions. By contrast, questions from the Vanilla baseline in the same scenario were longer, more detailed and less similar to the human questions (Tables 1 and 2). The Q&A Benchmarks paper adds that fidelity to a target question style can be achieved with simple methods, while diversity is the harder part, which is why its quantitative study focuses on diversity (Section 6). In the current MorganaBench, More Like This takes seed examples, which are representative user requests that MorganaBench emulates when it generates the benchmark, and the seed set shapes how a request is put together (phrasing, tone, length and structure).

See also: [Generating Q&A Benchmarks for RAG Evaluation in Enterprise Settings (ACL 2025 Industry Track)](scientific_papers/2025.acl-industry.33.pdf), [More Like This reference: Seed examples](reference/more-like-this.md#seed-examples), [More Like This reference: Constraints](reference/more-like-this.md#constraints)

### 22.10 What kinds of question-answer pairs does DataMorgana produce?
<!-- src: scientific_papers/sigir25-liverag-report.pdf, system-overview.md#benchmark-test-cases-and-ground-truth -->
The report shows example pairs generated by DataMorgana from randomly selected Fineweb documents, such as the question "What are the main symptoms of fungal toenail infections?" with a reference answer listing thicker toenails, discoloration, brittleness, foul smell and unusual toenail shape. Each pair consists of a question and a reference answer. In the current MorganaBench, each benchmark test case is a synthetic conversation paired with its ground truth: an expected response for a knowledge-based question, or expectations about tool calls when the request requires the agent to use tools.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [Overview: Benchmark, test cases and ground truth](system-overview.md#benchmark-test-cases-and-ground-truth)

## 23. LiveRAG Challenge

### 23.1 Do the LiveRAG report and dataset paper show that DataMorgana questions need retrieval, or can an LLM answer them without RAG?
<!-- src: scientific_papers/sigir25-liverag-report.pdf, scientific_papers/sigir2026-liverag-dataset.pdf -->
In the LiveRAG Challenge report (Section 5, Table 3), all participating teams scored higher Correctness than Falcon3-10B-Instruct run without RAG, which scored 0.339 in session 1 and 0.307 in session 2 (the best team scored 1.199317 and 1.231578). In the dataset paper (Section 4.1, Figure 3), GPT-4.1 and several Llama models of different sizes were also run without RAG: GPT-4.1 surpassed some participating systems but was outperformed by the top RAG teams, and the paper concludes that even state-of-the-art LLMs struggle with the benchmark's questions without RAG, which it describes as underscoring the need for RAG on long-tail questions. The papers do not run a no-RAG baseline against human-written benchmarks.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 23.2 What are the three generation steps DataMorgana follows for each question in the LiveRAG benchmark?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf -->
According to the dataset paper (Section 2.2), DataMorgana builds the benchmark incrementally, one question-answer pair at a time, in three steps. First, category set selection: from the eight categorizations (now: categories) of the configuration, one category (now: label) is picked at random from each, giving eight per task. Second, document selection: a document is sampled at random from the pool of valid documents, plus a complementary second one for comparison and multi-aspect questions. Third, question generation: a prompt asks the LLM to generate the question and answer from the selected document or documents so that they follow the eight selected categories (labels).

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 23.3 What are the answer claims in the LiveRAG benchmark, and how do they relate to the generated answer?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf, scientific_papers/sigir25-liverag-report.pdf, reference/metrics.md#the-reference-and-the-response, reference/metrics.md#system-metrics -->
In the LiveRAG dataset paper (Appendix B), the answer is generated by a strong LLM from the selected documents and treated as the ground truth. Claims are extracted from it and classified as Direct (directly answers the question), Useful (useful for answering it) or Useless (unrelated or unhelpful), and the list is provided to support the evaluation. The LiveRAG report (Section 4.1) used the same claim classification to score how much of the reference answer's vital content a system's answer covers. The dataset paper adds that the answer is not necessarily the only valid answer to the question. In the current MorganaBench, the built-in `ground_truth_alignment` metric plays a similar role: it scores how well an agent's response matches the benchmark's expected response, the reference answer. A custom metric can read the reference as claims too, as a flat list without that grouping. The docs do not say whether `ground_truth_alignment` itself uses the paper's claim-based formula.

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf), [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [Metrics: The reference and the response](reference/metrics.md#the-reference-and-the-response), [Metrics: System metrics](reference/metrics.md#system-metrics)

### 23.4 Do the LiveRAG report and dataset paper report the cost or time of generating the benchmark?
<!-- src: scientific_papers/sigir25-liverag-report.pdf, scientific_papers/sigir2026-liverag-dataset.pdf -->
No generation cost or time is reported in either paper. They state the scale: each of the two live sessions received 500 questions, 105 of them shared, which gave 895 unique questions (dataset paper, Section 1), generated one pair at a time. The report mentions that participants were given AI71 credits to use DataMorgana, but gives no figure for its use.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 23.5 How did the LiveRAG Challenge judge answers to the DataMorgana questions?
<!-- src: scientific_papers/sigir25-liverag-report.pdf -->
Per the report (Section 4.1), a first stage used Claude-3.5-sonnet as an LLM judge, different from the one participants used, with two metrics. Correctness is the harmonic mean of Coverage (how much of the reference answer's Direct and Useful claims the answer entails, with weight alpha = 0.7) and Relatedness (the share of Direct claims among Direct and Useless claims in the answer), scaled to [-1, 2]. Faithfulness is the share of the answer's claims entailed by at least one retrieved passage. Only the first 300 words of each answer and the first 10 passages for Faithfulness were evaluated.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf)

### 23.6 Did DataMorgana-generated benchmarks give meaningful results in LiveRAG?
<!-- src: scientific_papers/sigir25-liverag-report.pdf -->
The report states that all participating teams outperformed the Falcon3-10B-Instruct baseline run without RAG on the DataMorgana-generated questions, and that manual evaluation of the 13 leading teams on the 105 shared questions was highly consistent with the LLM-based evaluation. The Pearson correlation between LLM-based Correctness and the manual Borda score was 0.8826. The report does not separately evaluate the questions' quality beyond these results. The Pearson correlation between the LLM-based Correctness score and the manual scores was 0.8826 with the Borda score, 0.8240 with Coverage, 0.8490 with Quality and 0.6021 with Relatedness, which the report calls moderate because most teams scored extremely high on it (Section 4.2, Tables 4-5). The four teams leading by LLM-based Correctness also led the manual scores.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf)

### 23.7 How was the difficulty of the generated questions validated?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf -->
The LiveRAG dataset paper fitted a two-parameter IRT model to the Correctness scores of participating systems, then split the questions into four difficulty quartiles (224, 223, 224 and 224 questions). For all participating systems in both sessions, performance consistently improved as questions became easier, and Falcon3 without RAG underperformed every RAG-based system. Skill-based system rankings from the model also agreed strongly with the official leaderboard (Kendall's tau 0.766 for the first session, 0.999 for the second).

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 23.8 Which IRT model and settings did the LiveRAG dataset paper use to estimate question difficulty?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf -->
Per Section 3, the paper used a two-parameter logistic (2PL) Item Response Theory model, which learns a skill for each participating system and a difficulty (diff) and discriminability (disc) for each question, fitted with the py-irt package (learning rate 0.01, dropout 0.2, 10,000 epochs). The observations were the Challenge's Correctness scores, which are continuous in [-1, 2], so the paper modified the package to use a Continuous-Bernoulli likelihood after rescaling scores to [0, 1]. It reports a Pearson correlation of -0.979 between diff and the questions' average Correctness score, and -0.423 between disc and diff.

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 23.9 Were the LiveRAG questions that are difficult for participating systems also difficult for other LLMs?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf -->
The dataset paper (Section 4.1, Figure 3) ran GPT-4.1 and four Llama models of different sizes without RAG, judged with the same LLM-as-a-judge process as in the Challenge. Harder questions gave lower average Correctness for every model, the order of the difficulty bins was the same across models, and larger models outperformed smaller ones. The paper reads this as the difficulty scores reflecting question difficulty beyond the participating systems.

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 23.10 Did the question categories configured in DataMorgana relate to question difficulty?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf -->
The LiveRAG dataset paper reports that differences in average difficulty across categories (now: labels) were statistically insignificant for most categorizations (now: categories), but distribution shifts were observable. Comparison and multi-aspect questions were the most challenging, and multi-doc questions had a higher average difficulty score than single-doc ones (0.091 versus -1.083). Questions semantically similar to their documents were easier, more severe typos increased difficulty, and Premise and Politeness did not appear to affect difficulty.

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 23.11 How was DataMorgana used in the SIGIR 2025 LiveRAG Challenge?
<!-- src: scientific_papers/sigir25-liverag-report.pdf -->
According to the report, participating teams were given early access to DataMorgana and AI71 credits to use it freely for training and evaluating their RAG systems before the Live Challenge Day. DataMorgana was also used by the organizers to generate the unseen test set of question-answer pairs used to evaluate the systems during the live event.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf)

### 23.12 How many questions were generated for the LiveRAG Challenge, and how did they become the 895-question benchmark?
<!-- src: scientific_papers/sigir25-liverag-report.pdf, scientific_papers/sigir2026-liverag-dataset.pdf -->
On the live challenge day (May 12, 2025), teams were split into two sessions by preferred time zone, each receiving 500 unseen questions generated by DataMorgana, of which 105 were shared between the sessions for manual evaluation, validation of the LLM-based judgment and calibration. Merging the two sets gave 895 unique questions, which the dataset paper released together with supplementary information that was not available to competitors.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 23.13 Which corpus and language models did the LiveRAG benchmark use?
<!-- src: scientific_papers/sigir25-liverag-report.pdf, scientific_papers/sigir2026-liverag-dataset.pdf -->
Questions were generated from documents sampled from FineWeb-10BT, the fixed external corpus of the challenge, and all evaluation questions were guaranteed to be answerable from it alone. Challenge competitors answered with a fixed open-source LLM, Falcon3-10B-Instruct, and the dataset paper used Claude 3.5 Sonnet as the backbone LLM for all DataMorgana generation tasks.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf)

### 23.14 What categorizations (categories in current terms) were configured for the LiveRAG benchmark?
<!-- src: scientific_papers/sigir25-liverag-report.pdf, scientific_papers/sigir2026-liverag-dataset.pdf, system-overview.md#specifications-controlling-the-mix -->
The dataset paper used eight categorizations (now: categories), each made of mutually exclusive categories (now: labels): Answer Type, Answer Style, Premise, Phrasing, Linguistic Variation, Politeness, Linguistic Correctness and User Persona (expert, novice, researcher or journalist). The LiveRAG report describes the same setup as seven question categorizations, such as answer type (factoid, yes/no, list, comparison, multi-aspect), question formulation (natural question or search query), linguistic correctness and answer control (concise or comprehensive), plus one of four user personas. For each question one category (label) was randomly selected from each categorization (category), and the categorizations were intentionally broad so that diverse questions can be generated from any document. In the current MorganaBench, categories can express stylistic axes (how a request is phrased, how verbose it is, what kind of response it expects, whether the user's grammar is correct) as well as different types of users.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf), [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf), [Overview: Specifications, controlling the mix](system-overview.md#specifications-controlling-the-mix)

### 23.15 What does each entry of the LiveRAG benchmark contain?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf, ui-guide/benchmarks.md#downloading-results -->
Each entry has the DataMorgana-generated question and answer, the supporting FineWeb-10BT documents (one or two), the answer claims (direct, useful or useless), the session, the eight DataMorgana categories (now: labels) used, the average and standard deviation of the Correctness score of the participating systems, and IRT difficulty and discriminability parameters. The paper notes the generated answer is treated as ground truth but is not necessarily the only valid answer, and that problematic items were manually filtered out. In the current MorganaBench, a Ready benchmark is downloaded as a JSONL file with one generated conversation per line, following the MorganaBench SDK `Example` schema.

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf), [Benchmarks UI Guide: Downloading Results](ui-guide/benchmarks.md#downloading-results)

### 23.16 Why did the LiveRAG organizers generate the test set with such a varied configuration?
<!-- src: scientific_papers/sigir25-liverag-report.pdf -->
The report states that the test set was intentionally generated to provide diverse test cases of varying complexity for both the retrieval and the answer-generation stages of RAG systems.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf)

### 23.17 How did LiveRAG participants use DataMorgana, and what did they think of it?
<!-- src: scientific_papers/sigir25-liverag-report.pdf -->
Based on an online survey and the teams' final reports, the paper observes that most teams used DataMorgana for evaluation and training and expressed satisfaction with the tool. Teams used state-of-the-art LLMs (such as Claude-sonnet, Deepseek-R1, GPT-4o) to compare their system's generated answer with the answer provided by DataMorgana. The report's summary also states that DataMorgana was adopted by all teams, so its wording varies between "most" and "all" teams.

See also: [SIGIR 2025 - LiveRAG Challenge Report (arXiv preprint, 2025)](scientific_papers/sigir25-liverag-report.pdf)

### 23.18 What limitations does the LiveRAG dataset paper note for DataMorgana-generated benchmarks?
<!-- src: scientific_papers/sigir2026-liverag-dataset.pdf, reference/specifications.md#resource-selection-policy -->
The paper says the synthetic questions are projections of anticipated needs, not direct reflections of actual user needs, so real-world conclusions should be drawn with caution. Because each answer is generated from one or two source documents, other corpus documents may offer more accurate or contradictory answers, which can cause a good response to be judged incorrect. The paper does not compare DataMorgana with other question generation tools. The dataset paper adds that, because the answers are generated by an LLM from the selected documents, problematic items were filtered out manually (it gives no count), and that the difficulty and discriminability scores come from systems that all used a RAG architecture with Falcon3, so they may reflect biases specific to such models (Appendix B, Section 6). In the current MorganaBench, a turn uses one or two corpus resources by default, and two is the maximum supported.

See also: [LiveRAG: A Diverse Q&A Dataset with Varying Difficulty Level for RAG Evaluation (arXiv preprint, 2025)](scientific_papers/sigir2026-liverag-dataset.pdf), [Specifications reference: Resource selection policy](reference/specifications.md#resource-selection-policy)