Learn Before
Example

Examples of Key-Value Pairs in a Code-Style Translation Prompt

In a code-style translation prompt, demonstrations are often formatted as key-value pairs, sometimes called a 'name:content' style. These pairs specify the language and the corresponding text. For example, [English] = [I have an apple.], [German] = [Ich habe einen Apfel.], and [English] = [I have an orange.] are all concrete instances of this format, which can be used to construct few-shot learning prompts for translation tasks.

0

1

Updated 2026-04-29

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences