DictionaryPrompt Engineering
Chain of Thought (CoT)
Asking the AI to think step by step before answering, like showing your working in a math exam.
Definition
A prompting technique where the model is instructed to show its reasoning step by step before giving a final answer. Improves accuracy on complex tasks but increases output token usage.
Example
Prompt: 'First list what the function should return for empty input, then check the code, then give your verdict.'