# PairwiseEmbeddingDistanceEvalChain

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/evaluation/embedding_distance/base/PairwiseEmbeddingDistanceEvalChain)

Use embedding distances to score semantic difference between two predictions.

Examples:
>>> chain = PairwiseEmbeddingDistanceEvalChain()
>>> result = chain.evaluate_string_pairs(prediction="Hello", prediction_b="Hi")
>>> print(result)
{'score': 0.5}

## Signature

```python
PairwiseEmbeddingDistanceEvalChain()
```

## Extends

- `_EmbeddingDistanceChainMixin`
- `PairwiseStringEvaluator`

## Properties

- `input_keys`
- `evaluation_name`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/42f8f79293cfb7589e5bc1d74a8ae4dfd0bf15e3/libs/langchain/langchain_classic/evaluation/embedding_distance/base.py#L506)