How a model finds meaning instead of just matching keywords. It's the engine behind RAG and recommendations.
A giant meaning-map, like a library shelved by what books are about rather than alphabetically. 'Doctor', 'physician' and 'GP' sit in the same neighbourhood even though they share no letters. Search becomes: 'what's near this point?'
That semantic search 'understands' the query like a human, or that you always need a dedicated vector database. It measures similarity (and can return something topically near but wrong); for a few thousand documents, a vector extension on your existing database is often enough.
The lesson, in five answers
An embedding turns text, or an image, into a list of numbers called a vector. That list captures the meaning. So things that mean similar things land close together in what's called 'vector space'. Semantic search finds results by how close their meaning is. A vector database stores millions of these vectors. It quickly finds the ones nearest to your query.
Embeddings are the best bang-for-buck fix for bad keyword search. They're also the backbone of RAG, recommendations, and spotting duplicates. They're why a search for 'can't log in' surfaces a doc titled 'authentication failure', even though the two share no words.
Reach for it whenever users search or browse by meaning. Also reach for it when a RAG feature needs the right context. In production, you rarely use embeddings alone. The default is hybrid search. That mixes embeddings with plain keyword search (BM25). Then a re-ranker cleans up the order. You need this because pure meaning-search misses exact terms like product codes and names. And a re-ranker sharpens the top results cheaply.
Close in meaning isn't the same as correct. Search can confidently return something that's near but wrong. Your choice of embedding model sets both quality and cost. And if you change it, you have to re-embed every document you have. That's a real cost on your roadmap. A dedicated vector database is one more system to run. At small scale that's more than you need yet. Start with pgvector on Postgres.
"Users searched 'can't log in', but our docs said 'authentication failure'. So keyword search returned nothing. Semantic search connects the two by meaning. In production I'd run hybrid search plus a re-ranker, so exact terms still land. I'd measure success by the drop in 'no results' searches and by how many tickets we deflect. And I'd start on pgvector before moving to a dedicated vector database."
The canonical explainers for this topic. Open them alongside the lesson, not after it.
External links open in a new tab. Content and prices change — verify before relying on any of them.
Embedding
A list of numbers (a vector) that captures meaning. Things with similar meaning sit close together. Change the embedding model and you have to redo this for every document you have.
Semantic search
Finding results by how close their meaning is, instead of matching keywords.
Hybrid search
Combining meaning-search (embeddings) with plain keyword search (BM25). It's the production default, because meaning-search alone misses exact terms.
Re-ranking
A cheap second pass that reorders the results you fetched, putting the most relevant first. It's often the best bang-for-buck fix.
Vector database
A store built to quickly find the vectors nearest to your query, even at big scale. Examples are Pinecone and pgvector.
You don't need to use or master these. Recognising the names — and which box each sits in — is the tech-stack awareness a PM needs. No deep dive.
Try it
Click a word to see its nearest neighbours. Meaning, not keywords.
Embeddings
Embeddings place text in a space where similar meanings sit close together. Pick any point to make it the query — the model finds its nearest neighbors. That is all semantic search is.
Conceptual illustration — real embeddings are ~1,000-dimensional, projected down to these two axes.
Pick a query
Hover or tap a dot. The component measures Euclidean distance to every other point and ranks the closest 4 — the same operation a vector database runs at scale.
Select can't log in: its top match is authentication failure — zero shared keywords. The model never sees letters, only these positions, so it matches meaning.
Why it matters to a PM
Embeddings are why search finds meaning, not keywords — the backbone of RAG, semantic search, and recommendations.
Recall beats re-reading. Answer before you flip.
List 10 phrases real users might type for one help topic (e.g. 'can't log in'). Note how few share keywords with your doc titles — that gap is exactly what embeddings close. Sketch how you'd measure success (drop in 'no results').
This is where the hours go — reading is the warm-up, doing is the learning.
External resources open in a new tab. Course prices and links change — verify before paying.
Marked this one off? Your progress saves on this device.