Spaces:
Running
on
Zero
Running
on
Zero
jedick
commited on
Commit
·
bcab0eb
1
Parent(s):
b7a3bb3
Update prompts
Browse files- prompts.py +5 -3
prompts.py
CHANGED
|
@@ -36,9 +36,11 @@ def query_prompt(chat_model, think=False):
|
|
| 36 |
"For general summaries, use retrieve_emails(search_query='R'). "
|
| 37 |
"For questions about years, use retrieve_emails(search_query=<query>, start_year=, end_year=) (this month is this year). "
|
| 38 |
"For questions about months, use 3-letter abbreviations (Jan...Dec) for the 'month' argument. "
|
| 39 |
-
"
|
|
|
|
|
|
|
| 40 |
# "You must perform the search yourself. Do not tell the user how to retrieve emails. " # Qwen
|
| 41 |
-
"Do not use your memory or knowledge to answer the user's question. Only retrieve emails based on the user's question. " # Qwen
|
| 42 |
# "If you decide not to retrieve emails, tell the user why and suggest how to improve their question to chat with the R-help mailing list. "
|
| 43 |
)
|
| 44 |
prompt = check_prompt(prompt, chat_model, think)
|
|
@@ -60,7 +62,7 @@ def answer_prompt(chat_model, think=False, with_tools=False):
|
|
| 60 |
"Summarize the content of the emails rather than copying the headers. " # Qwen
|
| 61 |
"You must include inline citations (email senders and dates) in each part of your response. "
|
| 62 |
"Only answer general questions about R if the answer is in the retrieved emails. "
|
| 63 |
-
"
|
| 64 |
"Respond with 500 words maximum and 50 lines of code maximum. "
|
| 65 |
)
|
| 66 |
if with_tools:
|
|
|
|
| 36 |
"For general summaries, use retrieve_emails(search_query='R'). "
|
| 37 |
"For questions about years, use retrieve_emails(search_query=<query>, start_year=, end_year=) (this month is this year). "
|
| 38 |
"For questions about months, use 3-letter abbreviations (Jan...Dec) for the 'month' argument. "
|
| 39 |
+
"If retrieved emails are available, use them as context to formulate your search query. " # Gemma
|
| 40 |
+
"You should always retrieve more emails based on previous context and the most recent question. " # Qwen
|
| 41 |
+
# "Even if retrieved emails are available, you should retrieve more emails to answer the most recent question. " # Qwen
|
| 42 |
# "You must perform the search yourself. Do not tell the user how to retrieve emails. " # Qwen
|
| 43 |
+
# "Do not use your memory or knowledge to answer the user's question. Only retrieve emails based on the user's question. " # Qwen
|
| 44 |
# "If you decide not to retrieve emails, tell the user why and suggest how to improve their question to chat with the R-help mailing list. "
|
| 45 |
)
|
| 46 |
prompt = check_prompt(prompt, chat_model, think)
|
|
|
|
| 62 |
"Summarize the content of the emails rather than copying the headers. " # Qwen
|
| 63 |
"You must include inline citations (email senders and dates) in each part of your response. "
|
| 64 |
"Only answer general questions about R if the answer is in the retrieved emails. "
|
| 65 |
+
"Only include URLs if they were used by human authors (not in email headers), and do not modify any URLs. " # Qwen, Gemma
|
| 66 |
"Respond with 500 words maximum and 50 lines of code maximum. "
|
| 67 |
)
|
| 68 |
if with_tools:
|