Building with AILesson 33 of 80

Module 4 · Retrieval and the knowledge problem

What an embedding is, and what “close” actually means

In this lesson

  • 10 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 2 of 11 in this chapter

This chapter’s goalBuild a retrieval pipeline from raw documents to a ranked set of chunks (embed, index, fuse with keyword search, rerank, filter by permission) measure its recall on a gold set of your own questions, and say from cost and quality numbers whether a given corpus should be retrieved or simply placed in the context window.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

A list of numbers that stands for meaning

An embedding model takes a piece of text and returns a fixed-length list of numbers. For all-MiniLM-L6-v2 that list is 384 numbers long. For bge-base it is 768. For OpenAI’s text-embedding-3-small it is 1,536, and for text-embedding-3-large 3,072. No individual number means anything you can name. What matters is the whole list, treated as a point in a space with that many dimensions, and where that point sits relative to other points.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘What an embedding is, and what “close” actually means’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/embeddings-what-the-numbers-mean (Accessed: 29 November 2026).