langchain.evaluation.embedding_distance.base.EmbeddingDistance¶

class langchain.evaluation.embedding_distance.base.EmbeddingDistance(value)[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'¶