← Mathematical compendium

Published equation contexts

Ltotal≈Lretrieve+k⋅ℓrerank+LgenerateL_{\mathrm{total}} \approx L_{\mathrm{retrieve}} + k \cdot \ell_{\mathrm{rerank}} + L_{\mathrm{generate}}

Why this formula appears here

The latency consequence follows from where the reranker sits in the request path. A simplified but useful model of end-to-end latency is Ltotal≈Lretrieve+k⋅ℓrerank+LgenerateL_{\mathrm{total}} \approx L_{\mathrm{retrieve}} + k \cdot \ell_{\mathrm{rerank}} + L_{\mathrm{generate}}. where k is the number of candidates handed to the reranker and ℓrerank\ell_{\mathrm{rerank}} is the marginal latency per candidate scored. Recall generally improves as k grows, because a larger candidate set is more likely to contain the passage that actually answers the query — but k multiplies the one latency term a team most directly controls, so it is not a value to leave at a copied default. It is a dial to be set from a measured recall-versus- k curve against an explicit latency budget, the same way the hybrid weight α\alpha is set from a…

Read the full article-specific guide →

Read the representative guide

LtotalL_{\mathrm{total}}

Symbol L_total

LtL_total is a part of this expression. Its role is fixed by the surrounding article and by the operations shown in the formula.

Read this term in its guide →
LretrieveL_{\mathrm{retrieve}}

Symbol L_retrieve

LrL_retrieve is a part of this expression. Its role is fixed by the surrounding article and by the operations shown in the formula.

Read this term in its guide →
LgenerateL_{\mathrm{generate}}

Symbol L_generate

LgL_generate is a part of this expression. Its role is fixed by the surrounding article and by the operations shown in the formula.

Read this term in its guide →

How to interpret it

Its accuracy depends on the assumptions and range of use described in the article.

Research cited beside this formula

Published contexts (1)

A symbol can carry a different meaning in another article. Each occurrence keeps its own guide and term definitions.

Ltotal≈Lretrieve+k⋅ℓrerank+Lgenerate,L_{\mathrm{total}} \approx L_{\mathrm{retrieve}} + k \cdot \ell_{\mathrm{rerank}} + L_{\mathrm{generate}},

Equation 11 · AI Agents & Systems

Building Production RAG: An Advanced Technical Guide

This equation gives an approximation: it relates the quantities while allowing an approximation.

The latency consequence follows from where the reranker sits in the request path. A simplified but useful model of end-to-end latency is Ltotal≈Lretrieve+k⋅ℓrerank+LgenerateL_{\mathrm{total}} \approx L_{\mathrm{retrieve}} + k \cdot \ell_{\mathrm{rerank}} + L_{\mathrm{generate}}. where k is the number of candidates handed to the reranker and ℓrerank\ell_{\mathrm{rerank}} is the marginal latency per candidate scored. Recall generally improves as k grows, because a larger candidate set is more likely to contain the passage that actually answers the query — but k multiplies the one latency term a team most directly controls, so it is not a value to leave at a copied default. It is a dial to be set from a measured recall-versus- k curve against an explicit latency budget, the same way the hybrid weight α\alpha is set from a…

Meanings in this article

  • kk: the number of candidates handed to the reranker.
Equation guide → · Article →