Update app.py
Browse files
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
|
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:
|
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)
|