LLM features are slow compared with the rest of an app, and they vary. A median of 1.5 seconds can hide a p95 of 6. Users don't experience the median; they experience the wait they happened to get.
Set the budget first
Decide what each step is allowed: retrieval 300 ms, model first token 1.2 s, tool calls 800 ms each. Measure every step separately so you know which one broke the budget.
Then design for it
- Stream the answer as soon as the first tokens arrive.
- Show real progress: "Searching 3 sources", "Checking your order". Specific beats a spinner.
- Say when it will be slow. A long report can say "about 30 seconds" up front and be forgiven; a silent 30 seconds will not be.
- Have a fallback for the slow tail: a smaller model, a cached answer, or a "we'll email it to you" path.
Latency is a product decision that happens to be measured by infrastructure. Writing it down where users can see it keeps everyone honest.
Next noteRAG that respects permissions