Update app.py
Browse files
app.py
CHANGED
|
@@ -59,11 +59,14 @@ def respond(
|
|
| 59 |
|
| 60 |
message = f"""
|
| 61 |
A user is asking you the following question: {message}
|
| 62 |
-
Please answer the user in the same language that he used in his question using the following context.
|
| 63 |
-
Context:
|
|
|
|
| 64 |
{context}
|
| 65 |
-
Task:
|
| 66 |
-
|
|
|
|
|
|
|
| 67 |
"""
|
| 68 |
|
| 69 |
print(message)
|
|
|
|
| 59 |
|
| 60 |
message = f"""
|
| 61 |
A user is asking you the following question: {message}
|
| 62 |
+
Please answer the user in the same language that he used in his question using the following given context not prior knowledge.
|
| 63 |
+
Context:
|
| 64 |
+
The following case extracts from various Swiss Federal Court and European Court of Human Rights cases have been found to fit the question :
|
| 65 |
{context}
|
| 66 |
+
Task:
|
| 67 |
+
Start by summarizing these case in the user's question's language and reference the sources, including the urls and dates.
|
| 68 |
+
Instructions:
|
| 69 |
+
Always answer the user using the language used in his question: {message}
|
| 70 |
"""
|
| 71 |
|
| 72 |
print(message)
|