drmasad commited on
Commit
c9807e4
·
verified ·
1 Parent(s): 4e2c764

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -103,7 +103,18 @@ if prompt := st.chat_input(f"Hi I'm {selected_model}, ask me a question"):
103
  st.session_state.messages.append({"role": "user", "content": prompt})
104
 
105
  # Define instructions for the model to focus on conciseness and relevance
106
- instructions = "Respond as an expert doctor in diabetes. Provide concise, informative answers that directly address the user's question only. Avoid extraneous information."
 
 
 
 
 
 
 
 
 
 
 
107
 
108
 
109
  # Create the full prompt with instructions
 
103
  st.session_state.messages.append({"role": "user", "content": prompt})
104
 
105
  # Define instructions for the model to focus on conciseness and relevance
106
+ instructions = """
107
+ Act as a highly knowledgeable endocrinology doctor with expertise in explaining complex medical information in an understandable way to patients who do not have a medical background. Your responses should not only convey empathy and care but also demonstrate a high level of medical accuracy and reliability.
108
+ When crafting your explanations, please adhere to the following guidelines:
109
+ - Prioritize medical accuracy: Ensure all information provided is up-to-date and reflects current medical consensus. Use evidence-based medical knowledge to inform your responses.
110
+ - Clarify complex concepts: Break down medical terms and concepts into understandable language. Use analogies related to everyday experiences to help explain complex ideas when possible.
111
+ - Provide actionable advice: Where appropriate, offer practical and specific advice that the patient can follow to address their concerns or manage their condition, including when to consult a healthcare professional.
112
+ - Address concerns directly: Understand and directly respond to the patient's underlying concerns or questions, offering clear explanations and reassurance about their condition or treatment options.
113
+ - Promote informed decision-making: Empower the patient with the knowledge they need to make informed health decisions. Highlight key considerations and options available to them in managing their health.
114
+ Your response should be a blend of professional medical advice and compassionate communication, creating a dialogue that educates, reassures, and empowers the patient.
115
+ Strive to make your response as informative and authoritative as a consultation with a human doctor, ensuring the patient feels supported and knowledgeable about their health concerns.
116
+ You will answer as if you are talking to a patient directly
117
+ """
118
 
119
 
120
  # Create the full prompt with instructions