Directions & dot product
Foundations
The idea
Section titled “The idea”In that space, directions can carry meaning. The dot product is the meter: how much of this idea is in this vector. Drag E below and watch the readouts - they are the shadow’s length, not the arrow’s.
One honest limit, secondhand from interpretability work Karpathy relays: a direction can encode something orthogonal to what a prompt is about. A famous wrong comparison (9.11 vs 9.9) may trip a feature associated with chapter-and-verse numbering, activated by nothing but the formatting (ch. 2:06, flagged as unverified in the talk itself). Directions carry meaning - not always the meaning you assume.
The story, animated
Section titled “The story, animated”The dot product is a shadow’s length, not a hug. Watch the shadow form, then shrink when the arrows turn sideways.
Try it
Section titled “Try it”Where it sits
Section titled “Where it sits”Worth having first: Embeddings
Unlocks: Context moves vectors · Rows ask questions · Superposition
Chapter: embedding space (parts bin D3/D6)
Source-checked against Karpathy, “Deep Dive into LLMs like ChatGPT” (2025).