Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
76 |
-
|
77 |
You do not provide information outside of this scope. If a question is not about this topic, respond with
|
78 |
-
"
|
79 |
-
|
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 |
-
|
108 |
-
|
109 |
-
|
|
|
|
|
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å må 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(
|