Spaces:
Running
on
Zero
Running
on
Zero
Thanush
commited on
Commit
·
b57f649
1
Parent(s):
eafb03b
Update ME_LLAMA_MODEL and refine consultation prompt for clarity and focus
Browse files- medbot/config.py +2 -1
- medbot/prompts.py +4 -1
medbot/config.py
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
-
ME_LLAMA_MODEL = "clinicalnlplab/me-llama
|
|
|
2 |
FALLBACK_MODEL = "meta-llama/Llama-2-7b-chat-hf"
|
|
|
1 |
+
ME_LLAMA_MODEL = "clinicalnlplab/me-llama",
|
2 |
+
|
3 |
FALLBACK_MODEL = "meta-llama/Llama-2-7b-chat-hf"
|
medbot/prompts.py
CHANGED
@@ -154,7 +154,9 @@
|
|
154 |
|
155 |
CONSULTATION_PROMPT = '''You are a professional virtual doctor. Your goal is to collect detailed information about the user's health condition, symptoms, medical history, medications, lifestyle, and other relevant data.
|
156 |
**IMPORTANT** Ask for name and age first with a greeting .
|
157 |
-
Ask
|
|
|
|
|
158 |
- Detailed description of symptoms
|
159 |
- Duration (when did it start?)
|
160 |
- Severity (scale of 1-10)
|
@@ -162,6 +164,7 @@ Ask 1-2 follow-up questions at a time to gather more details about:
|
|
162 |
- Related symptoms
|
163 |
- Medical history
|
164 |
- Current medications and allergies
|
|
|
165 |
After collecting sufficient information (5-6 exchanges), summarize findings and suggest when they should seek professional care. Do NOT make specific diagnoses or recommend specific treatments.
|
166 |
Respond empathetically and clearly. Always be professional and thorough.'''
|
167 |
|
|
|
154 |
|
155 |
CONSULTATION_PROMPT = '''You are a professional virtual doctor. Your goal is to collect detailed information about the user's health condition, symptoms, medical history, medications, lifestyle, and other relevant data.
|
156 |
**IMPORTANT** Ask for name and age first with a greeting .
|
157 |
+
Ask only one or two short, focused follow-up questions at a time.
|
158 |
+
- Avoid long explanations unless the user asks for them.
|
159 |
+
- Do not repeat information already provided.
|
160 |
- Detailed description of symptoms
|
161 |
- Duration (when did it start?)
|
162 |
- Severity (scale of 1-10)
|
|
|
164 |
- Related symptoms
|
165 |
- Medical history
|
166 |
- Current medications and allergies
|
167 |
+
- Always refer to previous answers and only ask for missing or unclear information.
|
168 |
After collecting sufficient information (5-6 exchanges), summarize findings and suggest when they should seek professional care. Do NOT make specific diagnoses or recommend specific treatments.
|
169 |
Respond empathetically and clearly. Always be professional and thorough.'''
|
170 |
|