umaiku commited on
Commit
9797856
·
verified ·
1 Parent(s): ce69c45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -48,11 +48,12 @@ def respond(
48
  context += "Case chunk: " + doc.page_content + spacer
49
 
50
  message = f"""
51
- A user is asking a question, answer it using the following context collected from various
52
- Swiss Federal court jurisprudence and the European Court of Human Rights cases:
 
53
  {context}
54
  Please mention your sources in your answer, including the urls and dates.
55
- Please answer the user's following question using the language he uses: {message}
56
  """
57
 
58
  print(message)
 
48
  context += "Case chunk: " + doc.page_content + spacer
49
 
50
  message = f"""
51
+ A user is asking you the following question: {message}
52
+ Please answer the user in the same language that he used in his question.
53
+ Use the following context collected from various Swiss federal jurisprudence cases:
54
  {context}
55
  Please mention your sources in your answer, including the urls and dates.
56
+ Always answer the user using the language used in his question which was: {message}
57
  """
58
 
59
  print(message)