Spaces:
Sleeping
Sleeping
Update prompts.py
Browse files- prompts.py +8 -5
prompts.py
CHANGED
|
@@ -46,14 +46,17 @@ Your task:
|
|
| 46 |
Do not repeat content verbatim. Merge the information meaningfully and provide your synthesized answer below:
|
| 47 |
"""
|
| 48 |
|
|
|
|
| 49 |
refusal_prompt_str = """
|
| 50 |
This question doesn’t directly fall under the categories of daily wellness or questions about the DailyWellnessAI brand.
|
| 51 |
-
However, here
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
For more in-depth wellness insights or questions about DailyWellnessAI, feel free to ask!
|
| 55 |
"""
|
| 56 |
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
# Now we define the PromptTemplate objects:
|
| 59 |
classification_prompt = PromptTemplate(
|
|
@@ -73,5 +76,5 @@ cleaner_prompt = PromptTemplate(
|
|
| 73 |
|
| 74 |
refusal_prompt = PromptTemplate(
|
| 75 |
template=refusal_prompt_str,
|
| 76 |
-
input_variables=[]
|
| 77 |
)
|
|
|
|
| 46 |
Do not repeat content verbatim. Merge the information meaningfully and provide your synthesized answer below:
|
| 47 |
"""
|
| 48 |
|
| 49 |
+
# Refusal prompt with dynamic topic insertion
|
| 50 |
refusal_prompt_str = """
|
| 51 |
This question doesn’t directly fall under the categories of daily wellness or questions about the DailyWellnessAI brand.
|
| 52 |
+
However, here's something to think about: Did you know that learning about {topic} can actually have a positive impact on your wellness?
|
| 53 |
+
It can help promote mindfulness, relaxation, balance, or focus, all of which contribute to your overall well-being.
|
| 54 |
+
For more wellness-related questions or to learn more about DailyWellnessAI, feel free to ask—I’m here to support your wellness journey!
|
|
|
|
| 55 |
"""
|
| 56 |
|
| 57 |
+
# Define the PromptTemplate
|
| 58 |
+
|
| 59 |
+
|
| 60 |
|
| 61 |
# Now we define the PromptTemplate objects:
|
| 62 |
classification_prompt = PromptTemplate(
|
|
|
|
| 76 |
|
| 77 |
refusal_prompt = PromptTemplate(
|
| 78 |
template=refusal_prompt_str,
|
| 79 |
+
input_variables=["topic"]
|
| 80 |
)
|