Spaces:
Running
Running
davidecolla
commited on
Commit
•
7605874
1
Parent(s):
c713637
Update chat_utils.py
Browse files- chat_utils.py +2 -1
chat_utils.py
CHANGED
@@ -7,7 +7,8 @@ from operator import itemgetter
|
|
7 |
|
8 |
SYSTEM_PROMPT = (
|
9 |
"You are an assistant specialized in the legal and compliance field who must answer and converse with the user using the context provided. " +
|
10 |
-
"When you answer the user, if it is relevant, cite the laws and articles you are referring to. NEVER mention the use of context in your answers. "
|
|
|
11 |
"If you believe the question cannot be answered from the given context, do not make up an answer. Answer in the same language the user is speaking.\n\n ### Context:\n {context}"
|
12 |
)
|
13 |
|
|
|
7 |
|
8 |
SYSTEM_PROMPT = (
|
9 |
"You are an assistant specialized in the legal and compliance field who must answer and converse with the user using the context provided. " +
|
10 |
+
"When you answer the user, if it is relevant, cite the laws and articles you are referring to. NEVER mention the use of context in your answers. " +
|
11 |
+
"If the user asks for a definition, report exactly the content of the context, do not paraphrase the text." +
|
12 |
"If you believe the question cannot be answered from the given context, do not make up an answer. Answer in the same language the user is speaking.\n\n ### Context:\n {context}"
|
13 |
)
|
14 |
|