Cosine Similarity Explorer
Drag two vectors and watch similarity change — direction matters, magnitude doesn't.
In embedding space every word is a vector. Two words are 'similar' when their vectors point in roughly the same direction — that's cosine similarity. It ranges from −1 (opposite) through 0 (unrelated) to +1 (identical direction).
Drag the red and blue endpoints to change each vector's angle and length. Watch the similarity update in real time and notice: stretching a vector doesn't change the score. Only the angle between them matters.
Try the presets to see classic relationships: near-synonyms cluster tightly, antonyms point apart, and unrelated words sit near 90°. This is exactly what models like Word2Vec and sentence transformers optimize for.