לְגַלוֹת פוסטים

חקור תוכן שובה לב ונקודות מבט מגוונות בדף Discover שלנו. חשוף רעיונות טריים והשתתף בשיחות משמעותיות

Lesson 3
The Power of Constraints (Controlling the Output)

Welcome back to Prompt Engineering Lesson 3!
Now that you have mastered the basics and learned how to assign expert roles to the AI, it is time to look at the other side of the equation: Output Constraints. This lesson will teach you how to dictate the exact format, length, and style of the AI's response so you never have to waste time editing it.

Lesson 3: The Power of Constraints (Controlling the Output)
1. Introduction
If you don't tell the AI how to format its answer, it will default to long, wordy paragraphs. Constraint Prompting is the practice of setting strict rules for the AI's output. By defining boundaries, you force the AI to be precise, concise, and highly organized.
2. Common Types of Constraints
You can restrict the AI using several parameters:
Length Constraints: "Keep it under 50 words" or "Write exactly 3 sentences."
Format Constraints: "Respond only in a Markdown table," "Use a bulleted list," or "Output in raw JSON code."
Tone/Style Constraints: "Write in a professional, corporate tone" or "Explain like I am a 10-year-old."
Negative Constraints: Telling the AI what not to do (e.g., "Do not use corporate jargon" or "Do not include any introductory text".
3. The Blueprint for Constraint Prompting
When adding constraints, place them clearly at the bottom of your prompt. Use clear bullet points so the AI engine registers them as hard rules.
4. Bad vs. Good Constraint Examples
Bad Prompt (No Rules)
Summarize the history of used car market trends."

Good Prompt (Engineered Constraints)
Summarize the history of used car market trends.

Constraints:
- Provide exactly 3 bullet points.
- Keep each bullet point under 15 words.
- Do not include any introductory or concluding text."

📝 Lesson 3 Homework
Open your AI playground and test this control framework right now:
1 Paste this structured prompt:
"Act as a social media manager. Give me 3 content ideas for a community platform.
Constraints: Output ONLY as a Markdown table with two columns: 'Idea' and 'Target Audience'. Do not write any conversational text before or after the table."
2 Check if the AI followed your formatting rules perfectly without saying "Here is your table:".

image

Eid Mubarak , frnds! 🎉🤍

May Allah accept your qurbani, duas, and good deeds, and bring peace, barakah, and joy to you and your family this Eid ul Adha.

🌙✨ عید مبارک ✨🌙
اللہ تعالیٰ آپ کی زندگی کو خوشیوں، محبت، سکون اور برکتوں سے بھر دے۔
یہ عید آپ کے لیے نئی امیدیں، کامیابیاں اور ڈھیروں مسکراہٹیں لے کر آئے۔ 🤍
اپنوں کے ساتھ خوشیاں بانٹیں، دعاؤں میں یاد رکھیں اور ہر لمحہ شکر کے ساتھ گزاریں۔

Cjacker יצר מאמר חדש
12 ב

IGGM May 29 Monopoly Go 2 Gold Stickers Sale: Howling Wolf & Transformed | #monopoly Go # Monopoly Ever After # Monopoly Go Golden Blitz event May 29 # Monopoly Go Gold Card: Transformed & Howling Wolf # Buy Monopoly Go Gold Stickers # IGGM

IGGM May 29 Monopoly Go 2 Gold Stickers Sale: Howling Wolf & Transformed

IGGM May 29 Monopoly Go 2 Gold Stickers Sale: Howling Wolf & Transformed

Monopoly Go Golden Blitz event starts on May 29th. Pre-order gold stickers: Transformed & Howling Wolf, now on IGGM to receive them as soon as the event begins.
Ephraim יצר מאמר חדש
12 ב

IGGM Multi-Game New Update Collection: Cheap In-Game Currency For Sale | #iggm #buy Helldivers 2 Items #buy POE 2 0.5.0 Currency #buy CoD: Black Ops 7 Bot Lobbies #buy Monopoly Go Gold Stickers #buy WoW MoP Classic Gold

IGGM Multi-Game New Update Collection: Cheap In-Game Currency For Sale

IGGM Multi-Game New Update Collection: Cheap In-Game Currency For Sale

Many games have recently received content updates, and IGGM is keeping up with these updates by offering affordable resources for various games for you to buy. Check it out!
Ephraim יצר מאמר חדש
12 ב

IGGM Multi-Game New Update Collection: Cheap In-Game Currency For Sale | #iggm #buy Helldivers 2 Items #buy POE 2 0.5.0 Currency #buy CoD: Black Ops 7 Bot Lobbies #buy Monopoly Go Gold Stickers #buy WoW MoP Classic Gold

IGGM Multi-Game New Update Collection: Cheap In-Game Currency For Sale

IGGM Multi-Game New Update Collection: Cheap In-Game Currency For Sale

Many games have recently received content updates, and IGGM is keeping up with these updates by offering affordable resources for various games for you to buy. Check it out!

تعارف (Introduction)
عام طور پر، ایک AI آپ کو بالکل سیدھا اور عام سا جواب دیتا ہے۔ لیکن، آپ AI کو حکم دے سکتے ہیں کہ وہ کسی مخصوص پیشے، مہارت، یا شخصیت کا روپ دھار لے۔ اسے پرسنونا پرامپٹنگ (Persona Prompting) کہا جاتا ہے۔
جب آپ AI کو کوئی کردار (Role) دیتے ہیں، تو وہ اسی ماہر کے مطابق اپنا لہجہ، الفاظ کا چناؤ اور معلومات کی گہرائی تبدیل کر لیتا ہے۔
2. کردار دینا کیوں ضروری ہے؟
اگر آپ ایک عام سوال پوچھیں گے، تو آپ کو کتابی جواب ملے گا۔ لیکن اگر آپ اسے ایک خاص کردار دیں گے، تو آپ کو ایک ماہر کی رائے ملے گی۔
دیکھیں کہ ایک ہی سوال کا جواب مختلف کرداروں کی وجہ سے کتنا بدل جاتا ہے:
سوال: "مجھے ایک نئے بزنس آئیڈیا پر کیسے کام کرنا چاہیے؟"
بطور ایک تخلیقی آرٹسٹ (Creative Artist): AI آپ کو جذبے، منفرد ڈیزائن اور کہانی پر توجہ دینے کا کہے گا۔
بطور ایک فنانشل ایڈوائزر (Financial Advisor): AI آپ کو بجٹ، مارکیٹ کے خطرات اور منافع (ROI) کا حساب لگانے کا کہے گا۔
3. پرسنونا پرامپٹنگ کا فارمولا
ایک بہترین کردار والا پرامپٹ بنانے کے لیے اس سادہ فارمولے کا استعمال کریں:
ایک [پیشہ/کردار] کے طور پر کام کرو جس کا [X سال کا تجربہ] ہو۔ تمہارا لہجہ [لہجے کی قسم] ہونا چاہیے۔"

4. غلط اور صحیح پرامپٹ کی مثال
غلط پرامپٹ (بغیر کردار کے)
"مجھے میری ویب سائٹ کی ٹریفک بڑھانے کے لیے کچھ مشورے دو۔"

صحیح پرامپٹ (کردار کے ساتھ
"ایک ماہر سینئر SEO کنسلٹنٹ کا کردار ادا کرو۔ میرا چیلنج یہ ہے کہ میں ایک سوشل میڈیا کمیونٹی پلیٹ فارم کے لیے آرگینک ٹریفک بڑھانا چاہتا ہوں۔ مجھے 3 انتہائی عملی اور جدید ترین اسٹریٹجیز بتاؤ۔"

پ کا دوسرا ہوم ورک
آج ہی اپنے AI پلے گراؤنڈ (AI Playground) میں اسے ٹرائی کریں:
1 پہلا قدم: اس پرامپٹ کو بالکل اسی طرح کاپی کریں:
"ایک سخت اور ڈسپلن والے فٹنس ٹرینر کا کردار ادا کرو۔ مجھے 2 جملوں میں بتاؤ کہ مجھے آج اپنی ورزش کیوں نہیں چھوڑنی چاہیے۔"
2 دوسرا قدم: اب اس کردار کو تبدیل کریں اور یہ لکھیں:
"ایک نرم مزاج اور پیار کرنے والی دادی اماں کا کردار ادا کرو۔ مجھے 2 جملوں میں بتاؤ کہ مجھے آج اپنی ورزش کیوں نہیں چھوڑنی چاہیے۔"
غور کریں کہ کس طرح AI کی پوری شخصیت اور بات کرنے کا لہجہ مکمل طور پر بدل جاتا ہے! آپ کو کس کردار (Persona) نے ورزش کرنے کے لیے زیادہ متحرک (Motivate) کیا؟

image

Lesson 2
Persona Prompting (The Power of Roles)
1. Introduction
By default, an AI tries to give a balanced, general answer. However, you can command the AI to take on a specific persona, profession, or personality. This is called Persona Prompting.
When you give the AI a role, it changes its tone, vocabulary, and depth of knowledge to match that specific expert.

2. Why Use Personas?
If you ask a general question, you get an encyclopedia answer. If you assign a persona, you get expert advice.
Look how the exact same question gets completely different answers based on the role:
Question: "How should I approach a new business idea?"
As a Creative Artist: It will tell you to focus on passion, unique visuals, and storytelling.
As a Financial Advisor: It will tell you to analyze cash flow, market risks, and return on investment (ROI).
3. The Formula for Persona Prompting
To create a great persona prompt, use this simple formula:

Act as a [Professional/Role] with [X years of experience]. Your tone should be [Tone]."

4. Bad vs. Good Persona Examples
Bad Prompt (No Persona)
Give me advice on how to improve my website's traffic."

Good Prompt (Engineered Persona)
Act as an expert Senior SEO Consultant. Analyze my current challenge: I want to increase organic traffic for a social media community platform. Give me 3 highly practical, modern strategies."

Lesson 2 Homework

Try this in your AI playground today:
1 Copy this prompt exactly: "Act as a tough, strict fitness trainer. Tell me why I shouldn't skip my workout today in 2 sentences."
2 Now change the role: "Act as a gentle, loving grandmother. Tell me why I shouldn't skip my workout today in 2 sentences."
Observe how the AI's entire personality and tone completely shift! Which persona felt more motivating to you?

image

Qurbani ka waqt
- 10 Zilhijjah ki Eid ki namaz ke baad se 12 Zilhijjah ka suraj doobne tak.
- Jahan Eid ki namaz nahi hoti, wahan subah sadiq se shuru ho sakta hai.
Gosht takseem karna
- Behtar hai 3 hisse karo: 1 ghar ke liye, 1 rishtedaron/doston ke liye, 1 gareebon ke liye.
- Poora gosht sadqa karna bhi jaiz hai, aur poora rakh lena bhi jaiz hai. Lekin gareebon ko dena afzal hai.

*6. Qurbani na kar sako to?
- Agar sahib-e-nisab ho aur qurbani na ki to qurbani ke barabar raqam sadqa kar dena behtar hai.
- Qurbani ka badal roza nahi hai.

*Qurbani ke Masail

*. Qurbani kis par wajib hai?*
- Har us baligh, aqil, muqeem Musalman par jo nisab ke barabar maal ka malik ho.
- Nisab ka matlab: 7.5 tola sona ya 52.5 tola chandi ya uske barabar cash/mal ho, aur qarz nikaal kar bhi bacha ho.
- Aurat par bhi wajib hai agar wo sahib-e-nisab ho.

*. Kis janwar ki qurbani hoti hai?*
- Bakra, bakri, bhedd, dumba: 1 saal ka hona chahiye. Bhedd 6 mahine ka ho aur bada lage to chal jayega.
- Gaaye, bhains: 2 saal ki.
- Oont: 5 saal ka.
- Ek bakra/bakri 1 shakhs ke liye. Gaaye, bhains, oont mein 7 hisson tak qurbani ho sakti hai