Cheat Sheet: The Pipeline
Load to answer.
Here's the whole RAG pipeline on one page. Keep it as a reference whenever you build a new system.

- One page
- The whole pipeline
- Keep it handy
Indexing, ahead of time
Load your documents, with metadata. Clean them. Split them into chunks of a few hundred characters, with some overlap. Embed every chunk. And store the vectors, with the text and metadata.
- Load
- Clean
- Chunk
- Embed
- Store

Answering, per question
Take the question, and condense it if it's a follow up. Retrieve candidates with hybrid search. Rerank, and keep the best few. Build a grounded prompt. And generate the answer, with sources.
- Condense
- Retrieve
- Rerank
- Prompt
- Answer
Default settings
Good starting points are chunks of three hundred to eight hundred characters, with ten to twenty percent overlap. Fetch ten to twenty candidates, and keep three to five. And always use temperature zero for answers.
| key | value |
|---|---|
| Chunk size | 300 to 800 chars |
| Overlap | 10 to 20% |
| Fetch | 10 to 20 |
| Keep | 3 to 5 |
Summary
Index ahead of time, then condense, retrieve, rerank, prompt, and answer. Next, the better retrieval cheat sheet.
Key takeaways- Load to store
- Question to answer
- Sensible defaults