langchain_community.vectorstores.utils.DistanceStrategy

class langchain_community.vectorstores.utils.DistanceStrategy(value)[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'

Examples using DistanceStrategy