Basic Techniques
Zero-Shot
Ask directly without examples.
Few-Shot
Provide 2-5 examples for the model to learn patterns.
Chain-of-Thought
Add “Let’s think step by step” to guide stepwise reasoning.
Advanced Techniques
- Role-playing: Have the model adopt a specific persona
- Format Control: Explicitly specify output format
- Tree of Thoughts: Explore multiple reasoning paths
Good prompting is a craft that requires continuous practice.