umaiku commited on
Commit
f2e8f60
·
verified ·
1 Parent(s): 7cec6ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -45,10 +45,12 @@ def respond(
45
  context += "Case chunk: " + doc.page_content + spacer
46
 
47
  message = f"""
48
- The user is aksing the following question: {message}.
49
- Please answer in the same language as the user's question using the collected information from the following Swiss federal jurisprudence cases:
 
50
  {context}
51
- Please mention your sources in your answer, including the urls
 
52
  """
53
 
54
  print(message)
 
45
  context += "Case chunk: " + doc.page_content + spacer
46
 
47
  message = f"""
48
+ A user is asking you the following question: {message}
49
+ Please answer the user in the same language that he used in his question.
50
+ Use the following context collected from various Swiss federal jurisprudence cases:
51
  {context}
52
+ Please mention your sources in your answer, including the urls and dates.
53
+ Always answer the user using the language used in his question which was: {message}
54
  """
55
 
56
  print(message)