Calculates the L∞ distance between two text embeddings, defined as the greatest difference along any single dimension.
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.The score is determined entirely by the one dimension where the embeddings differ the most.
i
indexes the dimensions of the vectors.