Running two or more systems in one invocation lets you compare quality, compression, and cost on identical data. context-bench automatically adds Pareto ranking when multiple systems are present and per-dataset breakdowns when multiple datasets are requested.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/npow/context-bench/llms.txt
Use this file to discover all available pages before exploring further.
Two systems
Pass--proxy and --name pairs. Names are optional — if omitted, context-bench derives them from the URL hostname.
Three systems
Add a baseline (e.g. a passthrough proxy or the raw model) alongside your candidates:Multiple datasets
Repeat--dataset to evaluate across several benchmarks in a single run. A per-dataset breakdown table is added automatically.
Pareto frontier analysis
When two or more systems are compared, context-bench computes apareto_rank for each system. The Pareto frontier is the set of systems that are not dominated on both the quality axis (mean_score) and the cost axis (cost_of_pass). A rank of 1 means the system is on the frontier.
In the example above, Kompact has the highest mean_score (0.3640) and the lowest cost_of_pass (2,447) — it dominates both other systems and sits alone on the Pareto frontier.
Pareto ranking is computed after evaluation completes. It requires at least two systems and uses
mean_score vs cost_of_pass by default.Python API
Pass a list of systems toevaluate(). Filter the result to one system with .filter().
Per-dataset breakdown
When multiple datasets are loaded,PerDatasetBreakdown is added automatically by the CLI. In Python, add it explicitly:
Choosing the right score field
| Task type | Recommended score_field | Datasets |
|---|---|---|
| Open-domain QA | f1 | hotpotqa, triviaqa, musique, narrativeqa |
| Multiple choice | mc_accuracy | mmlu, arc-challenge, hellaswag, winogrande, gpqa |
| Code generation | pass_at_1 | humaneval, mbpp |
| Math | math_equiv | math, gsm8k, mgsm |
| Summarization | rouge_l_f1 | multi-news, dialogsum, govreport |
| Instruction following | ifeval_strict | ifeval |
| LLM judge | judge_score | alpaca-eval, mt-bench |
