langchain_community.vectorstores.utils.DistanceStrategy¶

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

Enumerator of the Distance strategies for calculating distances between vectors.

EUCLIDEAN_DISTANCE = 'EUCLIDEAN_DISTANCE'¶
MAX_INNER_PRODUCT = 'MAX_INNER_PRODUCT'¶
DOT_PRODUCT = 'DOT_PRODUCT'¶
JACCARD = 'JACCARD'¶
COSINE = 'COSINE'¶