mej7.comHow AI Works

Dot product

Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.

Sum of pairwise products of two vectors. Attention scores start as a dot product of query and key; overlap of subspaces is also a dot product.

In one paragraph. Sum of pairwise products of two vectors. Attention scores start as a dot product of query and key; overlap of subspaces is also a dot product.

Used in

Related terms

Full glossary