|
| 1 | +# Module 2: Fundamentals |
| 2 | + |
| 3 | +## Core Prompt Engineering Techniques |
| 4 | + |
| 5 | +This module covers the essential prompt engineering techniques that form the foundation of effective AI assistant interaction for software development. |
| 6 | + |
| 7 | +### Learning Objectives |
| 8 | +By completing this module, you will be able to: |
| 9 | + |
| 10 | +- ✅ Apply eight core prompt engineering techniques to real coding scenarios |
| 11 | +- ✅ Write clear instructions with specific constraints and requirements |
| 12 | +- ✅ Use role prompting to transform AI into specialized domain experts |
| 13 | +- ✅ Organize complex inputs using XML delimiters and structured formatting |
| 14 | +- ✅ Teach AI your preferred styles using few-shot examples |
| 15 | +- ✅ Implement chain-of-thought reasoning for systematic problem-solving |
| 16 | +- ✅ Ground AI responses in reference texts with proper citations |
| 17 | +- ✅ Break complex tasks into sequential workflows using prompt chaining |
| 18 | +- ✅ Create evaluation rubrics and self-critique loops with LLM-as-Judge |
| 19 | +- ✅ Separate reasoning from clean final outputs using inner monologue |
| 20 | + |
| 21 | +### Getting Started |
| 22 | + |
| 23 | +**First time here?** If you haven't set up your development environment yet, follow the [Quick Setup guide](../../README.md#-quick-setup) in the main README first. |
| 24 | + |
| 25 | +**Ready to start?** |
| 26 | +1. **Open the tutorial notebook**: Click on [module2.ipynb](./module2.ipynb) to start the interactive tutorial |
| 27 | +2. **Install dependencies**: Run the "Install Required Dependencies" cell in the notebook |
| 28 | +3. **Follow the notebook**: Work through each cell sequentially - the notebook will guide you through setup and exercises |
| 29 | +4. **Complete exercises**: Practice the hands-on activities as you go |
| 30 | + |
| 31 | +### Module Contents |
| 32 | +- **[module2.ipynb](./module2.ipynb)** - Complete module 2 tutorial notebook |
| 33 | + |
| 34 | +### Time Required |
| 35 | +Approximately 90-120 minutes (1.5-2 hours) |
| 36 | + |
| 37 | +**Time Breakdown:** |
| 38 | +- Setup and introduction: ~10 minutes |
| 39 | +- 8 core tactics with examples: ~70 minutes |
| 40 | +- Hands-on practice activities: ~20-30 minutes |
| 41 | +- Progress tracking: ~5 minutes |
| 42 | + |
| 43 | +💡 **Tip:** You can complete this module in one session or break it into multiple shorter sessions. Each tactic is self-contained, making it easy to pause and resume. |
| 44 | + |
| 45 | +### Prerequisites |
| 46 | +- Python 3.8+ installed |
| 47 | +- IDE with notebook support (VS Code or Cursor recommended) |
| 48 | +- API access to GitHub Copilot, CircuIT, or OpenAI |
| 49 | + |
| 50 | +### Next Steps |
| 51 | +After completing this module: |
| 52 | +1. Review and refine your solutions to the exercises in this module |
| 53 | +2. Continue to [Module 3: Application in Software Engineering](../module-03-applications/) |
0 commit comments