<!--
{
  "availability" : [
    "Xcode: 27.0.0 -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Evaluations",
  "identifier" : "/documentation/Evaluations/ModelJudgeEvaluator/pairwise(judge:dimensions:scoringMode:evaluationTarget:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Evaluations"
    ],
    "preciseIdentifier" : "s:11Evaluations19ModelJudgeEvaluatorV8pairwise5judge10dimensions11scoringMode16evaluationTargetACyxG16FoundationModels08LanguageB0_p_SayAA14ScoreDimensionVGAA07ScoringI0OSS13ExpectedValueQzYbcSgtFZ"
  },
  "title" : "pairwise(judge:dimensions:scoringMode:evaluationTarget:)"
}
-->

# pairwise(judge:dimensions:scoringMode:evaluationTarget:)

Creates a multi-metric pairwise comparison evaluator.

```
static func pairwise(judge: any LanguageModel, dimensions: [ScoreDimension], scoringMode: ScoringMode = .discrete, evaluationTarget: (@Sendable (Input.ExpectedValue) -> String)? = nil) -> ModelJudgeEvaluator<Input>
```

## Parameters

`judge`

The language model to use as judge.

`dimensions`

The dimensions to score for the comparison.

`scoringMode`

A value that indicates whether scores are discrete (default) or allow any floating-point value.

`evaluationTarget`

An optional closure that converts the value to a string. Both responses use this target.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)