Prompt EngineeringIntermediate

Few-Shot Learning Template

Teach the AI a task with 3 worked examples before the real request.

Framework: Examples + task

Fill the Variables

0/9 filled

Your Final Prompt

I will show you examples of a task. Learn the pattern, then apply it to the final input.

Example 1:
Input: {ex1_in}
Output: {ex1_out}

Example 2:
Input: {ex2_in}
Output: {ex2_out}

Example 3:
Input: {ex3_in}
Output: {ex3_out}

Rules for the output:
- Match the format of the examples exactly
- {rule_1}
- {rule_2}

Now process this input:
{real_input}

Tip: fill all variables for the best result, or copy the raw template with placeholders.

Skip to content