Spaces:
Sleeping
Sleeping
Update chain_problems.py
Browse files- chain_problems.py +3 -1
chain_problems.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import json
|
2 |
import logging
|
3 |
from typing import Dict
|
@@ -6,7 +7,6 @@ from models import chat_model
|
|
6 |
|
7 |
logger = logging.getLogger(__name__)
|
8 |
|
9 |
-
# Updated prompt template with guidance connecting themes to question responses
|
10 |
problem_prompt_template = PromptTemplate(
|
11 |
input_variables=["responses", "internal_report"],
|
12 |
template=(
|
@@ -16,6 +16,8 @@ problem_prompt_template = PromptTemplate(
|
|
16 |
"{internal_report}\n\n"
|
17 |
"From these inputs, determine a 'problem severity percentage' for the user in the following areas: "
|
18 |
"stress_management, low_therapy, balanced_weight, restless_night, lack_of_motivation, gut_health, anxiety, burnout.\n\n"
|
|
|
|
|
19 |
"Consider the following connections between the questions and these themes:\n"
|
20 |
"- stress_management is influenced by responses such as stress_level, stress_management, mood, mindfulness_frequency, and similar stress-related questions.\n"
|
21 |
"- low_therapy relates to aspects of the user's mindset, wellness_goals, personal_growth_reflection, and similar therapeutic indicators.\n"
|
|
|
1 |
+
# chain_problems.py
|
2 |
import json
|
3 |
import logging
|
4 |
from typing import Dict
|
|
|
7 |
|
8 |
logger = logging.getLogger(__name__)
|
9 |
|
|
|
10 |
problem_prompt_template = PromptTemplate(
|
11 |
input_variables=["responses", "internal_report"],
|
12 |
template=(
|
|
|
16 |
"{internal_report}\n\n"
|
17 |
"From these inputs, determine a 'problem severity percentage' for the user in the following areas: "
|
18 |
"stress_management, low_therapy, balanced_weight, restless_night, lack_of_motivation, gut_health, anxiety, burnout.\n\n"
|
19 |
+
"Consider how these severity percentages will later be used to recommend suitable wellness packages such as "
|
20 |
+
"'Fitness & Mobility', 'No More Insomnia', 'Focus Flow', 'Boost Energy', 'Chronic Care', and 'Mental Wellness'.\n\n"
|
21 |
"Consider the following connections between the questions and these themes:\n"
|
22 |
"- stress_management is influenced by responses such as stress_level, stress_management, mood, mindfulness_frequency, and similar stress-related questions.\n"
|
23 |
"- low_therapy relates to aspects of the user's mindset, wellness_goals, personal_growth_reflection, and similar therapeutic indicators.\n"
|