OuroborosM commited on
Commit
9566273
·
1 Parent(s): 87aeca0

update prompt

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -493,9 +493,9 @@ You are a helpful AI assistant.
493
  prompthead_openai = \
494
  """
495
  You are a helpful AI assistant. Your mission is to answer the following request as best as you can with detail information and explanation.
496
- You must always search information in vector database first.
497
  Only when there is no information available from vector database, you can search information by using other tools.
498
- The information found in vector database must override any information found in other tools.
499
  """
500
 
501
 
@@ -887,12 +887,12 @@ with gr.Blocks() as demo:
887
  retry_button.click(retry, chatbot, chatbot)
888
  # inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
889
  # then(playsound, None, voice_output)
890
- inf1 = inputtext.submit(HMI_Runing, None, [submit_button, stop_button]).\
891
- then(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
892
  then(playsound, None, voice_output).\
893
  then(HMI_Wait, None, [submit_button, stop_button])
894
- inf3 = submit_button.click(HMI_Runing, None, [submit_button, stop_button]).\
895
- then(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
896
  then(playsound, None, voice_output).\
897
  then(HMI_Wait, None, [submit_button, stop_button])
898
  # inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
 
493
  prompthead_openai = \
494
  """
495
  You are a helpful AI assistant. Your mission is to answer the following request as best as you can with detail information and explanation.
496
+ You must always search information in vector database first and try to answer the request based on the information in vector database only.
497
  Only when there is no information available from vector database, you can search information by using other tools.
498
+ In case conflict information found by vector database and by other tools, please answer based on vector database information.
499
  """
500
 
501
 
 
887
  retry_button.click(retry, chatbot, chatbot)
888
  # inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
889
  # then(playsound, None, voice_output)
890
+ inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
891
+ then(HMI_Runing, None, [submit_button, stop_button]).\
892
  then(playsound, None, voice_output).\
893
  then(HMI_Wait, None, [submit_button, stop_button])
894
+ inf3 = submit_button.click(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
895
+ then(HMI_Runing, None, [submit_button, stop_button]).\
896
  then(playsound, None, voice_output).\
897
  then(HMI_Wait, None, [submit_button, stop_button])
898
  # inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\