Skip to content

Embedding map

Search a word and see its neighbours on a 2D or 3D map.

What this lab shows

Embeddings are lists of numbers that represent meaning. Words with similar meanings end up close to each other. The map places dozens of words on a plane so you can see these groups.

This map was built by hand to show the idea. It is not output from an embeddings model.

How to use it

  1. Search for a word, such as cat or rain.
  2. See the five nearest neighbors and how close each one is.
  3. Switch to 3D and drag to rotate the map.
LabEmbedding mapTry it

Illustrative data A map built by hand to show the idea. A real map comes from an embeddings model (see scripts/gerar-embeddings.mjs).

dogcathorsecowliontigerwolffoxapplebananaorangegrapemangopearstrawberrypineapplecarbusmotorcyclebicycletrucktrainairplaneboatdoctornurseteacherstudentengineercookdriverprogrammerjoysadnessangerfearlovelongingcalmsurprisecomputerphoneinternetkeyboardscreensoftwarerobotalgorithmrainsuncloudwindsnowstormthunderheat
  • Animals
  • Fruit
  • Vehicles
  • Jobs
  • Feelings
  • Technology
  • Weather
What to notice: The groups show up on their own: animals near animals, weather near weather. This is how a search by meaning finds texts without the exact word.
Understand the conceptEmbeddings: How AI Stores Meaning as Numbers

Books that use this lab