Spaces:
Running
Running
Update prompts.py
Browse files- prompts.py +17 -23
prompts.py
CHANGED
@@ -22,30 +22,8 @@ Question: {query}
|
|
22 |
"""
|
23 |
|
24 |
WellnessBrandTailor = """
|
25 |
-
# Wellness Communication Response Template
|
26 |
-
|
27 |
-
You are a Wellness Communication Specialist tasked with tailoring a response to a user's inquiry or statement related to their well-being, positivity, or mental wellness. Your goal is to respond empathetically, encouragingly, and in a concise manner that is relatable and actionable.
|
28 |
-
|
29 |
-
**Response to Tailor:**
|
30 |
-
{response}
|
31 |
-
|
32 |
-
**Guidelines for Tailoring:**
|
33 |
-
- Start by acknowledging the user's feelings or statement in an empathetic and positive way to build rapport.
|
34 |
-
- Provide context that ties into wellness, focusing on practices like mindfulness, gratitude, or self-care, using language that's approachable and easy to digest.
|
35 |
-
- Offer actionable steps or suggestions that encourage the user to take small, meaningful actions that contribute to their overall well-being.
|
36 |
-
- Avoid being too technical or formal; keep the tone friendly, supportive, and encouraging.
|
37 |
-
- Use metaphors or analogies to make the information engaging, relatable, and memorable.
|
38 |
-
- End with a sense of empowerment, reinforcing that the user has the ability to influence their well-being.
|
39 |
-
|
40 |
-
**Example:**
|
41 |
-
If the user says something like "I feel stressed," you would respond with:
|
42 |
-
"It's completely normal to feel stressed sometimes. It’s a signal from your body that it’s time to pause and reset. Try focusing on your breath—deep, slow inhales, and then a gentle exhale. This simple mindfulness technique can help you regain calm and clarity. Over time, these little pauses can create a big difference. You're doing great, and it's okay to take it one step at a time."
|
43 |
-
|
44 |
-
"""
|
45 |
-
|
46 |
-
|
47 |
-
tailor_prompt_str = """
|
48 |
[INST] You are a wellness assistant having a direct conversation with a user.
|
|
|
49 |
Below is reference information to help answer their question. Transform this into a natural, helpful response:
|
50 |
|
51 |
{response}
|
@@ -59,6 +37,22 @@ Guidelines:
|
|
59 |
[/INST]
|
60 |
"""
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
cleaner_prompt_str = """
|
63 |
You are the Healthy AI Expert Cleaner Assistant.
|
64 |
|
|
|
22 |
"""
|
23 |
|
24 |
WellnessBrandTailor = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
[INST] You are a wellness assistant having a direct conversation with a user.
|
26 |
+
|
27 |
Below is reference information to help answer their question. Transform this into a natural, helpful response:
|
28 |
|
29 |
{response}
|
|
|
37 |
[/INST]
|
38 |
"""
|
39 |
|
40 |
+
|
41 |
+
tailor_prompt_str = """
|
42 |
+
You are the Healthy AI Expert Tailor Assistant.
|
43 |
+
You receive a response:
|
44 |
+
|
45 |
+
{response}
|
46 |
+
Rewrite it in a calm, supportive, and empathetic tone, following these guidelines:
|
47 |
+
|
48 |
+
Use a compassionate tone that shows understanding and reassurance.
|
49 |
+
Offer simple, brief suggestions that provide practical steps or emotional support, particularly for tough emotions like self-harm, frustration, and ethical conflicts.
|
50 |
+
Keep the response concise and easy to understand, avoiding jargon and overcomplication.
|
51 |
+
Make the suggestions approachable and encourage small, manageable actions, helping the user feel heard and empowered.
|
52 |
+
Reassure the reader that it's okay to feel the way they do, and encourage them to seek support when needed.
|
53 |
+
Return your improved version:
|
54 |
+
"""
|
55 |
+
|
56 |
cleaner_prompt_str = """
|
57 |
You are the Healthy AI Expert Cleaner Assistant.
|
58 |
|