Spaces:
Runtime error
Runtime error
return source documents
Browse files
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):
|