How babitasinha/prompt-engineering works
This repository is a collection of prompt-engineering lessons and exercises, including introductory notebooks and separate demonstrations of advanced reasoning patterns with Amazon Bedrock. The learner’s intended workflow is to study prompt techniques through the numbered lessons, then explore the focused pattern notebooks. utils/hints.py provides exercise hints and solutions. The README is empty, and the available source excerpts do not show notebook execution or imports, so the graph does not assert dependencies between notebooks or between notebooks and the hints module.
Main entry points: 00_Tutorial_How-To.ipynb Tutorial guide · 01_Basic_Prompt_Structure.ipynb Prompt structure · 02_Being_Clear_and_Direct.ipynb Clear instructions · 03_Assigning_Roles_Role_Prompting.ipynb Role prompting
Components 16
Prompting lessons
- Tutorial guide
00_Tutorial_How-To.ipynb - Prompt structure
01_Basic_Prompt_Structure.ipynb - Clear instructions
02_Being_Clear_and_Direct.ipynb - Role prompting
03_Assigning_Roles_Role_Prompting.ipynb - Separate content
04_Separating_Data_and_Instructions.ipynb - Output formatting
05_Formatting_Output_and_Speaking_for_Claude.ipynb - Stepwise thinking
06_Precognition_Thinking_Step_by_Step.ipynb - Few-shot examples
07_Using_Examples_Few-Shot_Prompting.ipynb - Avoid hallucinations
08_Avoiding_Hallucinations.ipynb - Complex prompts
09_Complex_Prompts_from_Scratch.ipynb
Advanced patterns
- Chain of thought
chain_of_thought_bedrock.ipynb - Prompt optimization
prompt_optimization_bedrock.ipynb - ReAct pattern
react_pattern_bedrock.ipynb - Consistency and trees
self_consistency_and_tot.ipynb
Exercise support
- Exercise hints
utils/hints.py
Other components
- Learner
Connections 14
- Learner → Tutorial guide: studies
- Learner → Prompt structure: practices
- Learner → Clear instructions: practices
- Learner → Role prompting: practices
- Learner → Separate content: practices
- Learner → Output formatting: practices
- Learner → Stepwise thinking: practices
- Learner → Few-shot examples: practices
- Learner → Avoid hallucinations: practices
- Learner → Complex prompts: practices
- Learner → Chain of thought: explores
- Learner → Prompt optimization: explores
- Learner → ReAct pattern: explores
- Learner → Consistency and trees: explores