Cosine Similarity, Dot Product and Euclidean Distance Explained
To find the vectors closest to a query you need a definition of "close". The three common choices are cosine similarity, dot product and Euclidean distance. For normalized embeddings they all rank results in the same order, so the practical rule is simple: use...