peterpull commited on
Commit
8bd1c8c
·
1 Parent(s): 238ed40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ index = get_index(INDEX_FILE)
105
  # passes the prompt to the chatbot
106
  def chatbot(input_text, mentioned_person='Mediator John Haynes', confidence_threshold=0.5):
107
  hyde= HyDEQueryTransform(include_original=True)
108
- prompt = f"{mentioned_person}, please respond to: {input_text}. Only reply with contextual information. If unsure, please be honest. End with a reflective question."
109
  response = index.query(prompt, response_mode="default", verbose=True, query_transform=hyde)
110
  store_message(input_text,response)
111
 
 
105
  # passes the prompt to the chatbot
106
  def chatbot(input_text, mentioned_person='Mediator John Haynes', confidence_threshold=0.5):
107
  hyde= HyDEQueryTransform(include_original=True)
108
+ prompt = f"In character as {mentioned_person}, please respond to: {input_text}. Only reply with contextual information or say you cannot find an answer. End with a reflective question."
109
  response = index.query(prompt, response_mode="default", verbose=True, query_transform=hyde)
110
  store_message(input_text,response)
111