[03/08] Embeddings — Closest-Match Map
Which word is closest in meaning?
Everyone can explore. Read how it works, then tap a supported word in the visualiser below → see its Meaning Fingerprint and nearest neighbors. Hospital ≈ Medical Center (0.99) ≠ Car (0.00).
How it scores — inside the umbrella
- Closer to 1.00 = same meaning = higher rank. 0.00 = unrelated. That’s the whole rule the map follows.
mockEmbed(word)→ deterministic 8-D vector (each topic sits on its own axis; related words sit at nearby angles).cosine(a,b) = dot(a,b)for normalized vectors.- Real TF Projector uses 300-D Word2Vec; we use 8-D so it loads instantly on your phone. Swap to
Transformers.js all-MiniLM-L6-v2later if you want real model scores.
Visualiser — tap a word, watch the map
Supported words — mock fingerprints (tap any)
Closer to 1.00 = same meaning = higher rank · 0.00 = unrelated
Query
Top 5 closest
Others
Metric: cosine similarity
Tap “physician” → watch cluster • Tap “car” → see fruit far
Ranked — closest first (your word is excluded; rank 1 = its best match)
Facilities rank closest to facilities (hospital → medical center → clinic); the practitioners (physician, doctor) come next — related, but a different kind of thing.
Next: Vector DB — the smart library
Fingerprints get filed so related meanings sit together. See the shelves in Vector DB [04/08] →