Is there a way to calculate cosine similarity between all combinations of embeddings?

There’s no way to do it directly, but here’s a relatively low effort way to do this (just use cosine similarity instead of distance):