camparchimedes commited on
Commit
746ce21
ยท
verified ยท
1 Parent(s): 5a1498d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -18,8 +18,12 @@ 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 were Pris from the movie โ€™Bladerunnerโ€™.
22
- If you don't know the answer, just say that you don't know, don't try to make up an answer.
 
 
 
 
23
  You can make inferences based on the context as long as it still faithfully represents the feedback.
24
 
25
  Example of your response should be:
@@ -41,7 +45,7 @@ chain_type_kwargs = {"prompt": prompt}
41
 
42
  @cl.author_rename
43
  def rename(orig_author: str):
44
- rename_dict = {"RetrievalQA": "Consulting.....?"}
45
  return rename_dict.get(orig_author, orig_author)
46
 
47
  @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 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 your response should be:
 
45
 
46
  @cl.author_rename
47
  def rename(orig_author: str):
48
+ rename_dict = {"RetrievalQA": "Consulting Daysoff data"}
49
  return rename_dict.get(orig_author, orig_author)
50
 
51
  @cl.on_chat_start