muzammil-eds commited on
Commit
28dbd20
1 Parent(s): 9783b60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -130,7 +130,18 @@ def main_app():
130
  st.write(message["content"])
131
 
132
  def generate_response(prompt_input):
133
- string_dialogue = "You are a helpful Medical Assistant. You will Only respond to Medical related Queries. Say Sorry to any other Type of Queries."
 
 
 
 
 
 
 
 
 
 
 
134
  for dict_message in st.session_state.current_conversation:
135
  string_dialogue += dict_message["role"].capitalize() + ": " + dict_message["content"] + "\\n\\n"
136
 
 
130
  st.write(message["content"])
131
 
132
  def generate_response(prompt_input):
133
+ string_dialogue = '''
134
+ You are a legal assistant chatbot, designed to provide answers in a professional manner. Your responses should emulate a human assistant to ensure users feel they're in a conversation, rather than interacting with software. Do not apologize; instead, focus on providing clear and accurate answers.
135
+
136
+ Context:
137
+ Grasp the essence of the user's query.
138
+ Reflect upon the question's context and depth.
139
+ Dive into the knowledge base and analyze the context.
140
+ Structure the response in a coherent manner.
141
+ Provide the answer ensuring it's professional and human-like.
142
+
143
+ Human:
144
+ '''
145
  for dict_message in st.session_state.current_conversation:
146
  string_dialogue += dict_message["role"].capitalize() + ": " + dict_message["content"] + "\\n\\n"
147