compare
Runs blind A/B evaluations of two outputs—such as translations, code, or summaries—using multiple judge models, randomizing order to prevent position bias.
Instructions
Blind A/B comparison of two items judged by N models.
When blind=True (default), randomizes which item is shown as A vs B to each judge independently, then de-randomizes scores. This prevents position bias where judges consistently favor the first item shown.
Use for comparing translations, code solutions, summaries, or any pair of outputs where you want an objective preference.
Args: item_a: First item to compare item_b: Second item to compare context: Optional context for the comparison (e.g. the original task) dimensions: Scoring dimensions (default ["quality"]) scale: Rating scale as "min-max" (default "1-5") judge_count: Number of judge models (default 3) blind: Randomize A/B order per judge to prevent position bias (default true) min_tier: Minimum quality tier for judge selection (default "A") free_only: If true, only use free models as judges max_tokens: Max response tokens per judge (default 512) temperature: Sampling temperature (default 0.0) exclude_providers: Skip these hosts (the producer) exclude_model_ids: Skip these model ids
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_a": "<item_a>",
"item_b": "<item_b>"
},
"name": "compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blind | No | ||
| scale | No | 1-5 | |
| item_a | Yes | ||
| item_b | Yes | ||
| context | No | ||
| min_tier | No | A | |
| free_only | No | ||
| dimensions | No | ||
| max_tokens | No | ||
| judge_count | No | ||
| temperature | No | ||
| exclude_model_ids | No | ||
| exclude_providers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |