Update app.py
Browse files
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
|
52 |
-
|
|
|
53 |
{context}
|
54 |
Please mention your sources in your answer, including the urls and dates.
|
55 |
-
|
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)
|