Spaces:
Runtime error
Runtime error
Commit
•
ecd9d86
1
Parent(s):
b66d78a
Update app.py
Browse files
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=
|
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 |
|