Learn Before
Definition
Cosine Similarity Between Document Vectors
Cosine similarity measures the angular closeness of two vectors irrespective of their magnitudes. For document vectors and it is defined as . The value lies in for non-negative term-weight vectors, with when the two documents have identical term-weight distributions (up to scale) and when they share no terms. Length normalization makes the score insensitive to absolute document length, so a short and a long document with the same relative term emphasis are scored as highly similar.
0
1
Updated 2026-05-16
Tags
Science
Research Paper: Advanced Prompting