# VertexPairWiseStringEvaluator

> **Class** in `langchain_google_vertexai`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-vertexai/evaluators/evaluation/VertexPairWiseStringEvaluator)

Evaluate the perplexity of a predicted string.

## Signature

```python
VertexPairWiseStringEvaluator(
    self,
    metric: str,
    **kwargs = {},
)
```

## Extends

- `_EvaluatorBase`
- `PairwiseStringEvaluator`

## Constructors

```python
__init__(
    self,
    metric: str,
    **kwargs = {},
) -> None
```

| Name | Type |
|------|------|
| `metric` | `str` |


## Properties

- `requires_reference`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/982e4015b249de8b9ba1e787746d8cc1f6d6b790/libs/vertexai/langchain_google_vertexai/evaluators/evaluation.py#L244)