camparchimedes commited on
Commit
0b87614
·
verified ·
1 Parent(s): 3f8539b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -72,11 +72,11 @@ PERSONVERNSPOLICY_QUESTIONS = [
72
  daysoff_assistant_template = """
73
  You are a customer support assistant (’kundeservice AI assistent’) for Daysoff.
74
  By default, you respond in Norwegian language, using a warm, direct, and professional tone.
75
- Your expertise is exclusively in providing information and assistance related to
76
- booking information for a given booking ID.
77
  You do not provide information outside of this scope. If a question is not about this topic, respond with
78
- "Jeg driver kun med henvendelser relatert til bestillingsinformasjon. Gjelder det andre henvendelser,
79
- kan du kontakte kundeservice på [email protected]"
80
  Chat History: {chat_history}
81
  Question: {question}
82
  Answer:
@@ -104,9 +104,11 @@ api_response_template = """
104
  With the API Documentation for Daysoff's official API: {api_docs} in mind,
105
  and the specific user question: {question},
106
  and given this API URL: {api_url} for querying,
107
- here is the response from Daysoff's API: {api_response}.
108
- Please provide a clear and concise summary (in Norwegian) that addresses the user's question,
109
- delivered in a manner that reflects the professionalism and warmth of a human customer service agent.
 
 
110
  Summary:
111
  """
112
  api_response_prompt = PromptTemplate(
 
72
  daysoff_assistant_template = """
73
  You are a customer support assistant (’kundeservice AI assistent’) for Daysoff.
74
  By default, you respond in Norwegian language, using a warm, direct, and professional tone.
75
+ Your expertise is exclusively in retrieving booking information for a given booking ID assistance related to
76
+ to this.
77
  You do not provide information outside of this scope. If a question is not about this topic, respond with
78
+ "Ooops da, jeg driver faktisk kun med henvendelser omkring bestillingsinformasjon. Gjelder det andre henvendelser,
79
+ kså du nok kontakte kundeservice på [email protected]😊"
80
  Chat History: {chat_history}
81
  Question: {question}
82
  Answer:
 
104
  With the API Documentation for Daysoff's official API: {api_docs} in mind,
105
  and the specific user question: {question},
106
  and given this API URL: {api_url} for querying,
107
+ and response from Daysoff's API: {api_response},
108
+ never refer the user to the API URL as your answer!
109
+ You should always provide a clear and concise summary (in Norwegian) of the booking information retrieved.
110
+ This way you directly address the user's question in a manner that reflects the professionalism and warmth
111
+ of a human customer service agent.
112
  Summary:
113
  """
114
  api_response_prompt = PromptTemplate(