शॉट प्रॉम्प्टिंग

Python में DeepSeek के साथ काम करना

James Chapman

AI Curriculum Lead, DataCamp

उदाहरण देना

एक रोबोट उदाहरण देख रहा है

  • शॉट प्रॉम्प्टिंग
Python में DeepSeek के साथ काम करना

शॉट प्रॉम्प्टिंग क्या है?

शॉट प्रॉम्प्टिंग: AI के उत्तर मार्गदर्शन के लिए उदाहरण जोड़ना

$$

  • ज़ीरो-शॉट: कोई उदाहरण नहीं, सिर्फ निर्देश
  • वन-शॉट: एक उदाहरण उत्तर को दिशा देता है
  • फ्यू-शॉट: कई उदाहरण अधिक संदर्भ देते हैं

ज़ीरो से फ्यू शॉट का चित्रण

Python में DeepSeek के साथ काम करना

शॉट प्रॉम्प्टिंग क्यों मायने रखता है?

$$

✅ शॉट प्रॉम्प्टिंग के उपयोग:

  • 📑 टेक्स्ट वर्गीकरण
  • 💬 सेंटिमेंट एनालिसिस
  • 🔍 डेटा एक्सट्रैक्शन
  • ✨ ... और भी बहुत कुछ!

शॉट प्रॉम्प्टिंग के उपयोग

Python में DeepSeek के साथ काम करना

ज़ीरो-शॉट प्रॉम्प्टिंग

prompt = """Classify sentiment as 1-5 (bad-good) in the following statements:
1. Meal was decent, but I've had better.
2. My food was delayed, but drinks were good.
"""
...
1. 3  
2. 2
Python में DeepSeek के साथ काम करना

वन-शॉट प्रॉम्प्टिंग

prompt = """Classify sentiment as 1-5 (bad-good) in the following statements. Return no
explanations:
1. The service was very slow -> 1
2. Meal was decent, but I've had better. ->
3. My food was delayed, but drinks were good. ->
"""
2. Meal was decent, but I've had better. -> 3  
3. My food was delayed, but drinks were good. -> 2
Python में DeepSeek के साथ काम करना

फ्यू-शॉट प्रॉम्प्टिंग

prompt = """Classify sentiment as 1-5 (bad-good) in the following statements. Return no
explanations:
1. The service was very slow -> 1
2. The steak was awfully good! -> 5
3. It was ok, no massive complaints. -> 3
4. Meal was decent, but I've had better. ->
5. My food was delayed, but drinks were good. ->
"""
4. Meal was decent, but I've had better. -> 3  
5. My food was delayed, but drinks were good. -> 2
Python में DeepSeek के साथ काम करना

अभ्यास करते हैं!

Python में DeepSeek के साथ काम करना

Preparing Video For Download...