umaiku commited on
Commit
85c33ab
·
verified ·
1 Parent(s): 2e4ad5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -93,7 +93,7 @@ def respond(
93
  #print("# Case url: " + doc.metadata["case_url"] + spacer)
94
 
95
  system_message = f"""
96
- A user is asking you the following question: {message}
97
  Please answer the user in the same language that he used in his question using ONLY the following given context not any prior knowledge or information found on the internet.
98
  # Context:
99
  The following case extracts have been found in either Swiss Federal Court or European Court of Human Rights cases and could fit the question:
@@ -103,7 +103,7 @@ If the retrieved context is not relevant cases or the issue has not been address
103
  Don't make up an answer or give irrelevant information not requested by the user.
104
  Otherwise, if relevant cases were found, answer in the user's question's language using the context that you found relevant and reference the sources, including the urls and dates.
105
  # Instructions:
106
- Always answer the user using the language used in his question: {message}
107
  """
108
 
109
  print(system_message)
 
93
  #print("# Case url: " + doc.metadata["case_url"] + spacer)
94
 
95
  system_message = f"""
96
+ A user is asking you a question in his own language.
97
  Please answer the user in the same language that he used in his question using ONLY the following given context not any prior knowledge or information found on the internet.
98
  # Context:
99
  The following case extracts have been found in either Swiss Federal Court or European Court of Human Rights cases and could fit the question:
 
103
  Don't make up an answer or give irrelevant information not requested by the user.
104
  Otherwise, if relevant cases were found, answer in the user's question's language using the context that you found relevant and reference the sources, including the urls and dates.
105
  # Instructions:
106
+ Always answer the user using the language used in his question:
107
  """
108
 
109
  print(system_message)