Old Keyword Search (Literal Spelling)
Search a hospital chart for "heart attack," and it completely misses a doctor who typed "acute myocardial infarction" or "STEMI." Different letters = zero match.
Part 4 · Article 6 Stage 2 · How modern AI works
Words, medical records, and X-ray images as GPS points on a hidden map—how turning meaning into geometry unlocked modern search and AI.
About 13–15 minutes
Walk into a brand-new supermarket in a country whose language you cannot read. You spot a jar with a completely unfamiliar label sitting right between honey, strawberry jam, and peanut butter. Without reading a single letter, you immediately know: "That's a sweet breakfast spread—definitely not laundry detergent or motor oil!"
How did you know? Because on a well-organized map, location IS meaning. Things that behave similarly live in the same aisle; unrelated things live across the store.
That exact idea—turning words, sentences, songs, patient histories, and medical scans into GPS coordinates inside a giant geometric map of meaning—is called an Embedding [1]. It is quietly one of the most important inventions in all of modern AI, powering everything from Google Search and Spotify Discover Weekly to clinical-trial matching and modern chatbots.
ZappyWait—a supermarket map only has 2 directions (left-right and front-back). How can a map capture ALL the subtle flavors of human language or medicine?
Prof. BoltInstead of just 2 directions (Latitude & Longitude), AI uses 500 or 1,500 invisible directions at once! Direction #1 might track "living vs. object," Direction #17 tracks "urgent vs. chronic," and Direction #42 tracks "bone vs. heart"!
In 1957, linguist John Rupert Firth wrote a famous one-sentence clue: "You shall know a word by the company it keeps." In 2013, Google researchers turned that clue into an algorithm called Word2Vec [2]. They fed billions of sentences into a simple neural network and forced it to play one endless guessing game: look at a word, and predict the words sitting right beside it.
Watch what happens automatically: the words "paracetamol," "ibuprofen," and "acetaminophen" constantly appear next to "fever," "headache," "tablet," and "dose." To win the guessing game, the neural network automatically moves their coordinates right next to each other on the map! Nobody ever handed the computer a medical dictionary—the map organized itself purely from context.
Then researchers noticed something jaw-dropping: relationships became straight arrows on the map! Take the coordinate for King, subtract Man, and add Woman—and the math lands squarely on Queen. Take Paris - France + India, and you land on New Delhi. In biomedical embeddings trained on PubMed research articles, Statins - Cholesterol + Blood Sugar points straight toward Metformin! [3]
Early 2013 embeddings had one funny flaw: every word only got one fixed GPS pin. So the word "discharge" sat awkwardly halfway between "hospital release paperwork," "wound fluid," and "battery power draining"! And the word "positive" sat confused between "cheerful mood" and "positive biopsy for cancer"—two wildly opposite emotions in a clinic!
Modern Transformer models (starting with BERT in 2018) upgraded to Contextual Embeddings [4]. Now, a word's GPS pin moves dynamically in real time based on the entire sentence around it: in "patient ready for morning discharge," the pin glides straight into the Hospital Admin neighborhood; in "purulent wound discharge," it zips straight into the Surgical Infection neighborhood.
Even cooler: Multimodal Embeddings (like CLIP and medical Vision-Language models) place both text and images onto the exact same shared map [5]. A chest X-ray showing fluid at the lung bases and the English phrase "bilateral pleural effusion" land on the exact same neighborhood—letting doctors search a 1-million-scan radiology archive by simply typing plain English symptoms!
Search a hospital chart for "heart attack," and it completely misses a doctor who typed "acute myocardial infarction" or "STEMI." Different letters = zero match.
Because "heart attack," "myocardial infarction," and "STEMI" sit on the exact same GPS block in embedding space, search finds all three instantly—even across languages!
Once everything lives as a point on a meaning map, measuring similarity becomes effortless Cosine distance math—unlocking four huge real-world tools:
| Embedding Type | What Gets Mapped? | Smart Upgrade | Real-World Example |
|---|---|---|---|
| Static Word (Word2Vec) | Individual words | First geometric meaning maps | King - Man + Woman = Queen |
| Contextual (BERT/LLM) | Words inside full sentences | Solves double meanings dynamically | Clinical notes ("wound discharge" vs "home discharge") |
| Multimodal (CLIP/Med) | Images + Text on ONE map | Search scans using plain language | Finding similar chest X-rays from typed symptoms |
Ever wondered how modern hospitals let doctors ask natural questions across 5,000 pages of antibiotic guidelines, surgical prep rules, and insurance policies without the AI inventing fake dosages? Follow the four-step embedding pipeline (called RAG — Retrieval-Augmented Generation) in action:
Notice who did the heavy lifting of accuracy: the embedding map found the exact right verified evidence by meaning rather than rigid spelling!
Human brains can barely imagine 3D space—so how do researchers inspect a 1,024-dimensional embedding map to make sure it organized medical concepts or images cleanly? They project those 1,024 coordinates down onto a flat 2D screen using compression tools like UMAP or t-SNE (our old friends from unsupervised learning!).
When pathology labs plot 50,000 biopsy slide embeddings on a 2D UMAP screen, glowing islands appear before their eyes: healthy tissue gathers peacefully on the left, aggressive tumors form a tight crimson archipelago on the right, and borderline precancerous lesions form a literal bridge right between them. Turning meaning into geometry doesn't just help machines—it gives human scientists a brand-new microscope for seeing patterns across millions of cases at once.
ZappyEmbeddings tie together EVERYTHING we learned—turning words and scans into numbers, finding nearest neighbours, clustering islands, and stopping chatbots from making stuff up!
Prof. BoltThat's why embeddings are the silent glue of modern AI! Once you picture meaning as a GPS location on a map, half of modern AI suddenly makes complete common sense.
Checked December 2026. Source types are labelled. Dialogue is fictional.