चैटबॉट्स के लिए रोल-प्लेइंग प्रॉम्प्ट्स

OpenAI API के साथ Prompt Engineering

Fouad Trad

Machine Learning Engineer

रोल-प्लेइंग प्रॉम्प्ट्स

  • चैटबॉट को एक खास भूमिका में रखिए
  • चैटबॉट -> नाटक का अभिनेता
  • चैटबॉट भूमिका के अनुरूप ढलता है
  • पर्सोना के अनुसार भाषा और कंटेंट
  • अधिक प्रभावी इंटरैक्शन

 

रोल-प्लेइंग दिखाने के लिए अलग-अलग मास्क और भेष।

OpenAI API के साथ Prompt Engineering

रोल-प्लेइंग उदाहरण

प्रश्न: क्या आप अपनी कंपनी के Product X की तकनीकी स्पेसिफिकेशन दे सकते हैं?

यूज़र और तीन भूमिकाएँ (कस्टमर सपोर्ट, प्रोजेक्ट मैनेजर, और सेल्स इंजीनियर) दिखाने वाली छवि

OpenAI API के साथ Prompt Engineering

रोल-प्लेइंग उदाहरण

प्रश्न: क्या आप अपनी कंपनी के Product X की तकनीकी स्पेसिफिकेशन दे सकते हैं?

यूज़र और तीन भूमिकाएँ (कस्टमर सपोर्ट, प्रोजेक्ट मैनेजर, और सेल्स इंजीनियर) दिखाने वाली छवि

OpenAI API के साथ Prompt Engineering

रोल-प्लेइंग उदाहरण

प्रश्न: क्या आप अपनी कंपनी के Product X की तकनीकी स्पेसिफिकेशन दे सकते हैं?

यूज़र और तीन भूमिकाएँ (कस्टमर सपोर्ट, प्रोजेक्ट मैनेजर, और सेल्स इंजीनियर) दिखाने वाली छवि

OpenAI API के साथ Prompt Engineering

कस्टमर सपोर्ट एजेंट

कस्टमर सपोर्ट एजेंट की छवि।

  • मार्गदर्शन देता है
  • ग्राहकों को वेबसाइट पर भेजता है
  • सहायता ऑफर करता है
OpenAI API के साथ Prompt Engineering

प्रोडक्ट मैनेजर

  • स्ट्रैटेजिक फायदे दिखाता है
  • प्रोडक्ट अलाइनमेंट पर फोकस

प्रोडक्ट मैनेजर की छवि।

OpenAI API के साथ Prompt Engineering

सेल्स इंजीनियर

  • तकनीकी डिटेल्स पर फोकस
    • प्रोसेसर
    • फीचर्स
    • सिक्योरिटी

सेल्स इंजीनियर की छवि।

OpenAI API के साथ Prompt Engineering

रोल-प्लेइंग प्रॉम्प्ट्स

  • मॉडल को act as किसी specific role में बोलिए
system_prompt = "Act as an expert financial analyst."

user_prompt = "Offer insights into retirement planning for individuals approaching retirement age." print(get_response(system_response, user_response))
OpenAI API के साथ Prompt Engineering

एक्सपर्ट फाइनेंशियल एनालिस्ट

Proper retirement planning is crucial to ensure a comfortable and financially stable retirement. Here are some key
considerations:

- Evaluate Your Financial Position: Begin by assessing your current financial situation [...]
- Set Retirement Goals: Determine your retirement goals and lifestyle preferences [...]
- Estimate Retirement Expenses: Project your retirement expenses by categorizing them into essential [...]
[...]

Remember, retirement planning is a complex process, and everyone's situation is unique. 
It's advisable to work with a certified financial planner who can provide personalized advice based on 
your individual needs and goals.
OpenAI API के साथ Prompt Engineering

और प्रभावी रोल-प्लेइंग

  • भूमिका के भीतर विशेष आवश्यकताएँ
  • पर्सनैलिटी और विशेषज्ञता जैसे गुण जोड़ें
system_prompt = "Act as a seasoned technology journalist covering the latest trends 
in the tech industry. You're known for your thorough research and insightful analysis."

user_prompt = "What is the impact of artificial intelligence on job markets?" print(get_response(system_response, user_response))
OpenAI API के साथ Prompt Engineering

टेक्नोलॉजी जर्नलिस्ट

Title: "Navigating the New Normal: How Artificial Intelligence is Reshaping Job Markets"

As the technological landscape continues to evolve at an unprecedented pace, one of the most 
significant transformations we're witnessing is the integration of Artificial Intelligence 
(AI) into various industries [...].

While AI's potential to streamline processes [...]. Let's explore the multifaceted impact 
of AI on employment...

1. Automation and Job Displacement: [...]
2. Augmentation and Enhanced Creativity: [...]
[...]

In conclusion, the impact of AI on job markets is undeniable, reshaping traditional roles 
and paving the way for novel opportunities [...]
OpenAI API के साथ Prompt Engineering

रिक्वायरमेंट्स के साथ रोल-प्लेइंग

  • हम रोल-प्लेइंग प्रॉम्प्ट्स में रिस्पॉन्स गाइडलाइंस और बिहेवियर गाइडेंस निर्दिष्ट कर सकते हैं
system_prompt = "Act as a seasoned technology journalist covering the latest trends 
in the tech industry. You're known for your in-depth research and insightful analysis."






OpenAI API के साथ Prompt Engineering

रिक्वायरमेंट्स के साथ रोल-प्लेइंग

  • हम रोल-प्लेइंग प्रॉम्प्ट्स में रिस्पॉन्स गाइडलाइंस और बिहेवियर गाइडेंस निर्दिष्ट कर सकते हैं.
system_prompt = "Act as a seasoned technology journalist covering the latest trends 
in the tech industry. You're known for your in-depth research and insightful analysis.
If the question is related to tech, you answer to the best of your knowledge.
Otherwise, you just respond with 'I am trained to only discuss technology topics."

user_prompt = "Which American literature books do you recommend?" print(get_response(system_prompt, user_prompt))
I am trained to only discuss technology topics.
OpenAI API के साथ Prompt Engineering

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

OpenAI API के साथ Prompt Engineering

Preparing Video For Download...