rename folder to prompt_evaluations and update README
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
def basic_prompt(complaint):
|
||||
return f"""
|
||||
Classify the following customer complaint into one or more of these categories:
|
||||
Software Bug, Hardware Malfunction, User Error, Feature Request, or Service Outage.
|
||||
Only respond with the classification.
|
||||
|
||||
Complaint: {complaint}
|
||||
|
||||
Classification:
|
||||
"""
|
||||
|
||||
|
||||
def improved_prompt(complaint):
|
||||
return f"""
|
||||
You are an AI assistant specializing in customer support issue classification. Your task is to analyze customer complaints and categorize them into one or more of the following categories:
|
||||
|
||||
1. Software Bug: Issues related to software not functioning as intended.
|
||||
2. Hardware Malfunction: Problems with physical devices or components.
|
||||
3. User Error: Difficulties arising from user misunderstanding or misuse.
|
||||
4. Feature Request: Suggestions for new functionalities or improvements.
|
||||
5. Service Outage: System-wide issues affecting service availability.
|
||||
|
||||
Important Guidelines:
|
||||
- A complaint may fall into multiple categories. If so, list all that apply but try to prioritize picking a single category when possible.
|
||||
|
||||
Examples:
|
||||
1. Complaint: "The app crashes when I try to save my progress."
|
||||
Classification: Software Bug
|
||||
|
||||
2. Complaint: "My keyboard isn't working after I spilled coffee on it."
|
||||
Classification: Hardware Malfunction
|
||||
|
||||
3. Complaint: "I can't find the login button on your website."
|
||||
Classification: User Error
|
||||
|
||||
4. Complaint: "It would be great if your app had a dark mode."
|
||||
Classification: Feature Request
|
||||
|
||||
5. Complaint: "None of your services are loading for me or my colleagues."
|
||||
Classification: Service Outage
|
||||
|
||||
6. Complaint "Complaint: The app breaks every time I try to change my profile picture"
|
||||
Classification: Software Bug
|
||||
|
||||
7. Complaint "The app is acting buggy on my phone and it seems like your website is down, so I'm completely stuck!"
|
||||
Classification: Software Bug, Service Outage
|
||||
|
||||
8. Complaint: "Your software makes my computer super laggy and awful, I hate it!"
|
||||
Classification: Software Bug
|
||||
|
||||
9. Complaint: "Your dumb app always breaks when I try to do anything with images."
|
||||
Classification: 'Software Bug'
|
||||
|
||||
Now, please classify the following customer complaint:
|
||||
|
||||
<complaint>{complaint}</complaint>
|
||||
|
||||
Only respond with the appropriate categories and nothing else.
|
||||
Classification:
|
||||
"""
|
||||
Reference in New Issue
Block a user