Vector Similarity Explainer
See how cosine similarity works — visually
🐱 Cat vs Dog
🏦 Bank (financial vs river)
🗼 Paris vs France
🤖 ML vs DL
Sentence A
The cat sat on the mat
Sentence B
A dog lay on the rug
0.000
cos(θ)
θ = 0.0°
—
2D Vector Projection
Vector A — Term Frequencies
Vector B — Term Frequencies
Formula Breakdown