The RAG Pipeline
In this article
- Trace one question through the offline and online lanes of a RAG pipeline and name the artifact each stage hands to the next.
- Tell the required stages from the optional parts, such as an embedding for each chunk or a filter or rerank step.
- Follow a source id through every artifact and find the stage that dropped it.
- Recognise a question where agentic retrieval would replace the one fixed search.
- Terms defined here: RAG pipeline, chunk, index, embedding, reranker, agentic retrieval.
Overview
A support assistant replies to a refund question with the right rule and the name of the help page it took the rule from. One day the same kind of reply arrives with the right rule and no page name. Nothing crashed. Which part of the system do you open?
You can only answer that if you see the reply as the end of a chain. Part of the chain ran days earlier, when the help pages were prepared; the rest ran in the second after the customer pressed send. The hand-offs between its links are what you read to find the broken one.
The example is Brightline, a home-internet provider whose support assistant answers customers from about 400 help pages, can look up an order, can issue a refund of at most $50 and can hand a conversation to a person. The company, its pages and its numbers are invented.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Two lanes, seven stages
- The offline lane: from documents to an index
- The online lane: from a question to an answer
- Following the source id
- When one search is not enough
- Sources
- Check yourself, 13 questions