RAG FIELD GUIDE · MODULE 01
Retrieval, end to end.
A guided map of retrieval-augmented generation: the offline index, the online query path, and the choices that change the answer.
RAG / FLOW
The whole machine, on one page.
Indexing happens before the question arrives. Retrieval happens after. Most RAG confusion comes from mixing the two.
01Offline / indexing
- Sources
- Parse
- ChunkPC
- Metadata
- IndexHY · GR
02Online / query
- Query
- RewriteQW
- RetrieveHY
- FuseHY
- RerankRR
- ContextPC
- Generate
- Cite
The index built offline is what the query path retrieves from.
Badges mark where advanced techniques plug in: QW query rewrite · HY hybrid · RR rerank · PC parent-child · GR graph.
Overview
4 chapters
Pipeline
Run the machine and watch documents become context, then an answer.
Pipeline →02Mechanics
Chunking, indexing, retrieval, context and generation, one layer at a time.
Mechanics →03Advanced
Query rewrite, hybrid retrieval, reranking, parent-child chunks and Graph RAG.
Advanced →04Evaluation
Measure retrieval and generation separately, then end to end.
Evaluation →