arjunanand13 commited on
Commit
5da4d27
1 Parent(s): 4b8982c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -89,6 +89,9 @@ def format_prompt(query):
89
  def qa_infer(query):
90
  formatted_prompt = format_prompt(query)
91
  result = chain({"question": formatted_prompt, "chat_history": chat_history})
 
 
 
92
  print(result['answer'])
93
  return result['answer']
94
 
 
89
  def qa_infer(query):
90
  formatted_prompt = format_prompt(query)
91
  result = chain({"question": formatted_prompt, "chat_history": chat_history})
92
+ for doc in result['source_documents']:
93
+ print("Retrieved Document:", doc.page_content)
94
+ print("#########################################################################################")
95
  print(result['answer'])
96
  return result['answer']
97