Learn Before
Formula

Augmented Input Formula in In-Context Learning

To provide demonstrations to a Large Language Model, the original user input (x\mathbf{x}) is combined with a sequence of context messages (c1,,ck\mathbf{c}_1, \dots, \mathbf{c}_k). A specific prompting template, denoted as gg, is used to structure these elements together (such as formatting them as a series of messages followed by an expected output). This process generates a single, combined sequence known as the augmented input (x\mathbf{x}'). The creation of this augmented input can be formalized mathematically as: x=g(c1,,ck,x)\mathbf{x}' = g(\mathbf{c}_1, \dots, \mathbf{c}_k, \mathbf{x}).

0

1

Updated 2026-04-23

Contributors are:

Who are from:

Tags

Foundations of Large Language Models

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related