# DistanceStrategy

> **Class** in `langchain_postgres`

📖 [View in docs](https://reference.langchain.com/python/langchain-postgres/vectorstores/DistanceStrategy)

Enumerator of the Distance strategies.

## Signature

```python
DistanceStrategy()
```

## Extends

- `str`
- `enum.Enum`

## Properties

- `EUCLIDEAN`
- `COSINE`
- `MAX_INNER_PRODUCT`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-postgres/blob/9d819182da7e3fb1b815e6c9a6b7c2cd1eb4bc0e/langchain_postgres/vectorstores.py#L55)