thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

AI & Machine Learning · Intermediate

Cosine Similarity

A similarity measure based on the angle between two vectors, ranging from -1 to 1.

Definition

Cosine similarity ignores vector magnitude, focusing on direction, which makes it the most common metric for comparing text embeddings. For unit-normalized vectors it equals the dot product.

Exam tip

Cosine similarity of 1 means same direction (most similar).

Related terms