camparchimedes commited on
Commit
0b2d953
ยท
verified ยท
1 Parent(s): 6e79fb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -97,6 +97,8 @@ If the response includes a booking ID (bestillingskode), consistently present th
97
  directly to the user without summarizing it.
98
  For all other responses, please provide a clear and concise summary (in Norwegian) that directly addresses the user's question,
99
  delivered in a manner that reflects the professionalism and warmth of a human customer service agent.
 
 
100
  Summary:
101
  """
102
 
@@ -149,11 +151,9 @@ async def handle_message(message: cl.Message):
149
  booking_pattern = r'\b[A-Z]{6}\d{6}\b'
150
  base_url = "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1/booking"
151
 
152
- faq_keywords = (
153
- [item["question"] for item in ansatte_faq_data] +
154
- [item["answer"] for item in ansatte_faq_data] +
155
- [item["question"] for item in utleiere_faq_data] +
156
- [item["answer"] for item in utleiere_faq_data] +
157
  [key for key in personvernspolicy_data.keys()]
158
  )
159
 
 
97
  directly to the user without summarizing it.
98
  For all other responses, please provide a clear and concise summary (in Norwegian) that directly addresses the user's question,
99
  delivered in a manner that reflects the professionalism and warmth of a human customer service agent.
100
+ If you do not know the answer, just reply truthfully that you do not have the answer rather than
101
+ giving inaccurate or speculative information.
102
  Summary:
103
  """
104
 
 
151
  booking_pattern = r'\b[A-Z]{6}\d{6}\b'
152
  base_url = "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1/booking"
153
 
154
+ faq_keywords = (
155
+ [key for key in ansatte_faq_data.keys()] +
156
+ [key for key in utleiere_faq_data.keys()] +
 
 
157
  [key for key in personvernspolicy_data.keys()]
158
  )
159