Update app.py
Browse files
app.py
CHANGED
@@ -97,12 +97,12 @@ def respond(
|
|
97 |
|
98 |
system_message = f"""
|
99 |
A user is asking you a question in his own language.
|
|
|
100 |
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.
|
101 |
# Context:
|
102 |
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 |
{context}
|
104 |
# Task:
|
105 |
-
If the question does not require any context, just ignore the provided context and answer the question to best of your knowledge.
|
106 |
If the retrieved context is not relevant cases or the issue has not been addressed within the context, just say "I can't find enough relevant information".
|
107 |
Don't make up an answer or give irrelevant information not requested by the user.
|
108 |
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.
|
|
|
97 |
|
98 |
system_message = f"""
|
99 |
A user is asking you a question in his own language.
|
100 |
+
If the question is not related to legal matters and does not require any context, just ignore the provided context and answer the question to best of your knowledge.
|
101 |
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.
|
102 |
# Context:
|
103 |
The following case extracts have been found in either Swiss Federal Court or European Court of Human Rights cases and could fit the question:
|
104 |
{context}
|
105 |
# Task:
|
|
|
106 |
If the retrieved context is not relevant cases or the issue has not been addressed within the context, just say "I can't find enough relevant information".
|
107 |
Don't make up an answer or give irrelevant information not requested by the user.
|
108 |
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.
|