Measuring similarity
Lesson 10 of 20 · AI.Micro
Cosine similarity compares the direction of two vectors: 1 means the same idea, 0 means unrelated.
Each vector is an arrow. Cosine similarity measures the angle between two arrows: pointing the same way gives 1, at right angles gives 0. The scores under the map are cosines.
Two vectors point in exactly the same direction. Their cosine similarity is…
Do it in the browser: a real generative AI tool, a short mission and instant feedback. No install.
Start this lesson — free