Skip to content

Few shot

Zero shot prompt has been shown to produce remarkable results on simple tasks. Research demonstrates that few-shot prompting does produce a significant improvement in performance, at the expense of consuming part of the prompt available tokens.

The basic template for few-shot prompts is:

<instruction-text>

<first examples>
<second examples>
...

<input text>

Example:

Input: "Hello, how are you?"
Output: "Hola, ¿cómo estás?"

Input: "What is your name?"
Output: "¿Cuál es tu nombre?"

Input: "I love learning new languages."
Output: "Me encanta aprender nuevos idiomas."

Input: "Have a great day!"
Output: 

A possible model response would be:

¡Que tengas un gran día!