Prompt Engineering এর ভেতরে বিভিন্ন ধরনের technique বা ধরণ আছে। এগুলো ব্যবহার করে আমরা AI-এর output আরও বেশি relevant, accurate, এবং useful করতে পারি।
Zero-Shot Prompting
AI কে কোনো উদাহরণ না দিয়ে সরাসরি কাজ করতে বলা।
Example:
Write a travel guide about Dhaka in 150 words.
Few-Shot Prompting
AI কে কিছু উদাহরণ দেওয়া হয়, তারপর নতুন একই ধরণের output চাই।
Example:
Example:
Kolkata Guide → Visit Victoria Memorial, enjoy Bengali sweets, and ride the tram.
Now write a similar 3-point travel guide for Dhaka.
Chain-of-Thought (Step-by-Step Prompting)
AI কে বলা হয় ধাপে ধাপে চিন্তা করতে। এতে reasoning ভালো হয়।
Example:
Make a Dhaka travel plan step by step:
Morning activities
Afternoon activities
Evening activities.
Role-Based Prompting
AI কে নির্দিষ্ট একটি ভূমিকা (role) দেওয়া হয়।
Example:
Act as a professional tour guide and write about the top 5 attractions in Dhaka.
Persona/Tone-Based Prompting
AI কে বলা হয় কী ধরনের tone ব্যবহার করতে হবে (friendly, formal, fun ইত্যাদি)।
Example:
Write Dhaka travel info in a friendly and fun tone for young backpackers.
Instruction-Based Prompting
স্পষ্টভাবে নির্দেশনা (instruction) দেওয়া হয় কীভাবে উত্তর দিতে হবে।
Example:
Write a Dhaka travel guide in exactly 5 bullet points: food, transport, shopping, culture, and nightlife.
Refinement / Iterative Prompting
একই Prompt refine করে বারবার আরও ভালো Result আনা।
Example:
Step 1: Write about Dhaka.
Step 2: Write a Dhaka travel guide focusing on food and culture.
Step 3: Make it engaging for international backpackers in less than 150 words.
Output-Formatting Prompting
AI কে নির্দিষ্ট format (Table, JSON, Bullet Points) ব্যবহার করতে বলা।
Example:
Give me Dhaka travel guide in JSON format with keys: ‘Food’, ‘Culture’, ‘Places’.
Negative Prompting (What NOT to Do)
AI কে বলা হয় কোন জিনিস include না করতে।
Example:
Write a Dhaka travel guide in 150 words but do not include traffic problems.
সব ধরনের Prompt Engineering এর মূল উদ্দেশ্য একই — AI কে সঠিকভাবে নির্দেশনা দেওয়া। কিন্তু বিভিন্ন situation এ বিভিন্ন ধরনের technique কাজে লাগে।
Quick info দরকার হলে → Zero-Shot
Pattern follow করাতে চাইলে → Few-Shot
Complex reasoning এ → Chain-of-Thought
Professional tone দরকার হলে → Role/Persona-Based
Structured output চাইলে → Formatting Prompt