Retrieval Latency Budget
Definition
Retrieval Latency Budget — a predefined distribution of the overall SLA response time among the components of the RAG pipeline: query rewriting, vector search, re-ranking, and generation. Used for designing and monitoring latency.
Typical Distribution
| Stage | Budget Share |
|---|---|
| Query rewriting | 5–10% |
| Vector search | 10–20% |
| Re-ranking | 20–30% |
| LLM generation | 40–60% |
Management
- Limiting top-k at the retrieval stage.
- Dropping the re-ranker if the threshold is exceeded.
- Caching frequent queries.
- Parallel launch of search and prompt preparation.