You already know: enterprise RAG (retrieval and citations), legal analysis (evidence verified by code) and the financial filings case (numbers from a facts table). This case adds length: a 30-page report cannot be written in one pass, so the problems become planning, consistency across sections, and keeping every claim traceable to its source.
How to read this lesson. No code, on purpose. Numbers marked assumed are assumptions you state out loud; prices are illustrative.
1. The prompt, and the questions that change the design
A mid-level answer: "retrieve relevant chunks and ask the model to write the report". A staff candidate notices three things that break at length: one generation cannot hold 50 pages of quality, sections written separately contradict and repeat each other, and citations drift (a claim cites a source that says something slightly different).
Assumptions you state: