This repo contains implementation of 25+ prompt engineering techniques.
- πLLM Interview Questions and Answers - 100+ LLM Interview questions with answers.
- π¨π»βπ»LLM Engineer Toolkit - Categories wise collection of 120+ LLM, RAG and Agent related libraries.
- π©ΈLLM, RAG and Agents Survey Papers Collection - Category wise collection of 200+ survey papers.
| # | Category | Technique | Description | Learn |
|---|---|---|---|---|
| 1 | Basic | Zero-shot Prompting | Prompting without examples | Link |
| 2 | Basic | Emotion Prompting | Prompting with emotional cues | Link |
| 3 | Basic | Role Prompting | Model acts by adopting a specified role | Link |
| 4 | Basic | Batch Prompting | Model processes multiple inputs in one prompt | Link |
| 5 | Basic | Few-Shot Prompting | Prompting with examples | Link |
| 6 | Advanced - Reasoning |
Zero-Shot CoT Prompting | Step-by-step reasoning without examples | Link |
| 7 | Advanced - Reasoning |
Chain of Draft (CoD) Prompting | Step-by-step reasoning in a compact form without examples | Link |
| 8 | Advanced - Reasoning |
Meta Prompting | Structured blueprint + step-by-step reasoning | Link |
| 9 | Advanced - Reasoning |
Analogical Prompting | Self-generated relevant examples + step-by-step reasoning | Link |
| 10 | Advanced - Reasoning |
Thread of Thoughts Prompting | Breaks chaotic context into parts, summarizes, filters, then answers | Link |
| 11 | Advanced - Reasoning |
Tabular CoT Prompting | Step-by-step reasoning in tabular format | Link |
| 12 | Advanced - Reasoning |
Few-Shot CoT Prompting | Example step-by-step solutions + model imitates reasoning | Link |
| 13 | Advanced - Reasoning |
Self-Ask Prompting | Model generates sub-questions + solves them sequentially | Link |
| 14 | Advanced - Reasoning |
Contrastive CoT Prompting | Correct + incorrect reasoning examples to guide thinking | Link |
| 15 | Advanced - Reasoning |
Chain of Symbol Prompting | Symbolic reasoning examples + symbolic step-by-step solution | Link |
| 16 | Advanced - Break Down |
Least to Most Prompting | Decompose complex problem into sub-questions + solve them one by one | Link |
| 17 | Advanced - Break Down |
Plan and Solve Prompting | Model plans first, then solves step-by-step | Link |
| 18 | Advanced - Break Down |
Program of Thoughts Prompting | Generate code (or symbolic steps) + run it for precise reasoning | Link |
| 19 | Advanced - Break Down |
Faithful CoT Prompting | Natural-language plan + executable code ensuring logic-derived answers | Link |
| 20 | Advanced - Break Down |
Meta Cognitive Prompting | Model reflect on its reasoning strategy before answering | Link |
| 21 | Advanced - Ensemble |
Self Consistency Prompting | Generate many reasoning paths + pick the most common answer | Link |
| 22 | Advanced - Ensemble |
Universal Self Consistency Prompting | Sample multiple outputs + LLM picks the most coherent one | Link |
| 23 | Advanced - Ensemble |
Multi Chain Reasoning Prompting | Multiple reasoning paths + meta-synthesis into a superior final answer | Link |
| 24 | Advanced - Critique |
Self Refine Prompting | Model critiques its own response and iteratively improves it | Link |
| 25 | Advanced - Critique |
Chain of Verification | Draft an answer, verify it independently, then correct it | Link |
| 26 | Advanced - Multilingual |
Chain of Translation Prompting | Translate first, then perform the task for clearer reasoning | Link |
| 27 | Advanced - Multilingual |
Cross Lingual Prompting | Translate for meaning first, then step-step reason in a stronger language | Link |
| 28 | Advanced - Multi-Step |
Rephrase and Respond Prompting | Rewrite the question clearly, then answer the clarified version | Link |
| 29 | Advanced - Multi-Step |
Step Back Prompting | Identify the general principle first, then solve the specific problem | Link |
Please consider giving a star, if you find this repository useful.