I have created a table that has a pair of IDs and coordinate fro each of them so that I can calculate pairwise cosine similarity between them.
The number of dimension for the coords are currently 128, but it can vary. But the number dimensions for a pair of ID are always same in the same table.
coord1 and coord2 are repeated field (array) with floating point values.
Is there a way to calculate cosine similarity between them?
My expected output would have three columns, id1, id2 and cosine_similarity.
