Prompting

What is Few-Shot Example?

One or more examples inside a prompt that show the AI exactly what output format you want. More examples means more reliable results.

1 example · copy matches 6 of 6 cuts

Finish the sentencePrompthaus

A few-shot example shows the AI...

Practice this term

Write it in your own words in the app.

In real work

Use a few-shot example. Format each item like this: Input: shadcn. Output: A copy-paste component library. Now do the same for: Radix UI.

In the illustration

A tracer runs along the example key and the cutter copies the same six cuts into a blank. Example in, matching output out.

Use it in a prompt

Add a few-shot example to the ticket classifier prompt in your model: three real tickets with their labels, so the output always matches our six categories.

Try it now

The fastest way to learn a word is to use it. Open this line in the agent you already work in and watch what it does. Change the tool to the one you use.

Go further

  1. 01Practice

    Make it stick

    One term a day, a short quiz, and sentence practice that checks your own words.

    Get the app →

  2. 02Verify

    Prove you know it

    Pass the quiz and keep it in a Skills Wallet you can share with anyone who needs proof.

    How verification works →

  3. 03Career

    Find the work that uses it

    See which roles lean on this vocabulary, and what they pay in year one.

    All career pathways →

Learn the next term tomorrow.

Google gives a definition. Prompthaus pairs each term with how it shows up in standups, PRs, prompts, and design reviews. Then it quizzes you until the word sticks. One term a day on iPhone.

Markdown for agents