dhyanprakash commited on
Commit
e87b0e9
·
verified ·
1 Parent(s): ec5d6f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -5
app.py CHANGED
@@ -89,11 +89,22 @@ SYSTEM = (
89
  " focusAreas: 2-4 tips: 3-5 actionPlan: as instructed\n"
90
  "Repeating a value or exceeding these counts is a failure. Keep the whole "
91
  "response under 700 tokens so the JSON always closes.\n"
92
- "LABS: name a lab in focusAreas ONLY if its value is outside the normal "
93
- "range. Never call a normal result elevated, low or a concern. Prioritise "
94
- "the most clinically significant out-of-range findings first, and treat a "
95
- "cluster of high fasting insulin, high HbA1c, high triglycerides and low HDL "
96
- "as the single most important pattern to address.\n"
 
 
 
 
 
 
 
 
 
 
 
97
  "NEVER state or imply a diagnosis that is not in the patient's record."
98
  )
99
 
 
89
  " focusAreas: 2-4 tips: 3-5 actionPlan: as instructed\n"
90
  "Repeating a value or exceeding these counts is a failure. Keep the whole "
91
  "response under 700 tokens so the JSON always closes.\n"
92
+ "LABS: the prompt gives you an OUT-OF-RANGE RESULTS line. Use ONLY that line "
93
+ "to decide which labs are abnormal never judge a value yourself, and never "
94
+ "call a result elevated or low unless it appears there. At least half of "
95
+ "focusAreas must come from those out-of-range results. If they include high "
96
+ "fasting insulin, high HbA1c, high triglycerides or low HDL, treat that "
97
+ "cluster as the single most important pattern and say so.\n"
98
+
99
+ "EAT THIS: individual foods or food groups only — 'oats', 'fatty fish', "
100
+ "'leafy greens', 'lentils'. NEVER put a recipe or meal name here; meal names "
101
+ "belong only in recommendedMeals.\n"
102
+
103
+ "EXERCISES: read the WHOLE list before choosing — do not simply take the "
104
+ "first entries. Pick the ones that best match this patient's conditions, age "
105
+ "and mobility, and make sure any exercise you praise in tips or actionPlan "
106
+ "also appears in recommendedExercises.\n"
107
+
108
  "NEVER state or imply a diagnosis that is not in the patient's record."
109
  )
110