Learn Before
Formula

Augmented Input Formula in RAG

In Retrieval-Augmented Generation (RAG), the input to the Large Language Model is augmented by combining the original context with retrieved information. After using the original context (xx) as a query to find the kk most relevant document pieces (c1,...,ckc_1, ..., c_k), a prompting template, denoted as g()g(·), combines these elements. The resulting augmented input, xx', is formally expressed as: x=g(c1,...,ck,x)x' = g(c_1, ..., c_k, x).

Image 0

0

1

Updated 2026-04-23

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related