LearnAI
Module 1 · How to talk to AI · Lesson 5/9
← Back to catalog
Task

Examples (few-shot): teach format

The model classifies messages into SPAM or HAM. Write a prompt with 2 examples (few-shot) so that the model responds with EXACTLY one word - SPAM or HAM - for a new message. No explanation.

Unlock access to submit solutions for instant AI review.Start for free
The most powerful precision move
💡 A bit of theory

1-3 examples of “input → output” provide more than a paragraph of instructions: the model copies the format shown.

How it's graded · passing score 70

  • 1Answer - one word/line30%
  • 2Correct classification (this is SPAM)40%
  • 3Label only, no explanation30%
Your promptClaude ⌄