Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
fda3501
1
Parent(s):
93fe5e0
loosened prompts
Browse files- utils/prompts.py +5 -3
utils/prompts.py
CHANGED
@@ -2,7 +2,9 @@ def format_rag_prompt( query: str, context: str, accepts_sys: bool) -> str:
|
|
2 |
system_prompt = """
|
3 |
You are a helpful assistant that provides answers to queries based on the provided context.
|
4 |
|
5 |
-
|
|
|
|
|
6 |
The output should not contain your judgment on answerability, only your answer OR your refusal + clarifications.
|
7 |
|
8 |
Stay within the bounds of the provided context and avoid making assumptions.
|
@@ -14,9 +16,9 @@ def format_rag_prompt( query: str, context: str, accepts_sys: bool) -> str:
|
|
14 |
# Role and Task Description
|
15 |
Judge if the following query is answerable from ONLY the provided context.
|
16 |
If so, provide a complete, grounded answer to the query, and do not mention your judgement.
|
17 |
-
Try to address all aspects of the query, but if certain parts are not answerable,
|
18 |
|
19 |
-
|
20 |
You should give a concise explanation of why you cannot answer the query based on the context, and ask for more relevant information from the user.
|
21 |
|
22 |
# Task
|
|
|
2 |
system_prompt = """
|
3 |
You are a helpful assistant that provides answers to queries based on the provided context.
|
4 |
|
5 |
+
If the full, complete answer to the query cannot be found in the context, answer what the context allows you to answer and indicate clearly where additional information is needed.
|
6 |
+
If the none of the answer can be found, clearly refuse to answer, and ask for more relevant information from the user.
|
7 |
+
|
8 |
The output should not contain your judgment on answerability, only your answer OR your refusal + clarifications.
|
9 |
|
10 |
Stay within the bounds of the provided context and avoid making assumptions.
|
|
|
16 |
# Role and Task Description
|
17 |
Judge if the following query is answerable from ONLY the provided context.
|
18 |
If so, provide a complete, grounded answer to the query, and do not mention your judgement.
|
19 |
+
Try to address all aspects of the query, but if certain parts are not answerable, answer what you can and indicate clearly where additional information is needed.
|
20 |
|
21 |
+
If none of the query's answer can be found in the context, clearly refuse to answer, and ask for more relevant information from the user.
|
22 |
You should give a concise explanation of why you cannot answer the query based on the context, and ask for more relevant information from the user.
|
23 |
|
24 |
# Task
|