You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Classify customer queries to handle different cases
delimiter="####"system_message=f"""You will be provided with customer service queries. \The customer service query will be delimited with \{delimiter} characters.Classify each query into a primary category \and a secondary category. Provide your output in json format with the \keys: primary and secondary.Primary categories: Billing, Technical Support, \Account Management, or General Inquiry.Billing secondary categories:Unsubscribe or upgradeAdd a payment methodExplanation for chargeDispute a chargeTechnical Support secondary categories:General troubleshootingDevice compatibilitySoftware updatesAccount Management secondary categories:Password resetUpdate personal informationClose accountAccount securityGeneral Inquiry secondary categories:Product informationPricingFeedbackSpeak to a human"""user_message=f"""\I want you to delete my profile and all of my user data"""messages= [
{'role':'system',
'content': system_message},
{'role':'user',
'content': f"{delimiter}{user_message}{delimiter}"},
]
response=get_completion_from_messages(messages)
print(response)
user_message=f"""\Tell me more about your flat screen tvs"""messages= [
{'role':'system',
'content': system_message},
{'role':'user',
'content': f"{delimiter}{user_message}{delimiter}"},
]
response=get_completion_from_messages(messages)
print(response)