vmoras commited on
Commit
5665154
1 Parent(s): dbcbdf7

Fix bug: passed question was the standalone one

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -89,7 +89,7 @@ def ask_query(
89
  else:
90
  question = get_standalone_question(msg, message_history, prompt_q)
91
  context = get_context(question)
92
- answer = get_answer(context, message_history, question, prompt_m)
93
 
94
  message_history.append({'role': 'assistant', 'content': answer})
95
  chat_history.append([msg, answer])
 
89
  else:
90
  question = get_standalone_question(msg, message_history, prompt_q)
91
  context = get_context(question)
92
+ answer = get_answer(context, message_history, msg, prompt_m)
93
 
94
  message_history.append({'role': 'assistant', 'content': answer})
95
  chat_history.append([msg, answer])