मुख्य कंटेंट तक स्किप करें

प्रॉम्प्ट पैटर्न लाइब्रेरी

सभी लेवल

दोबारा इस्तेमाल होने वाले प्रॉम्प्टिंग पैटर्न का एक टूलबॉक्स। हर कार्ड: यह क्या है, इसे कब इस्तेमाल करना है, और एक कॉपी-पेस्ट टेम्पलेट। ये जुड़ते हैं — स्वतंत्र रूप से मिलाएँ। यहाँ नए हैं? पहले Prompting Basics से शुरू करें।

Zero-shot (बस, स्पष्ट रूप से पूछें)

कब: सरल, आम कार्य। क्यों: सबसे कम प्रयास, अक्सर पर्याप्त।

Summarize the text below in 5 bullets for a busy manager.
TEXT: """{paste}"""

Few-shot (उदाहरण दिखाएँ)

कब: आपको कोई विशिष्ट फ़ॉर्मेट या शैली चाहिए। क्यों: उदाहरण वर्णन से तेज़ी से सिखाते हैं। देखें Few-Shot Done Right

Classify the sentiment as positive/negative/neutral.
Review: "Loved it, shipped fast" → positive
Review: "Broke on day one" → negative
Review: "{new review}" →

Chain-of-thought (चरण-दर-चरण सोचें)

कब: गणित, तर्क, बहु-चरणीय तर्क। क्यों: उत्तर देने से पहले तर्क सटीकता बढ़ाता है।

Work through this step by step, then give the final answer on its own line.
PROBLEM: {problem}

Decomposition (इसे तोड़ें)

कब: बड़े, अस्पष्ट कार्य। क्यों: छोटे उप-कार्य आसान और अधिक विश्वसनीय होते हैं।

First, list the sub-tasks needed to {goal}. Then do them one at a time,
showing each result before moving on.

Role prompting (एक व्यक्तित्व सौंपें)

कब: आप कोई विशिष्ट दृष्टिकोण या मानक चाहते हैं। क्यों: प्रासंगिक व्यवहार को प्रेरित करता है।

You are a meticulous senior copy editor. Edit the text for clarity and concision
without changing meaning. Show a bullet list of the changes you made.

आउटपुट-फ़ॉर्मेट बाध्यता

कब: परिणाम किसी अन्य टूल में जाता है, या आप संगति चाहते हैं। क्यों: अनुमान योग्य आकार उपयोगी होते हैं।

Reply with ONLY valid JSON matching: {"title": string, "tags": string[]}.
No prose, no markdown fences.

Self-consistency / self-critique

कब: सटीकता मायने रखती है। क्यों: दूसरा दौर पहले दौर की गलतियाँ पकड़ता है।

Answer the question. Then, in a section called "Check", critique your own answer
for errors or missing cases and revise if needed.

Meta-prompting (AI को आपका प्रॉम्प्ट सुधारने दें)

कब: आपका प्रॉम्प्ट कमज़ोर प्रदर्शन करता है। क्यों: मॉडल यह पहचानने में अच्छा है कि उसमें क्या कमी है।

Here's my prompt: "{prompt}". Ask me the 3 questions that would most improve it,
then rewrite it incorporating sensible defaults.

पुनरावृत्त परिष्करण

कब: लगभग हमेशा। क्यों: पहला आउटपुट एक मसौदा है, मंज़िल नहीं।

{after a result} Shorter and more concrete. Keep the second paragraph. Add one
example. Drop the marketing tone.

:::tip इन्हें मिलाएँ एक मज़बूत असली प्रॉम्प्ट अक्सर होता है: एक भूमिका + एक उदाहरण + एक आउटपुट बाध्यता + "मुझे नहीं पता" कहने की अनुमति। कार्डों को परत-दर-परत लगाएँ। :::

आगे