काम गर्ने prompts: role, context र constraints
राम्रो prompt को संरचना — role, task, context र constraints — र चारवटैलाई अंग्रेजीमा स्पष्ट र सटीक रूपमा कसरी लेख्ने।
बलियो prompt भनेको लामो prompt होइन। यो त्यस्तो prompt हो जसले model लाई चार कुरा बताउँछ, जुन अन्यथा यसले अनुमान मात्र लगाउन सक्थ्यो: role अनुसार यो को हो, यसले के गर्दै छ, किन, र कुन सीमाभित्र। धेरैजसो खराब जवाफ यही कारणले आउँछन्: चारमध्ये एउटा भाग छुटेको हुन्छ।
चार भाग
| भाग | के बताउँछ | उदाहरण |
|---|---|---|
| Role | model ले को बनेर बोल्ने | Act as an experienced editor. |
| Task | के गर्ने | Rewrite this paragraph. |
| Context | केमा र कसका लागि काम गर्ने | It is the opening of a cover letter for a teaching job. |
| Constraints | सीमाहरू — लम्बाइ, tone, format | Under 80 words, formal, no clichés. |
चारवटै भाग सधैँ आवश्यक हुँदैनन्। छिटो कामका लागि एक लाइनको Summarise this. पुग्छ। तर जब नतिजाको महत्त्व हुन्छ — जागिरको आवेदन, ग्राहकलाई email, तपाईंले प्रकाशित गर्ने कुनै व्याख्या — चार भागले नै draft लाई कामलायक बनाउँछन्।
Role
Role ले पछि आउने हरेक कुरालाई एउटा ढाँचा दिन्छ। Act as… मानक सुरुवात हो:
- Act as a patient tutor and explain this to a complete beginner.
- Act as a hiring manager and point out the weaknesses in this CV.
- Act as a proofreader and correct only grammar and spelling.
Role एउटा register हो: यसले model लाई अंग्रेजीको कुन रूप प्रयोग गर्ने भनेर बताउँछ, ठीक जसरी तपाईं मान्छेसँग कुरा गर्दा register छान्नुहुन्छ। act as a lawyer भन्दा tone जुनसुकै tone-निर्देशनभन्दा बढी बदलिन्छ। यो register र formality कै सिप हो, केवल machine तर्फ मोडिएको।
Task
Task भनेको निर्देशन लेख्ने पाठ मा भएको imperative हो। यसलाई आदेशका रूपमा लेख्नुहोस्: rewrite, explain, compare, list। नेपालीमा अनुरोध प्रायः “गरिदिनुहोस्” जस्तो आदरार्थी रूपमा आउँछ, तर अंग्रेजी prompt मा सिधा Rewrite this paragraph अशिष्ट सुनिँदैन। Task मात्र यस्तो भाग हो जसलाई छाड्न सकिँदैन।
Context
Context भनेको त्यो जानकारी हो जुन तपाईंले नदिएसम्म model ले देख्न सक्दैन। धेरैजसो मानिसले छाड्ने भाग यही हो, र जवाफलाई सबैभन्दा बढी सुधार्ने भाग पनि यही हो।
- Rewrite this paragraph. — model लाई यो paragraph cover letter को सुरुवात हो भन्ने थाहा छैन, र यसले सामान्य ढंगले फेरि लेखिदिन्छ।
- Rewrite this paragraph. It is the opening of a cover letter for a teaching job. — अब यसलाई audience र उद्देश्य थाहा छ।
Context ले यो किन लेखिँदै छ र कसका लागि भन्ने प्रश्नको जवाफ दिन्छ। नयाँ सहकर्मीलाई काम सुम्पँदा दिने त्यही पृष्ठभूमि model लाई पनि दिनुहोस्।
Constraints
Constraints ले model लाई अनुमान लगाउनबाट रोक्छन्। सबैभन्दा उपयोगी हुन् लम्बाइ, tone, format र केबाट बच्ने:
- लम्बाइ — under 80 words, three bullet points
- tone — formal, friendly, neutral
- format — as a table, as a list, with headings
- बच्ने कुरा — no jargon, don't use the word "amazing"
सङ्ख्या र format ले नै constraints लाई काम गर्ने बनाउँछन्: model ले शब्द गन्न र table बनाउन सक्छ, तर «धेरै लामो होइन» को भने यसले अनुमान मात्र लगाउन सक्छ।
चारै भाग एउटै prompt मा
कमजोर:
Write a reply to this email.
बलियो:
Act as a customer-success manager. Reply to this complaint email. The customer is upset that their order arrived late and wants a refund. Keep it under 100 words, apologetic but firm — offer a replacement instead of a refund.
सबै भाग उपस्थित छन्: role (customer-success manager), task (reply), context (order ढिला पुग्यो, refund चाहिन्छ), constraints (100 शब्दभन्दा कम, माफी माग्दै तर दृढ, refund को सट्टा अर्को सामानको प्रस्ताव)। कमजोर संस्करणले जुनसुकै गुनासोमा चल्ने विश्वासयोग्य-जस्तो email दिन्छ; बलियोले ठ्याक्कै परिस्थितिले माग्ने कुरा दिन्छ।
Model ले तपाईंलाई प्रश्न सोध्न सक्दैन। कुनै मान्छे सहकर्मीलाई काम अस्पष्ट लाग्यो भने उनी सोध्छन्। Model ले सोध्दैन: यसले अनुमान लगाउँछ र त्यही अनुमानमा आधारित आत्मविश्वासी-जस्तो जवाफ दिन्छ। त्यसैले चार भाग नै त्यो तरिका हो जसबाट तपाईं यसका लागि प्रश्न सोधिदिनुहुन्छ।
आफैँ जाँच्नुहोस्
तलको क्विजले चार भाग र prompt मा कुन भाग छुटेको छ भन्ने जाँच्छ।