distance

fun Embedding.distance(other: Embedding): Double

Calculate the distance between two embeddings, corresponding to 1.0 - similarity.