Skip to main content
GGenerative AI
    • Start here
    • Learning paths5 paths
    • Modules11 modules
    • Projects5 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep8 question banks
    • Cheat sheets11 sheets
    • Glossary239 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
SearchStart here
Menu
    • Start here
    • Learning paths5 paths
    • Modules11 modules
    • Projects5 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep8 question banks
    • Cheat sheets11 sheets
    • Glossary239 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
  1. Reference
  2. Few-shot prompting

Glossary

Few-shot prompting

Putting a few worked examples in the prompt so the model copies the pattern. No weights change, but you pay for the example tokens on every call.

Where it is explained

  • Prompting fundamentalsPrompting and structured output

See also

Terms explained in the same lessons.

  • Chain-of-thought (CoT)
  • Delimiter
  • Prompt
  • Self-consistency
  • Zero-shot prompting
  • System prompt
Previous termFalse positiveNext termField-level accuracy

All terms, A to Z

GGenerative AI

Learn generative AI from the first token to production systems.

  • Privacy
  • Search