All field notes
Machine Learning

What Are Embeddings in Machine Learning? Meaning, Types & Examples

Discover how embeddings in machine learning help AI understand complex data — powering smarter search, better recommendations, and actionable insights.

KB
Kartik Bansal · CEO & Co-founder
May 3, 202510 min read
ShareLinkedInX
Embeddings in machine learning

Embeddings are one of the most important ideas in modern machine learning, and one of the most under-explained. At heart they are simple: a way to represent complex things — words, images, users, products — as lists of numbers that capture meaning, so a model can compare and reason about them.

The core idea

Raw data is messy and high-dimensional. An embedding compresses it into a dense vector where the geometry carries the meaning: similar items are close, different items are far. That single property is what powers semantic search, recommendations and retrieval.

Types of embeddings

  • Word and text — for language understanding and search.
  • Image — for visual similarity and recognition.
  • Graph — for entities and their relationships.
  • User / item — for recommendations and personalisation.
python
# similarity is just distance in the embedding space
cosine_similarity(embed("running shoes"), embed("trainers")) # 0.86
cosine_similarity(embed("running shoes"), embed("toaster")) # 0.11

Why they matter

  • They turn unstructured data into something a model can actually use.
  • They power search that understands intent, not just keywords.
  • They are the retrieval layer beneath RAG and most AI assistants.

Once you see data as points in a space where distance means similarity, half of modern machine learning stops being mysterious.

KnackLabs
All field notes
ShareLinkedInX
Keep reading

More field notes

Stay in the loop

New field notes, when we ship something worth writing about.

No cadence, no filler. Just the engineering and case studies as they go live.