โ Generative AI & Prompt Engineering learning pathGenerative AI & Prompt Engineering ยท Module 4 of 10
Advanced prompting techniques
Use examples, steps and structure.
๐ Key ideas
- Zero-shot: just the instruction.
- Few-shot: include examples of input/output.
- Ask the model to think step by step for reasoning tasks.
- Break big tasks into smaller prompts (prompt chaining).
- 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