rukeshpaudel commited on
Commit
fd501d6
Β·
1 Parent(s): dbdb222

Prompts updated

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -21,16 +21,15 @@ assistant = client.beta.assistants.create(
21
  who asks all the right questions to the patient to know about their symptoms \
22
  and create an engaging and interesting conversation \
23
  and make patients let out all the diseases they are \
24
- suffering from. Then,you will create a medical report \
25
- based on the symptoms after you receive all the required information from the patient. \
26
- Then you will report the symptoms in a formal \
27
  formatted diagnosis report. Make sure to include all the vital \
28
  informations by asking the patients. Strictly start with asking their name, age, gender and if they have any previous medical condition(eg: high blood pressure, sugar, diabetes,etc.).\
29
- Also ask their weight and height(if they know). If a user provides symptoms directly, you will still ask for their name, age and gender before you proceed.\
30
- Do not ask many questions about symptoms at once.Ask one question at a time so that the user doesn't feel overwhelmed. After completing asking the \
31
- symptoms, generate the symptoms in a medical report like format along with the patient's information. If the user tries to ask anything else which is not\
32
  related to health and symptoms, deviate the topic back to health and symptoms.\
33
- After documenting the symptoms,recommend the user to visit the type of doctor(example: neurologist, dermatologist, urologist, ER medical surgeon, etc.) according to the symptoms, they're suffering from.",
34
 
35
  model="gpt-3.5-turbo",
36
  # file_ids=[file.id],
@@ -57,7 +56,7 @@ def main(query, history):
57
  thread_id=thread.id,
58
  assistant_id=assistant.id,
59
  instructions="User is a health patient, who is suffering from {disease}. You are supposed to create a medical report based on the symptoms. If you are 100% sure, you can also predict the disease else just report the symptoms in a formal formatted diagnosis report.\
60
- Make sure to include all the vital informations by asking the patients. Ask their name, age and gender before beginning asking for symptoms. Also ask their weight and height, calculate BMI index, ask if they have the details of the test they've previously taken. If they have any previous medical reports, ask for their sugar level, blood pressure and other necessary information that are done in a whole body checkup. Ask one question at a time so that the user doesn't feel overwhelmed. After completing asking the symptoms, automatically generate the symptoms in a medical report like format along with the patient's information.",
61
  )
62
 
63
  while True:
@@ -88,7 +87,8 @@ with gr.Blocks() as iface:
88
  with gr.Tab("MeroHealthAI Chatbot"):
89
  # gr.Markdown("MeroHealthAI is an AI assited chatbot that gathers symptoms from the user, documents it and sends it to the nearest most relevant doctor available. Our app also suppors medical report analysis")
90
  symptom_chatbot = gr.ChatInterface(
91
- main, clear_btn="Find Doctor"
 
92
  , description="MeroHealthAI is an AI assited chatbot that gathers symptoms from the user, documents it and sends it to the nearest most relevant doctor available. Our app also suppors medical report analysis",\
93
  examples=["I am having persistent headache, loss of feeling, tingling, Weakness or loss of muscle strength.",\
94
  "I am having headache since yesterday, do you know what could be the reason?",\
 
21
  who asks all the right questions to the patient to know about their symptoms \
22
  and create an engaging and interesting conversation \
23
  and make patients let out all the diseases they are \
24
+ suffering from. Then, create a medical report \
25
+ based on the symptoms automatically after you receive all the required information from the patient. \
26
+ Report the symptoms in a formal \
27
  formatted diagnosis report. Make sure to include all the vital \
28
  informations by asking the patients. Strictly start with asking their name, age, gender and if they have any previous medical condition(eg: high blood pressure, sugar, diabetes,etc.).\
29
+ Also ask their weight and height(if they know). Ask one question at a time so that the user doesn't feel overwhelmed. After completing asking the \
30
+ symptoms, automatically generate the symptoms in a medical report like format along with the patient's information. If the user tries to ask anything else which is not\
 
31
  related to health and symptoms, deviate the topic back to health and symptoms.\
32
+ After documenting the symptoms,tell the user to visit the type of doctor(example: neurologist, dermatologist, urologist, ER medical surgeon, etc.) according to the symptoms, they're suffering from.",
33
 
34
  model="gpt-3.5-turbo",
35
  # file_ids=[file.id],
 
56
  thread_id=thread.id,
57
  assistant_id=assistant.id,
58
  instructions="User is a health patient, who is suffering from {disease}. You are supposed to create a medical report based on the symptoms. If you are 100% sure, you can also predict the disease else just report the symptoms in a formal formatted diagnosis report.\
59
+ Make sure to include all the vital informations by asking the patients. Ask their name, address and other personal details information before beginning asking for symptoms. Also ask their weight and height, calculate BMI index, ask if they have the details of the test they've previously taken. If they have any previous medical reports, ask for their sugar level, blood pressure and other necessary information that are done in a whole body checkup. Ask one question at a time so that the user doesn't feel overwhelmed. After completing asking the symptoms, automatically generate the symptoms in a medical report like format along with the patient's information.",
60
  )
61
 
62
  while True:
 
87
  with gr.Tab("MeroHealthAI Chatbot"):
88
  # gr.Markdown("MeroHealthAI is an AI assited chatbot that gathers symptoms from the user, documents it and sends it to the nearest most relevant doctor available. Our app also suppors medical report analysis")
89
  symptom_chatbot = gr.ChatInterface(
90
+ main,
91
+ clear_btn="Find Relevant Doctors"
92
  , description="MeroHealthAI is an AI assited chatbot that gathers symptoms from the user, documents it and sends it to the nearest most relevant doctor available. Our app also suppors medical report analysis",\
93
  examples=["I am having persistent headache, loss of feeling, tingling, Weakness or loss of muscle strength.",\
94
  "I am having headache since yesterday, do you know what could be the reason?",\