langchain_community.vectorstores.pgvector.DistanceStrategy¶

class langchain_community.vectorstores.pgvector.DistanceStrategy(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶

Enumerator of the Distance strategies.

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