Example

Example of a JSON Prompt Representation

A prompt defining a task can be formatted as a JSON object to represent its components as key-value pairs clearly. For example, a JSON structure for translation might define keys such as 'Task' as 'Translation', 'Source language' as 'English', 'Target language' as 'Chinese', 'Style' as 'Formal text', and 'Template' as 'Translate the following sentence: mathrmsentence{*\\mathrm{sentence}*}'. This attribute-based approach helps organize complex instructions systematically.

0

1

Updated 2026-04-29

Contributors are:

Who are from:

Tags

Foundations of Large Language Models

Ch.3 Prompting - Foundations of Large Language Models

Computing Sciences