← All parts of this equation

Equation 1 · Part 4 · Embeddings and the Geometry of Similarity

fraction

sim⁡(u,v)=⟨u,v⟩∥u∥ ∥v∥.\operatorname{sim}(u, v) = \frac{\langle u, v \rangle}{\lVert u \rVert \, \lVert v \rVert}.
fraction

What this part means

Divide the expression above the line by the one below it.

Its job in the formula

The expression above the fraction bar is divided by the complete expression below it. The denominator must not be zero.

The passage around this formula

The conventional similarity metric is the cosine of the angle between two vectors: sim⁡(u,v)=⟨u,v⟩∥u∥ ∥v∥\operatorname{sim}(u, v) = \frac{\langle u, v \rangle}{\lVert u \rVert \, \lVert v \rVert}. Cosine became conventional for reasons that are mostly good. It is scale-invariant, which matters when vector norms correlate with nuisance properties like token frequency or document length. It reduces to an inner product on normalised vectors, which is cheap and which most approximate indexes support natively. And it is what several influential embedding models were explicitly trained to make meaningful: Sentence-BERT fine-tuned siamese networks precisely so that sentence embeddings could be compared with cosine similarity, cutting a pairwise-comparison workload from roughly 65 hours to…

Read this part in the article →

Learn the underlying idea

A fraction a/b means a divided by b. The top number is the numerator; the bottom number is the denominator, and it cannot be zero.

Open the illustrated fractions: division written vertically guide →

Sources cited in the surrounding passage

These citations provide research context; check each source for the exact claim it supports.