Braj Kishore
JourneyVaultML FoundationsAI PM GuideAgenticNewsWork With MeMentorshipPulseNow
Say hi

Hiring · Building · Investing

Have a system — or a team —that needs to scale?

info@avyxon.ai

Usually replies within a day · track record here

JourneyVaultML FoundationsAI PM GuideAgenticNewsWork With MeMentorshipPulseNow
LinkedInXYouTubeSubstackInstagramThreadsFacebookDiscordGitHubTopmate
© 2026 Braj Kishore · Bengaluru, INThink Big · Start Small · Scale Fast
The Guide
04Phase 2 · Knowledge & Action

Embeddings & Semantic Search

How a model finds meaning instead of just matching keywords. It's the engine behind RAG and recommendations.

6-min read~3–4 hrs with the practice + a short course
The analogy

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?'

Unlearn this

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

01

What is it?

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.

02

Why it matters to a PM

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.

EmbeddingsGoogle ML Crash Course
03

When would I reach for it?

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.

recall — how much of the right content you find (illustrative)Keyword onlymisses synonyms58%Meaning onlymisses exact codes / names71%Hybrid + re-rankcatches both92%
Keyword search misses synonyms; meaning search misses exact codes and names. Hybrid plus a re-ranker catches both — which is why it's the production default, not pure vector search.
04

Trade-offs & failure modes

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.

05

Say this in an interview

"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."

Learn it from the best — as you go

The canonical explainers for this topic. Open them alongside the lesson, not after it.

Watch
  • Word Embedding and Word2VecStatQuest · Clear ground-up walkthrough of how words become vectors.
Read
  • The Illustrated Word2VecJay Alammar · The definitive visual deep-read on embeddings and the king−man+woman≈queen intuition.
  • What is a Vector Database?Pinecone · How vector DBs index and search embeddings — the storage layer behind RAG.
Docs
  • EmbeddingsGoogle ML Crash Course · Why embeddings beat one-hot encoding and how vector space captures meaning.
Tool
  • Embedding ProjectorTensorFlow · Rotate a real embedding space in 3D and watch semantic neighbours cluster.

External links open in a new tab. Content and prices change — verify before relying on any of them.

Key terms

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.

The stack — tools you'll hear about

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.

  • text-embedding-3 · Cohere · VoyageEmbedding modelsHosted embedding models.
  • sentence-transformersEmbedding modelsPopular open embeddings you can self-host.
  • Pinecone · Weaviate · Qdrant · MilvusVector databasesManaged / dedicated vector stores.
  • pgvector · ChromaVector databasesLightweight — start here at small scale.
  • Elasticsearch · OpenSearchRetrieval & searchKeyword + vector hybrid search.
  • Cohere RerankRerankersSharpen the top results cheaply.

Try it

The meaning map

Click a word to see its nearest neighbours. Meaning, not keywords.

Embeddings

The meaning map

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.

kingqueenprincemonarchcatdogkittenpuppycan't log inauthentication failurepassword resetsign-in errorParisFranceDelhiIndiaUPIwalletrefundtransaction

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.

Test yourself

Recall beats re-reading. Answer before you flip.

Embeddings & Semantic Search · self-test
2 cards
Card 1 / 2 · box 1
Do this

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.

Go deeper
  • The Illustrated Word2VecJay Alammar
  • What are vector embeddings?Pinecone

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.

PreviousPrompting & Context EngineeringNextRAG — Retrieval-Augmented Generation