Embedding Space
Meaning as geometry
What are embeddings?
Teaching projection only
Meaning as geometry
Tokens become vectors. Nearby vectors usually share usage contexts, so "dog" sits closer to "cat" than to "banana". Distance is a usable stand-in for relatedness.
Learned, not hand-coded
Nobody draws the production map by hand. Training moves points so words that show up in similar sentences end up nearby. Clusters are a side effect of prediction, not a dictionary.
Retrieval uses neighbors
Search, clustering, recommendations, and RAG all lean on nearest-neighbor lookup. Geometry turns "find related chunks" into a distance query.
This page is a 2D sketch
Real model embeddings often have thousands of dimensions. The map here is a fixed teaching projection, not PCA of a live model. Use it to learn the idea, then measure real systems on your data.
Neighbor probe
Pick a word. We report its 5 nearest neighbors in the teaching plane and how many share its category (a simple cluster-coherence check). Radius for the map UI is 25 units.
- catAnimalsd=7.1
- lionAnimalsd=8.5
- snakeAnimalsd=11.2
- rabbitAnimalsd=12.2
- birdAnimalsd=14.1
5 of 5 nearest neighbors share the category. In a well-clustered region of this toy map, that share is high.
Teaching metric only · 50 fixed points · not a model embedding
Toggle categories, then click a word to inspect neighbors. Distance is Euclidean in this toy plane: closer usually means more related meaning. The map reuses the same nearestNeighbors helper as the probe above.
Loading embedding map…
Why this matters for products
Embeddings power search, clustering, recommendations, and retrieval-augmented generation (RAG): find relevant document chunks by similarity, then ground the model's answer on them. Geometry turns a closed-book guess into an open-book exam.
Continue to RAGKey Insight
Check your understanding
1/3What is an embedding?
Sources, scope & review statusVerified Jul 29, 2026
Claims this lesson makes
- Stable conceptEmbeddings place learned representations in a vector space where some semantic relationships become geometrically useful.
Scope: The plotted coordinates and arithmetic presets are curated teaching projections.
- Stable conceptLinear word analogies are a limited diagnostic: the standard test has known methodological weaknesses, and learned geometric patterns can encode social bias.
Scope: An exact answer in the arithmetic lab is guaranteed by its hand-authored coordinates and is not representative of every trained embedding.
Primary reading
- Efficient Estimation of Word Representations in Vector SpaceGoogle Research · paper
- GloVe: Global Vectors for Word RepresentationStanford University · paper
- Analogies minus analogy test: measuring regularities in word embeddingsAssociation for Computational Linguistics · paper
- Man is to Computer Programmer as Woman is to Homemaker?NeurIPS · paper
Next content review: 2027-07-29. Source links establish the lesson's claims; interactive numbers remain labeled simulations unless explicitly identified as measured data.