Example

Example of a Prompt Template for Sample Generation in Self-Instruct

A prompt template for generating a new sample in the Self-Instruct process provides the LLM with existing samples to learn from. The template instructs the model to create a new sample, including an instruction, user input, and output. An example template is: "You are provided with a set of input-output samples, each composed of an instruction, a user input, and an output. Please generate a new sample based on these. Sample 1: instruction1{\mathrm{instruction}1} Input: user-input1{\mathrm{user\text{-}input}1} Output: output1{\mathrm{output}1} Sample 2: instruction2{\mathrm{instruction}2} Input: user-input2{\mathrm{user\text{-}input}2} Output: output2{\mathrm{output}2} New Sample: new-instruction{\mathrm{new\text{-}instruction}}".

0

1

Updated 2026-05-01

Contributors are:

Who are from:

Tags

Ch.4 Alignment - Foundations of Large Language Models

Foundations of Large Language Models

Computing Sciences

Foundations of Large Language Models Course