EmbeddingDistance#

class langchain.evaluation.embedding_distance.base.EmbeddingDistance(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Embedding Distance Metric.

COSINE#

Cosine distance metric.

EUCLIDEAN#

Euclidean distance metric.

MANHATTAN#

Manhattan distance metric.

CHEBYSHEV#

Chebyshev distance metric.

HAMMING#

Hamming distance metric.

COSINE = 'cosine'#
EUCLIDEAN = 'euclidean'#
MANHATTAN = 'manhattan'#
CHEBYSHEV = 'chebyshev'#
HAMMING = 'hamming'#