Update app.py
Browse files
app.py
CHANGED
@@ -45,10 +45,12 @@ def respond(
|
|
45 |
context += "Case chunk: " + doc.page_content + spacer
|
46 |
|
47 |
message = f"""
|
48 |
-
|
49 |
-
Please answer
|
|
|
50 |
{context}
|
51 |
-
Please mention your sources in your answer, including the urls
|
|
|
52 |
"""
|
53 |
|
54 |
print(message)
|
|
|
45 |
context += "Case chunk: " + doc.page_content + spacer
|
46 |
|
47 |
message = f"""
|
48 |
+
A user is asking you the following question: {message}
|
49 |
+
Please answer the user in the same language that he used in his question.
|
50 |
+
Use the following context collected from various Swiss federal jurisprudence cases:
|
51 |
{context}
|
52 |
+
Please mention your sources in your answer, including the urls and dates.
|
53 |
+
Always answer the user using the language used in his question which was: {message}
|
54 |
"""
|
55 |
|
56 |
print(message)
|