What is an Embedding? Vectors Explained

Preporato | AI for Engineers · Beginner ·🧠 Large Language Models ·1mo ago

About this lesson

Embeddings Explained: what they are, how they're trained, and why they power semantic search, RAG, and every large language model. Try it yourself — hands-on embedding & RAG labs in your browser: https://preporato.com/labs CHAPTERS 0:00 What is an embedding? 0:14 Why embeddings exist (king vs monarch) 0:32 A list of numbers (king → vector) 0:58 Same trick for images, code, audio (CLIP) 1:22 How they learn — the guessing game 1:52 Contrastive learning (modern embedding models) 2:23 Now the fun part 2:33 How many numbers? (Word2Vec 300 → text-embedding-3-large) 2:53 Cosine similarity (the angle = the meaning) 3:14 Vector arithmetic (king − man + woman = queen) 3:34 Embeddings inside every LLM 3:56 Where you use them — semantic search, recs, anomaly, RAG 5:02 Recap — turn anything into a vector, meaning becomes math

Original Description

Embeddings Explained: what they are, how they're trained, and why they power semantic search, RAG, and every large language model. Try it yourself — hands-on embedding & RAG labs in your browser: https://preporato.com/labs CHAPTERS 0:00 What is an embedding? 0:14 Why embeddings exist (king vs monarch) 0:32 A list of numbers (king → vector) 0:58 Same trick for images, code, audio (CLIP) 1:22 How they learn — the guessing game 1:52 Contrastive learning (modern embedding models) 2:23 Now the fun part 2:33 How many numbers? (Word2Vec 300 → text-embedding-3-large) 2:53 Cosine similarity (the angle = the meaning) 3:14 Vector arithmetic (king − man + woman = queen) 3:34 Embeddings inside every LLM 3:56 Where you use them — semantic search, recs, anomaly, RAG 5:02 Recap — turn anything into a vector, meaning becomes math
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

Chapters (13)

What is an embedding?
0:14 Why embeddings exist (king vs monarch)
0:32 A list of numbers (king → vector)
0:58 Same trick for images, code, audio (CLIP)
1:22 How they learn — the guessing game
1:52 Contrastive learning (modern embedding models)
2:23 Now the fun part
2:33 How many numbers? (Word2Vec 300 → text-embedding-3-large)
2:53 Cosine similarity (the angle = the meaning)
3:14 Vector arithmetic (king − man + woman = queen)
3:34 Embeddings inside every LLM
3:56 Where you use them — semantic search, recs, anomaly, RAG
5:02 Recap — turn anything into a vector, meaning becomes math
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →