Skip to content
Learn Motion
ExploreHow it worksMembership
Log in
Learn Motion

How AI Answers Questions About Documents It Never Learned

1Why the Model Cannot Answer From Your Documents Alone2Chunking and Embedding: Turning Documents Into Something Searchable3Retrieval: Finding the Right Passages for a Question4Grounded Generation: Answering From the Retrieved Text
Why the Model Cannot Answer From Your Documents Alone

The Four Stages of a RAG System

4 / 4
To make that open-book move work, the system has to prepare your documents in advance. First it splits them into chunks, passages small enough to search and small enough to fit beside a question.
0:00 / 0:00

A working RAG system runs four stages. Chunking splits documents into passages small enough to search. Embedding turns each passage into a vector, a list of numbers that represents its meaning. Retrieval embeds the question the same way and pulls back the passages whose vectors are closest. Generation places those passages into the prompt and produces an answer grounded in them. The first two stages happen ahead of time; the last two happen per question.

Previous4 / 4Next

Learn Motion

Generate a course. Learn it properly.

Operated by Wuhan Daoyin Technology Co., Ltd.

Contact: [email protected]
Privacy PolicyTerms of Service

© 2026 Learn Motion