Core Prompting Techniques in Prompt Engineering

Lessons in this section

  1. Zero-Shot Prompting

    Get results with no examples: why zero-shot works, the task, choices and format recipe, cleaning replies in code, measuring on many inputs, defining labels, and its limits.

  2. Few-Shot Prompting

    Teach the model a pattern with examples: one-shot and few-shot, laying out examples, examples as chat turns, choosing varied and balanced examples, dynamic few-shot, and the cost of examples.

  3. Role Prompting

    Set who the model is and who it writes for: roles, system prompts, personas, audience prompting, checking reading level and rules in code, and the limits of roles.

  4. Delimited and Template Prompting

    Separate instructions from data with delimiters, keep data from breaking out of its tags, label several documents, build and fill templates, and get structured output you can check.