sabazo commited on
Commit
519d0d0
·
1 Parent(s): c255715

return source documents

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ db.get()
28
  retriever = db.as_retriever()
29
 
30
  global qa
31
- qa = RetrievalQA.from_chain_type(llm=model_id, chain_type="stuff", retriever=retriever)
32
 
33
 
34
  def add_text(history, text):
 
28
  retriever = db.as_retriever()
29
 
30
  global qa
31
+ qa = RetrievalQA.from_chain_type(llm=model_id, chain_type="stuff", retriever=retriever, return_source_documents=True)
32
 
33
 
34
  def add_text(history, text):