Skip to content

Latency Budget

Medium — good to knowAI & ML

ELI5 - The Vibe Check

A latency budget is deciding upfront how many milliseconds each part of your AI pipeline is allowed to spend before the whole thing feels slow to a user. If your product needs to respond in 2 seconds total, you might allot 200ms to retrieval, 100ms to reranking, and the rest to generation. Blow past your slice and something downstream has to make up the difference, or the user just waits longer.

Real Talk

A latency budget is an allocation of total acceptable response time across the stages of a pipeline, such as retrieval, reranking, prompt construction, and generation, used to set performance targets for each component and identify which stage to optimize when the overall system is too slow. It is especially relevant for RAG and agentic pipelines where multiple sequential LLM and retrieval calls compound into user-facing latency.

When You'll Hear This

"Retrieval is eating half our latency budget, that's where we optimize first." / "We set a 3-second latency budget for the whole RAG pipeline, streaming or not."

Made with passive-aggressive love by manoga.digital. Powered by Claude.