# get_distance_operator

> **Function** in `langgraph.store.postgres`

📖 [View in docs](https://reference.langchain.com/python/langgraph.store.postgres/base/get_distance_operator)

Get the distance operator and score expression based on config.

## Signature

```python
get_distance_operator(
    store: Any,
) -> tuple[str, str]
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/398d6cc59d4cf81ab23c09f037e9f521c3fedcd6/libs/checkpoint-postgres/langgraph/store/postgres/base.py#L1343)