Prompting का तकनीकहरू: roles, examples र iteration
राम्रो जवाफ दिलाउने तकनीकहरू — उदाहरण दिने, model लाई चरणबद्ध रूपमा सोच्न भन्ने, र केही प्रयासमा prompt सुधार्ने।
आधारले तपाईंलाई जवाफ दिन्छ। तकनीकहरूले तपाईंलाई राम्रो जवाफ दिन्छन्। तलका तकनीकले सबैभन्दा छिटो फल दिन्छन्, र प्रत्येक technology को होइन, अंग्रेजीको प्रश्न हो: तपाईंको आशय model लाई बताउनुको सट्टा देखाउनु।
एउटा उदाहरण दिनुहोस्
Prompting मा सबैभन्दा बलियो चाल model लाई तपाईंले चाहेको ढाँचा देखाउनु हो। अंग्रेजीमा यसका लागि एउटा शब्द छ: few-shot — एक-दुई उदाहरण भएको prompt।
उदाहरणबिना तपाईं वर्णन गर्नुहुन्छ:
Rewrite this sentence in a formal style.
उदाहरणसहित — तपाईं देखाउनुहुन्छ:
Rewrite this sentence in a formal style, like this:
Informal: "We need to fix this fast." → Formal: "This requires prompt attention."
Now rewrite: "Can you send me the file?"
उदाहरणले formal को तपाईंका लागि के अर्थ हो भन्ने सबै अलमल हटाउँछ। Model ले अमूर्त शब्दको व्याख्या गर्नुको सट्टा ढाँचा दोहोर्याउँछ।
उदाहरण भनेको ठोस रूपमा लेखिएको सीमा हो। formal भन्नु register लाई खुला छाड्नु हो; «This requires prompt attention» देखाउनु त्यसलाई तय गर्नु हो। जब professional, concise वा engaging जस्तो शब्द धेरै अस्पष्ट लाग्छ, वर्णन गर्न छाडेर एउटा नमुना दिनुहोस्।
चरणबद्ध रूपमा सोच्न भन्नुहोस्
धेरै चरण भएका कामका लागि — समाधान, निदान, तुलना — एउटा यस्तो वाक्यांश थप्नुहोस् जसले model लाई आफ्नो काम देखाउन बाध्य पार्छ:
- Think step by step.
- Explain your reasoning before the answer.
- List the steps, then give the conclusion.
यसले model ले दिने कुरा बदल्छ: खाली नतिजाको सट्टा तर्कको एउटा शृङ्खला, जसलाई जाँच्न सकिन्छ। यो तकनीकको नाम chain-of-thought हो, तर प्रयोग गर्न नाम जान्नु आवश्यक छैन।
- कमजोर: Which supplier should we choose?
- बलियो: Compare the two suppliers on price, reliability and lead time, think through the trade-offs, then recommend one with your reasoning.
बलियो संस्करणले एकैसाथ दुई काम गर्छ: सोच्न बाध्य पार्छ र जवाफको रूप तय गर्छ, ताकि model ले कुनै मापदण्ड नछुटाओस्।
Iterate गर्नुहोस्
Prompt पहिलो प्रयासमै तयार हुने सम्भावना कम हुन्छ। वास्तविक सिप एउटा चक्र हो: चलाउनुहोस्, नतिजालाई आलोचनात्मक नजरले पढ्नुहोस्, र खाडल भर्न prompt फेरि लेख्नुहोस्। हरेक प्रयासले अघिल्लो जवाफमा जे कमी थियो त्यो थप्छ।
Round 1: Write an email asking for a deadline extension. जवाफ: सही, तर नीरस email। Round 2: Write an email asking for a deadline extension. It is going to a strict manager, so be respectful, give a concrete reason, and propose a new date.
Iteration मा अघिल्ला सिपहरू एकै ठाउँमा भेटिन्छन्: जवाफले कुन भाग छुट्यो भनेर देखाउँदै जाँदा prompt का चार भाग एक-एक गरी थपिँदै जान्छन्। र जवाफलाई आलोचनात्मक रूपमा पढ्नु त्यही सटीकता हो जुन तपाईं प्राविधिक समस्याको वर्णन मा ल्याउनुहुन्छ।
Model लाई आफ्नै आलोचना गर्न भन्नुहोस्
एउटा उपयोगी अन्तिम चाल: model लाई आफ्नै जवाफमा कमजोरी खोज्न भन्नुहोस्।
- What is the weakest point in this argument?
- What could be wrong with this answer?
- Rewrite this, then list the assumptions you made.
यो model को आत्मविश्वासका साथ बोल्ने बानीविरुद्धको बीमा हो — hallucinations समेत। तपाईं यसलाई सही हुन भनिरहनुभएको छैन; यो कहाँ गलत हुन सक्छ भनेर देखाउन भनिरहनुभएको छ, र त्यो प्रयोग गर्न सकिने जानकारी हो।
तकनीकहरू एकैसाथ
एउटै prompt ले यी सबै मिसाउन सक्छ:
Act as a careful editor. Rewrite this paragraph to be clearer. Here is an example of the clarity I want: "The meeting was delayed" → "We moved the meeting to Thursday." Think about what makes the example clearer, then apply that to the paragraph. List the changes you made.
Role, उदाहरण, तर्क र काम देखाउने request — चार वाक्यमा पूरा सेट।
आफैँ जाँच्नुहोस्
तलको क्विजले तकनीकहरू र तिनलाई चलाउने वाक्यांशहरू जाँच्छ।