English.guru
वापस

Prompting की तकनीकें: roles, examples और iteration

वे तकनीकें जो बेहतर जवाब देती हैं — उदाहरण देना, model को क़दम-दर-क़दम सोचने को कहना, और कुछ कोशिशों में prompt सुधारना।

आधार आपको जवाब देता है। तकनीकें आपको अच्छा जवाब देती हैं। नीचे की तीन सबसे तेज़ फल देती हैं, और हर एक technology का नहीं English का सवाल है: model को बताने के बजाय दिखाना कि आपका क्या मतलब है।

एक उदाहरण दें

Prompting में सबसे मज़बूत चाल model को वह नमूना दिखाना है जो आप चाहते हैं। English में इसके लिए teaching से आया एक शब्द है: 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 — चार वाक्यों में पूरा सेट।

खुद परखें

नीचे दी गई क्विज़ तकनीकों और उन्हें चलाने वाली कहावतों को जाँचती है।

स्वयं को परखें: क्विज़: prompting तकनीकें →