โ† Generative AI & Prompt Engineering learning path
Generative AI & Prompt Engineering ยท Module 4 of 10

Advanced prompting techniques

Use examples, steps and structure.

๐Ÿ“– Key ideas

  1. Zero-shot: just the instruction.
  2. Few-shot: include examples of input/output.
  3. Ask the model to think step by step for reasoning tasks.
  4. Break big tasks into smaller prompts (prompt chaining).
  5. Use delimiters like XML tags or ### to separate sections.
๐Ÿ’ก Real-life example: Few-shot prompting is showing a new employee two filled forms before asking them to fill the third.
Zero-shotNo examples given
Few-shotExamples included in prompt
Step-by-step reasoningAsking the model to work through steps
Prompt chainingMultiple prompts in sequence