similarity

fun Embedding.similarity(other: Embedding): Double

Compute the similarity of two embeddings using cosine similarity.