Prompting and tools · about 15 minutes of study

Few-shot

Few-shot prompting includes examples that demonstrate a desired input-output pattern without updating model weights.

Before you start: Review System prompt first. Python-like examples use variables, lists and functions.

Guided concept walkthrough

Follow the mechanism

Task definition

Define labels and boundaries.

1 / 4

A conceptual animation, not a live model trace. Play advances every five seconds and stops at the final stage.

Start with an everyday explanation

Show a new teammate several correctly labeled support messages before asking them to label another. The examples guide the task but do not cover every exception.

See a concrete example

Examples map refund to billing and denied claim to claims. “I was billed after my claim was denied” may require multi-label handling or clarification.

A claim to question

Examples do not replace a clear label definition or unbiased evaluation.

Try before revealing the answer

Add an ambiguous example and define when the router should return needs_review.

Show the worked answer

Use needs_review when evidence supports multiple categories under a single-label contract. Evaluate false routing costs rather than forcing every message into a confident category.

Now explain the idea to someone else using your own example. If you cannot explain a stage, revisit it before moving on.

Your explanation and revision notes

Loading local notes…

Read the primary reference

Attention Is All You Need

The explanation and exercises are original teaching material. The linked source provides background; examples and assumed numbers here are not claims about a particular company.