Embedding Models in Depth
An embedding is a dense vector of numbers that represents a piece of data — a token, a sentence, an image — such that geometric closeness means semantic similarity. Embeddings are the bridge between discrete symbols and the continuous math neural networks run on, and they are the engine behind semantic search and RAG.
In this lesson
- Two kinds of embeddings
- Measuring similarity
- How embedding models learn: contrastive training
- Practical code
- Choosing an embedding model
This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.