Key terms and concepts used throughout the course, explained in simple language.
The 10 essential components for crafting effective prompts. Use this as a checklist when building prompts for AI models.
| S.N | Component | What to Include | Example (Insert this part in prompt) |
|---|---|---|---|
| 1 | Role / Persona | Assign who the AI should act as | Act as an AI researcher / Act as a college professor / Act as a Hugging Face expert |
| 2 | Task / Instruction | Clearly state what you want the AI to do | Explain / Summarize / Compare / List / Generate an image / Write code |
| 3 | Context / Background | Give necessary situation or data | You are reading a 2025 research paper on Generative AI… |
| 4 | Format / Structure | Specify exact output style | in 5 bullet points / in a table / in exactly 100 words / numbered list |
| 5 | Constraints / Limits | Word count, difficulty, language, tone, length | maximum 80 words / for 1st-year students / in simple English / formal tone |
| 6 | Examples (Few-Shot) | 1–3 input–output examples | Q: What is NLP? A: Natural Language Processing… Now define Computer Vision |
| 7 | Reasoning Instruction | Ask to think step-by-step or justify | Think step by step / First reason then answer / Justify each point |
| 8 | Tool / Platform | Mention specific tool if required | Using only Hugging Face / With Perplexity AI / In Google Gemini |
| 9 | Iteration / Refinement | Ask to improve a previous answer | Make it shorter and more academic / Add one real-world example |
| 10 | Self-Check / Verification | Ask AI to verify its own answer | After answering, double-check your response for accuracy |
Pro Tip: Combine multiple components for better results. For example:
Act as a college professor · Explain · in 5 bullet points · for beginners · verify your answer