Calculates the L1 distance between two text embeddings, representing the sum of absolute differences across all dimensions.
output
(str): The generated text to be evaluated.expectedOutput
(str): The reference or ground truth text.Result
(float): A distance score from 0 to infinity.0
: The embeddings are identical.Generally less sensitive to outliers than Euclidean distance.
i
indexes the dimensions of the vectors.