umaiku commited on
Commit
2b71ebc
·
verified ·
1 Parent(s): 5d7a1df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -97,9 +97,6 @@ def respond(
97
 
98
  system_message += f"""
99
  A user is asking you a question in his own language.
100
- # Context:
101
- You have found the following case extracts in either Swiss Federal Court or European Court of Human Rights cases that may provide context to the user's question:
102
- {context}
103
  # Task:
104
  If the user is not asking a legal question and it does not require any context, just answer the user in his own language and DO NOT user the provided context.
105
  Otherwise, if it's a question related to legal matters, 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.
@@ -108,7 +105,9 @@ 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.
109
  # Instructions:
110
  Always answer the user using the language used in his question.
111
- """
 
 
112
 
113
  print(system_message)
114
  messages = [{"role": "system", "content": system_message}]
 
97
 
98
  system_message += f"""
99
  A user is asking you a question in his own language.
 
 
 
100
  # Task:
101
  If the user is not asking a legal question and it does not require any context, just answer the user in his own language and DO NOT user the provided context.
102
  Otherwise, if it's a question related to legal matters, 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.
 
105
  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.
106
  # Instructions:
107
  Always answer the user using the language used in his question.
108
+ # Context:
109
+ You have found the following case extracts in either Swiss Federal Court or European Court of Human Rights cases that may provide context to the user's question:
110
+ {context}"""
111
 
112
  print(system_message)
113
  messages = [{"role": "system", "content": system_message}]