# Exercise 3 · failure → fix → stage

IESE AI Club · Thursday 04 · Memory & RAG. Use it with the RAG Lab. Pedala, BiciYa, VoltCell, Fondo Norte and every person in the data room are fictional.

For each lab question:

1. Run it on the naive pipeline.
2. Write what reached the desk.
3. Change one control at a time until the verdict passes. The hint names the stage, not the fix.

| Lab question | What reached the desk (naive) | Fix you turned on | Stage | What the fix costs |
| --- | --- | --- | --- | --- |
| L1 How much is the student plan? | | | | |
| L2 What is the monthly price? | | | | |
| L3 Can Pedala cancel the battery contract early? | | | | |
| L4 What do customers complain about most? | | | | |
| L5 Does Pedala own any patents? | | | | |

The five stages, in pipeline order:

1. **Indexing** (prepare the pages): cut, label and store the files.
2. **Pre-retrieval** (improve the question): turn the question into a better search.
3. **Retrieval** (search): find the candidate pages.
4. **Post-retrieval** (pick the best pages): choose what goes on the desk, in what order and size.
5. **Generation** (answer from the pages): answer from the desk, point to the page, or say "not in the data room".

Costs to think about: an extra model call, more tokens on the desk, more setup before anyone asks, a setting that needs tuning.

Bonus: find a second fix for L1 or L3 in a different stage.
