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.
How AI Answers Questions About Documents It Never Learned
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