langchain.evaluation.embedding_distance.base.EmbeddingDistance

class langchain.evaluation.embedding_distance.base.EmbeddingDistance(value)[source]

嵌入距离度量。

COSINE

余弦距离度量。

EUCLIDEAN

欧几里得距离度量.

MANHATTAN

曼哈顿距离度量.

CHEBYSHEV

切比雪夫距离度量.

HAMMING

汉明距离度量.

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