// cosine similarity is a measure of similarity between two non-zero vectors in an inner product space.
// the result ranges from -1 to 1. A value of 1 indicates that the vectors are identical, while a value of -1 indicates that they are opposite.
// A value of 0 indicates that the vectors are orthogonal (i.e., they are at a right angle to each other).