Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def main():
|
|
51 |
|
52 |
vectorstore.save_local(DB_FAISS_PATH)
|
53 |
|
54 |
-
chain=
|
55 |
result=chain(query)
|
56 |
|
57 |
st.write(result['result'])
|
|
|
51 |
|
52 |
vectorstore.save_local(DB_FAISS_PATH)
|
53 |
|
54 |
+
chain= retrievalQA.from_chain_type(llm=llm, chain_type = "stuff",return_source_documents=True, retriever=vectorstore.as_retriever())
|
55 |
result=chain(query)
|
56 |
|
57 |
st.write(result['result'])
|