← All parts of this equation

Equation 36 · Part 8 · Naive, Graph, and Agentic: A Systems Comparison of RAG Architectures

addition

Ltotal=Lenc+∑i=1k(Lretrieve(i)+LLLM(i)).L_{\text{total}} = L_{\text{enc}} + \sum_{i=1}^{k} \left( L_{\text{retrieve}}^{(i)} + L_{\text{LLM}}^{(i)} \right).
addition

What this part means

Add the term after the plus sign to the term or group before it.

Its job in the formula

Add the term after the plus sign to the term or group before it.

The passage around this formula

A single latency model makes the difference between the first three rows and the last two concrete. Writing LencL_{\text{enc}} for query encoding, and Lretrieve(i)L_{\text{retrieve}}^{(i)} and LLLM(i)L_{\text{LLM}}^{(i)} for the retrieval and generation cost of round i , Ltotal=Lenc+∑i=1k(Lretrieve(i)+LLLM(i))L_{\text{total}} = L_{\text{enc}} + \sum_{i=1}^{k} \left( L_{\text{retrieve}}^{(i)} + L_{\text{LLM}}^{(i)} \right). For naive and hybrid RAG, k = 1 by construction — the sum has exactly one term, and total latency is boundable in advance for any query. For iterative RAG, k is a small integer set by a heuristic or a step cap chosen by the system builder, so the worst case is known even though the typical case varies with question difficulty. For agentic RAG, k is a random variable generated by the policy itself at run time, and its…

Read this part in the article →

Learn the underlying idea

Addition combines quantities; subtraction measures the signed difference between them. Parentheses show what is combined before the rest of the expression is evaluated.

Open the illustrated addition and subtraction in an equation guide →

Sources cited in the article section

These citations provide research context; check each source for the exact claim it supports.