KonradSzafer commited on
Commit
11b950b
·
1 Parent(s): 9ec47bf

prompt update

Browse files
Files changed (1) hide show
  1. qa_engine/qa_engine.py +2 -1
qa_engine/qa_engine.py CHANGED
@@ -310,7 +310,7 @@ class QAEngine():
310
  answer_step_2 = self.llm_model(
311
  f"""
312
  <|im_start|>system
313
- Given the context provided below, review the existing answer to the question to determine its accuracy and completeness. If the answer is incorrect or incomplete, update it to reflect the most accurate and relevant information based on the context. Ensure that the updated answer is clear, concise, and directly addresses the question. Your primary objective is to return only the updated answer. <|im_end|>
314
  <|im_end|>
315
  <|im_start|>user
316
  <context>{context}</context>
@@ -332,6 +332,7 @@ Given the context provided below, review the existing answer to the question to
332
  logger.info(f'question: {question} {sep}')
333
  logger.info(f'answer len: {len(response.get_answer())} {sep}')
334
  logger.info(f'answer original: {answer} {sep}')
 
335
  logger.info(f'answer postprocessed: {response.get_answer()} {sep}')
336
  logger.info(f'{response.get_sources_as_text()} {sep}')
337
  logger.info(f'messages_contex: {messages_context} {sep}')
 
310
  answer_step_2 = self.llm_model(
311
  f"""
312
  <|im_start|>system
313
+ Given the context provided below, review the answer, and update it to reflect the most accurate and relevant information based on the context. Ensure that the updated answer is clear, concise, and directly addresses the question. Your primary objective is to return only the updated answer. <|im_end|>
314
  <|im_end|>
315
  <|im_start|>user
316
  <context>{context}</context>
 
332
  logger.info(f'question: {question} {sep}')
333
  logger.info(f'answer len: {len(response.get_answer())} {sep}')
334
  logger.info(f'answer original: {answer} {sep}')
335
+ logger.info(f'answer step 2: {answer_step_2} {sep}')
336
  logger.info(f'answer postprocessed: {response.get_answer()} {sep}')
337
  logger.info(f'{response.get_sources_as_text()} {sep}')
338
  logger.info(f'messages_contex: {messages_context} {sep}')