AI System Design·Question 5 of 11Quick-fire

How do you cut the p95 latency of a feature that makes one reasoning-model call per request?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Question whether every request needs the reasoning model: route so the common, easy cases go to a fast standard model and only hard cases escalate, which alone often halves p95. Stream the response so perceived latency drops, cache the stable prompt prefix and any repeated context via KV/prompt caching, trim the context to cut input processing time, and cap the reasoning budget where the provider allows. If the work decomposes, run independent sub-steps in parallel instead of serially. Measure p95 before and after each change rather than guessing.

Full worked answer

Question whether every request needs the reasoning model: route so the common, easy cases go to a fast standard model and only hard cases escalate, which alone often halves p95. Stream the response so perceived latency drops, cache the stable prompt prefix and any repeated context via KV/prompt caching, trim the context to cut input processing time, and cap the reasoning budget where the provider allows. If the work decomposes, run independent sub-steps in parallel instead of serially. Measure p95 before and after each change rather than guessing.

Learn more: Production topic

What a good answer covers

  • Question whether every request needs the reasoning model
  • Stream the response so perceived latency drops, cache the stable prompt prefix and any repeated context…
  • If the work decomposes, run independent sub-steps in parallel instead of serially
  • Measure p95 before and after each change rather than guessing

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep