similarity

Compute the similarity of two embeddings using cosine similarity.