Spaces:
Running
Running
Update app.py
Browse files
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:
|
| 93 |
-
"
|
| 94 |
-
"
|
| 95 |
-
"
|
| 96 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|