A production RAG system splits cleanly into two pipelines that run at completely different times. The indexing pipeline runs offline, whenever documents change. The query pipeline runs online, on every user question, under a latency budget. Confusing the two is the most common architectural mistake.
Documents
PDFs, wiki, tickets
Parse
to clean text
Chunk
split into passages
Embed
text → vector
Index
store in a vector DB