# MorganaBench Documentation

MorganaBench is an AI benchmark generation and evaluation platform. It enables you to create high-quality benchmarks from your own data and evaluate AI agent performance against them.

## The Pipeline

**Corpus** → **Guidance** → **Benchmark Generation** → **Evaluation**

Upload your documents or tool definitions, define what kinds of test cases to generate — with either a [specification](reference/specifications.md) or a [seed of examples](reference/more-like-this.md) — produce a benchmark dataset, and then evaluate how well your AI agent performs. MorganaBench supports two modes: **Agentic search benchmarks** from document corpora and **function-calling benchmarks** from MCP-formatted tool definitions.

## Use cases

<div class="grid cards" markdown>

- :material-file-document-outline: **Agentic search benchmark**

    ---

    Generate a reusable benchmark grounded in a document corpus.

    **Methods:** [specification compliant](use-cases/search-bmark-doc-spec.md), [more like given examples](use-cases/search-bmark-doc-examples.md).

- :fontawesome-solid-plug: **Function calling benchmark**

    ---

    Generate a reusable function-calling benchmark grounded in function definitions.

    **Methods:** [using MCP server tools](ui-guide/corpora.md#tools-corpus).

- :fontawesome-solid-clipboard-check: **Evaluate using MorganaBench benchmarks**

    ---

    Use a MorganaBench synthetic benchmark to evaluate your agent.

    **Methods:** [using the web UI](use-cases/mb-eval-ui.md), [using the CLI](use-cases/mb-eval-cli.md).

- :fontawesome-solid-clipboard-question: **Evaluate using externally available benchmarks**

    ---

    Use MorganaBench as an evaluation service for agent evaluation on your own benchmark.

    **Methods:** [using the web UI](use-cases/ext-eval-ui.md), [using the CLI](use-cases/ext-eval-cli.md).

</div>

## System Overview

- [**Overview**](system-overview.md) — What MorganaBench does and how its pieces fit together.

## User Guides

Choose the guide that matches how you want to interact with MorganaBench:

- [**Getting Started**](getting-started.md) — Quick start for UI, API, and CLI users, including authentication
- [**CLI Guide**](cli-guide/index.md) — Command-line tool for developers and CI pipelines
- [**SDK and Data Formats**](https://sdk.morganalabs.ai/) - Python and TypeScript SDK to work with benchmark, executed benchmark, and evaluation data formats.
- [**Agent integration**](agent-integ/index.md) - Integrating your agent with MorganaBench using the CLI and the SDK.

## Reference

- [**Corpora**](ui-guide/corpora.md) — Importing and managing document and tool-definition corpora.
- [**Specifications**](reference/specifications.md) — Steering generation with categories of variation.
- [**More Like This**](reference/more-like-this.md) — Steering generation from seed examples instead.
- [**Benchmark Generation**](ui-guide/benchmarks.md) — Producing datasets of test cases.
- [**Metrics**](reference/metrics.md) — The system metrics, and authoring your own.
- [**Evaluation**](reference/evaluation.md) — Measuring AI agent performance.