StudyToCert

All certifications / Azure AI Engineer / Lessons

Microsoft Certified: Azure AI Engineer Associate AI-102 · Domain 2: Implement generative AI solutions

Embeddings and vector retrieval for RAG: chunking documents, embedding models and similarity search

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

Normal search looks for matching words, so it misses results that say the same thing in different words. Vector search fixes that by turning text into a list of numbers, called an embedding, that captures its meaning. Texts that mean similar things end up with similar numbers, so the computer can find close matches even when no words are shared. Think of a giant map where every sentence gets a pin, and sentences about the same idea sit near each other. To search, you drop a pin for your question and pick the nearest pins. Because long documents mix many ideas, you first cut them into smaller pieces, called chunks, so each pin stands for one focused idea.

Jun, a support lead at Northgate Appliances, types car won't start into the company's new manual search, meaning the delivery van. Nothing useful comes back, even though page 212 of the fleet manual explains exactly what to do when the engine fails to turn over. The search engine is doing its job; the problem is that Jun's words and the manual's words do not overlap. A week later the team adds an AI layer that hands whole 300-page manuals to the model, and the answers get vague and the bill climbs. There has to be a better way to find the right paragraph by meaning. What is it?

Keyword search finds documents that share words with the query. That works well for exact terms but fails when users describe the same idea in different words. A search for car won't start may miss a passage about an engine that fails to turn over, because the two phrases share almost no words. Vector search solves this by comparing meaning instead of spelling. An embedding model turns a piece of text into a vector, a list of hundreds or thousands of numbers, placed so that texts with similar meaning have vectors that are close together. That property is what makes semantic retrieval possible in a retrieval augmented generation (RAG) app.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Azure AI Engineer for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Azure AI Engineer study plan