Cosine similarity is a metric used to measure how similar two vectors are, regardless of their magnitude. It is often used in various applications like text analysis, information retrieval, and recommendation systems, where data can be represented as high-dimensional vectors. The cosine similarity is defined as the cosine of the angle between two non-zero vectors in an inner product space.
New to topics? Read the docs here!