# Prompt Engineering ## Metadata **Status**:: #x **Zettel**:: #zettel/keyword **Created**:: [[2023-04-26]] **Topic**:: [[♯ AI Assistant]] ## Principles - Be specific. - Give context. ## Techniques - Few-shot: instruction with exemplars. - CoT (Chain-of-Thought): break down the task. - Zero-shot COT: [[Snippets - Prompt#Snippets - Prompt#Step by Step (`aipsbs`)|Step by Step]] - Few-shot COT: show how to break down the task. ## AI Loop Let AI help to improve the prompt: - Find and evaluate variants - Generate examples - Generate hint or context ## References - [[Dair.ai Authors - Prompt Engineering Guide (Highlights)]] - [[Jessica Shieh - Best practices for prompt engineering with OpenAI API (Highlights)]] - [[Ben Congdon - On Prompt Engineering (Highlights)]] - Prompt Design posted by [[Anthropic Authors]] - [[DeepLearning.AI - ChatGPT Prompt Engineering for Developers (Notes)]]