Update prompts.py
Browse filesmodified cleaner prompt to exclude the memory history
- prompts.py +8 -6
prompts.py
CHANGED
|
@@ -29,20 +29,22 @@ Provide the revised response below:
|
|
| 29 |
|
| 30 |
cleaner_prompt_str = """
|
| 31 |
You are a helpful AI. You have two pieces of information:
|
| 32 |
-
|
| 33 |
1) CSV (Knowledge Base) Answer (if any):
|
| 34 |
{kb_answer}
|
| 35 |
-
|
| 36 |
2) Web Search Result (if any):
|
| 37 |
{web_answer}
|
| 38 |
|
| 39 |
-
Combine and synthesize these details into a single cohesive answer (if relevant).
|
| 40 |
-
|
| 41 |
-
Do NOT
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
-
|
| 44 |
"""
|
| 45 |
|
|
|
|
| 46 |
refusal_prompt_str = """
|
| 47 |
This question is neither wellness-related nor brand-related.
|
| 48 |
Write a short, polite refusal that gently explains we only handle daily wellness or brand questions about DailyWellnessAI.
|
|
|
|
| 29 |
|
| 30 |
cleaner_prompt_str = """
|
| 31 |
You are a helpful AI. You have two pieces of information:
|
|
|
|
| 32 |
1) CSV (Knowledge Base) Answer (if any):
|
| 33 |
{kb_answer}
|
|
|
|
| 34 |
2) Web Search Result (if any):
|
| 35 |
{web_answer}
|
| 36 |
|
| 37 |
+
Combine and synthesize these details into a single cohesive, concise answer (if relevant).
|
| 38 |
+
Important guidelines:
|
| 39 |
+
- Do NOT repeat either text verbatim or echo large passages.
|
| 40 |
+
- Summarize or rewrite in your own words.
|
| 41 |
+
- Keep it straightforward and avoid duplication or extraneous details.
|
| 42 |
+
- Provide only one final answer below, nothing else.
|
| 43 |
|
| 44 |
+
Final Answer (in your own words, do NOT quote the sources directly):
|
| 45 |
"""
|
| 46 |
|
| 47 |
+
|
| 48 |
refusal_prompt_str = """
|
| 49 |
This question is neither wellness-related nor brand-related.
|
| 50 |
Write a short, polite refusal that gently explains we only handle daily wellness or brand questions about DailyWellnessAI.
|