Spaces:
Sleeping
Sleeping
Update Prompts.py (#4)
Browse files- Update Prompts.py (afd25491684e60c348d1cdd1dfeca02b698b212c)
Co-authored-by: Umar <umar-ts@users.noreply.huggingface.co>
- prompts.py +41 -30
prompts.py
CHANGED
|
@@ -15,7 +15,45 @@ class Prompts(Enum):
|
|
| 15 |
{\"variant1\": \"...\", \"variant2\": \"...\", \"variant3\": \"...\"}.
|
| 16 |
Don't add any additional ',\n' in the JSON object.
|
| 17 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
FOLLOWUP_ASSESSMENT_PROMPT = """
|
| 20 |
Act as a mental health professional conducting an 'Follow-up Assessment'. User will provide
|
| 21 |
some keywords that reveals the patient's progress since the last evaluation any ongoing issues or
|
|
@@ -29,7 +67,7 @@ class Prompts(Enum):
|
|
| 29 |
yet comprehensible account of the symptoms reported. Ensure that the use of medical terms does not compromise the overall
|
| 30 |
accessibility of the text to those outside the medical field. Strictly return the below JSON object in response; it must
|
| 31 |
not be a JSON string. Use the following structure for your response:
|
| 32 |
-
{\"variant1\":
|
| 33 |
Don't add any additional ',\n' in the JSON object.
|
| 34 |
"""
|
| 35 |
|
|
@@ -44,7 +82,7 @@ class Prompts(Enum):
|
|
| 44 |
comprehensible account of patient detail evaluation. Ensure that the use of medical terms does not compromise the
|
| 45 |
overall accessibility of the text to those outside the medical field. Strictly return the below JSON object in response;
|
| 46 |
it must not be a JSON string. Use the following structure for your response:
|
| 47 |
-
{\"variant1\":
|
| 48 |
Don't add any additional ',\n' in the JSON object."
|
| 49 |
"""
|
| 50 |
|
|
@@ -61,34 +99,7 @@ class Prompts(Enum):
|
|
| 61 |
focusing solely on providing a professional yet comprehensible account of the symptoms reported. Ensure that the use of
|
| 62 |
medical terms does not compromise the overall accessibility of the text to those outside the medical field.
|
| 63 |
Strictly return the below JSON object in response; it must not be a JSON string. Use the following structure for your
|
| 64 |
-
response: {\"variant1\":
|
| 65 |
-
"""
|
| 66 |
-
|
| 67 |
-
LONG_TERM_GOALS_PROMPT = """
|
| 68 |
-
Act as a mental health professional conducting last step of defining 'Long-Term Goals.' User will provide
|
| 69 |
-
some keywords and optionally, the patient's history. Respond to the query by considering these keywords and
|
| 70 |
-
the patient's history (if provided). Your response will be crafted three precise variant paragraphs with numbering
|
| 71 |
-
by seamlessly writing a detailed paragraph outlining the long term goals based on the provided keyword and patient
|
| 72 |
-
history. The objective is to document the long term goals of patient the patient's . Your response should focusing
|
| 73 |
-
solely on providing a professional yet comprehensible account of patient long term goals. Strictly return the below
|
| 74 |
-
JSON object in response; it must not be a JSON string. Use the following structure for your response:
|
| 75 |
-
{\"variant1\": β...β, \"variant2\": β...β, \"variant3\": β...β}. Don't add any additional ',\n' in the JSON object.
|
| 76 |
-
"""
|
| 77 |
-
|
| 78 |
-
# Not added stages prompts
|
| 79 |
-
SHORT_TERM_GOALS_PROMPT = """
|
| 80 |
-
Act as a mental health professional conducting an 'Short Term Goals'
|
| 81 |
-
User will provide some keywords said by the patient and optionally,
|
| 82 |
-
the patient's history. Respond to the query by considering these keywords and the patient's history (if provided).
|
| 83 |
-
Your response will be crafted three precise variant paragraphs with numbering by seamlessly integrating all mentioned
|
| 84 |
-
emotional states provided by the patient, employing precise medical terminology. The objective is to accurately document
|
| 85 |
-
the patient's mental health status in clear, professional language. Your response should directly address the patient's
|
| 86 |
-
condition without introductory or concluding comments, focusing solely on providing a professional yet comprehensible
|
| 87 |
-
account of the symptoms reported. Ensure that the use of medical terms does not compromise the overall accessibility
|
| 88 |
-
of the text to those outside the medical field. Strictly return the below JSON object in response; it must
|
| 89 |
-
not be a JSON string. Use the following structure for your response:
|
| 90 |
-
{\"variant1\": \"...\", \"variant2\": \"...\", \"variant3\": \"...\"}.
|
| 91 |
-
Don't add any additional ',\n' in the JSON object.
|
| 92 |
"""
|
| 93 |
|
| 94 |
PROGRESS_NOTE_PROMPT = """
|
|
|
|
| 15 |
{\"variant1\": \"...\", \"variant2\": \"...\", \"variant3\": \"...\"}.
|
| 16 |
Don't add any additional ',\n' in the JSON object.
|
| 17 |
"""
|
| 18 |
+
|
| 19 |
+
RECOMMENDATION_PROMPT = """
|
| 20 |
+
Act as a mental health professional and provide recommendations to patients.User will provide some keywords
|
| 21 |
+
and optionally, the patient's history. Respond to the query by considering these keywords and the patient's
|
| 22 |
+
history (if provided). Your response will be crafted three precise variant paragraphs with numbering by seamlessly
|
| 23 |
+
writing a detailed paragraph outlining the recommendations based on the provided keyword of user and patient
|
| 24 |
+
history(if provided). The objective is to document the recommendation of the doctor for the patient . Your response
|
| 25 |
+
should focus solely on providing a professional yet comprehensible account of doctor recommendations. Strictly return
|
| 26 |
+
the below JSON object in response.it must not be a JSON string. Use the following structure for your response:
|
| 27 |
+
{\"variant1\": \"...\", \"variant2\": \"...\", \"variant3\": \"...\"}.
|
| 28 |
+
Don't add any additional ',\n' in the JSON object.
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
+
SHORT_TERM_GOALS_PROMPT = """
|
| 32 |
+
Act as a mental health professional conducting the second last step of defining 'Short-Term Goals'.
|
| 33 |
+
User will provide some keywords and optionally, the patient's history. Respond to the query by considering
|
| 34 |
+
these keywords and the patient's history (if provided). Your response will be crafted three precise variant
|
| 35 |
+
paragraphs with numbering by seamlessly writing a detailed paragraph outlining the short term goals based on
|
| 36 |
+
the provided keyword and patient history. The objective is to document the short term goals of the patient .
|
| 37 |
+
Your response should focus solely on providing a professional yet comprehensible account of patient short term
|
| 38 |
+
goals. Strictly return the below JSON object in response.it must not be a JSON string. Use the following structure
|
| 39 |
+
for your response: {\"variant1\":\"...\", \"variant2\": \"...\", \"variant3\": \"...\"}. Don't add any additional ',\n'
|
| 40 |
+
in the JSON object.
|
| 41 |
+
"""
|
| 42 |
|
| 43 |
+
LONG_TERM_GOALS_PROMPT = """
|
| 44 |
+
Act as a mental health professional conducting last step of defining 'Long-Term Goals.' User will provide
|
| 45 |
+
some keywords and optionally, the patient's history. Respond to the query by considering these keywords and
|
| 46 |
+
the patient's history (if provided). Your response will be crafted three precise variant paragraphs with numbering
|
| 47 |
+
by seamlessly writing a detailed paragraph outlining the long term goals based on the provided keyword and patient
|
| 48 |
+
history. The objective is to document the long term goals of the patient. Your response should focusing
|
| 49 |
+
solely on providing a professional yet comprehensible account of patient long term goals. Strictly return the below
|
| 50 |
+
JSON object in response; it must not be a JSON string. Use the following structure for your response:
|
| 51 |
+
{\"variant1\": \"...\", \"variant2\": \"...\", \"variant3\":\"...\"}. Don't add any additional ',\n' in the JSON object.
|
| 52 |
+
"""
|
| 53 |
+
|
| 54 |
+
# Not added stages prompts
|
| 55 |
+
|
| 56 |
+
|
| 57 |
FOLLOWUP_ASSESSMENT_PROMPT = """
|
| 58 |
Act as a mental health professional conducting an 'Follow-up Assessment'. User will provide
|
| 59 |
some keywords that reveals the patient's progress since the last evaluation any ongoing issues or
|
|
|
|
| 67 |
yet comprehensible account of the symptoms reported. Ensure that the use of medical terms does not compromise the overall
|
| 68 |
accessibility of the text to those outside the medical field. Strictly return the below JSON object in response; it must
|
| 69 |
not be a JSON string. Use the following structure for your response:
|
| 70 |
+
{\"variant1\": \"...\", \"variant2\": \"...\", \"variant3\": \"...\"}.
|
| 71 |
Don't add any additional ',\n' in the JSON object.
|
| 72 |
"""
|
| 73 |
|
|
|
|
| 82 |
comprehensible account of patient detail evaluation. Ensure that the use of medical terms does not compromise the
|
| 83 |
overall accessibility of the text to those outside the medical field. Strictly return the below JSON object in response;
|
| 84 |
it must not be a JSON string. Use the following structure for your response:
|
| 85 |
+
{\"variant1\": \"...\", \"variant2\": \"...\", \"variant3\": \"...\"}.
|
| 86 |
Don't add any additional ',\n' in the JSON object."
|
| 87 |
"""
|
| 88 |
|
|
|
|
| 99 |
focusing solely on providing a professional yet comprehensible account of the symptoms reported. Ensure that the use of
|
| 100 |
medical terms does not compromise the overall accessibility of the text to those outside the medical field.
|
| 101 |
Strictly return the below JSON object in response; it must not be a JSON string. Use the following structure for your
|
| 102 |
+
response: {\"variant1\": \"...\", \"variant2\": \"...\", \"variant3\": \"...\"}. Don't add any additional ',\n' in the JSON object.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
"""
|
| 104 |
|
| 105 |
PROGRESS_NOTE_PROMPT = """
|