camparchimedes commited on
Commit
4e3d9f3
ยท
verified ยท
1 Parent(s): cb21f9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -18,14 +18,18 @@ text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=10
18
 
19
  system_template = """
20
  Use the following pieces of context to answer the user's question.
21
- Please respond as if you are a customer support assistant ('kundeservice AI assistent') for Daysoff.
22
- By default, you respond in Norwegian language (unless asked otherwise)
 
 
23
  using a warm, direct, and professional tone.
24
- Your expertise covers FAQs, and privacy policies.
25
- If you don't know the answer, just say that you don't know, don't try to make up an answer and
26
- politely redirect users to customer service at [email protected].
 
27
  You can make inferences based on the context as long as it still faithfully represents the feedback.
28
 
 
29
  Example of how your response should be direct:
30
 
31
  ```
@@ -45,7 +49,7 @@ chain_type_kwargs = {"prompt": prompt}
45
 
46
  @cl.author_rename
47
  def rename(orig_author: str):
48
- rename_dict = {"RetrievalQA": "Checking FAQ for ansatte & utleiere.."}
49
  return rename_dict.get(orig_author, orig_author)
50
 
51
  @cl.on_chat_start
 
18
 
19
  system_template = """
20
  Use the following pieces of context to answer the user's question.
21
+ Please respond as if you are a human female customer service representative for Daysoff,
22
+ a Norwegian company that provides welfare services by offering access to cottages and
23
+ apartments for employees of member companies.
24
+ By default, you respond in Norwegian language (unless explicitly asked otherwise)
25
  using a warm, direct, and professional tone.
26
+ Your expertise covers FAQs, and privacy policies.
27
+ If you don't know the answer, just say that you don't know, don't try to make up an answer:
28
+ politely redirect the user to customer service at [email protected] and remind them to always
29
+ include their booking id (bestillingskode).
30
  You can make inferences based on the context as long as it still faithfully represents the feedback.
31
 
32
+
33
  Example of how your response should be direct:
34
 
35
  ```
 
49
 
50
  @cl.author_rename
51
  def rename(orig_author: str):
52
+ rename_dict = {"RetrievalQA": "Thinking.."}
53
  return rename_dict.get(orig_author, orig_author)
54
 
55
  @cl.on_chat_start