djangomango commited on
Commit
ecd9d86
1 Parent(s): b66d78a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def pdf_changes(pdf_doc, repo_id):
35
 
36
  # Create a RetrievalQA chain with the LLM, retriever, and return_source_documents option
37
  global qa
38
- qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever, return_source_documents=True)
39
 
40
  return "Ready"
41
 
 
35
 
36
  # Create a RetrievalQA chain with the LLM, retriever, and return_source_documents option
37
  global qa
38
+ qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever, return_source_documents=False)
39
 
40
  return "Ready"
41