Class PairwiseMetric (1.51.0)

PairwiseMetric(
    *,
    metric: typing.Literal["summarization_quality", "question_answering_quality"],
    baseline_model: typing.Optional[
        typing.Union[
            vertexai.generative_models.GenerativeModel, typing.Callable[[str], str]
        ]
    ] = None,
    use_reference: bool = False,
    version: typing.Optional[int] = None
)

The Side-by-side(SxS) Pairwise Metric.

Methods

PairwiseMetric

PairwiseMetric(
    *,
    metric: typing.Literal["summarization_quality", "question_answering_quality"],
    baseline_model: typing.Optional[
        typing.Union[
            vertexai.generative_models.GenerativeModel, typing.Callable[[str], str]
        ]
    ] = None,
    use_reference: bool = False,
    version: typing.Optional[int] = None
)

Initializes the Side-by-side(SxS) Pairwise evaluation metric.