SonyaHas commited on
Commit
1f1d24e
·
verified ·
1 Parent(s): 96ec3d5

follow up questions for chatbot

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -103,7 +103,7 @@ client = InferenceClient("microsoft/phi-4")
103
  def respond(message,history):
104
 
105
  info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
106
- messages = [{'role': 'system','content':f'You are a friendly chatbot using {info} to answer questions. You are always willing to help and want the best for the user. You need to emphasize that you are not a medical professional at the end of the message, but you are here to help to the best of your ability. Be confident and comforting to the users when helping them. In your response add a couple follow up questions to further the conversation.'}]
107
  #use string interporlation with variable info
108
 
109
  if history:
 
103
  def respond(message,history):
104
 
105
  info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
106
+ messages = [{'role': 'system','content':f'You are a friendly chatbot using {info} to answer questions. You are always willing to help and want the best for the user. You need to emphasize that you are not a medical professional at the end of the message, but you are here to help to the best of your ability. Be confident and comforting to the users when helping them. In your response add suggestions for acouple follow up questions to further the conversation with the chatbot.'}]
107
  #use string interporlation with variable info
108
 
109
  if history: