langchain_postgres.vectorstores.DistanceStrategy¶

class langchain_postgres.vectorstores.DistanceStrategy(value)[source]¶

Enumerator of the Distance strategies.

EUCLIDEAN = 'l2'¶
COSINE = 'cosine'¶
MAX_INNER_PRODUCT = 'inner'¶

Examples using DistanceStrategy¶