Skip to content
AgenticAIWiki
  1. Learn
  2. Part 1. Gen AI concepts
  3. Chapter 4

Embeddings and semantic search

10 lessons · 48 min

Search by meaning, not by words

Full screen
Meaning space (squeezed to 2D)textSentence"Reset your password"Embedding modeltext in, vector outtext"Reset your password"-> [0.12, -0.48, 0.91, ..., 0.05] 1,024 numbers

Swipe to change step

Step 1 of 7. An embedding model reads a sentence and returns a list of numbers, a vector. It does not write text. It only places meaning. Sentence ("Reset your password"). Embedding model (text in, vector out), highlighted. arrow from Sentence to Embedding model, labelled text. a text moving along text.

In this chapter

  1. 4.1What an embedding is4 min read
  2. 4.2Similarity: cosine and dot product4 min read
  3. 4.3Keyword search vs semantic search4 min read
  4. 4.4Where embeddings show up in real systems4 min read
  5. 4.5Embedding models and dimensions5 min read
  6. 4.6Chunk, document and query embeddings5 min read
  7. 4.7Multimodal embeddings4 min read
  8. 4.8Lab: watch nearest neighbours change6 min read
  9. 4.9Sparse vectors: TF-IDF, BM25 and SPLADE6 min read
  10. 4.10L2 distance, normalisation and Matryoshka embeddings6 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…