Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def pdf_to_text(pdf_file, query):
|
|
41 |
|
42 |
index = vectorstore.as_retriever()
|
43 |
#inference
|
44 |
-
qa = VectorDBQA.from_chain_type(llm=llm, chain_type="stuff", vectorstore=vectorstore)
|
45 |
from langchain.chains import RetrievalQA
|
46 |
chain = RetrievalQA.from_chain_type(llm=llm,
|
47 |
chain_type="stuff",
|
|
|
41 |
|
42 |
index = vectorstore.as_retriever()
|
43 |
#inference
|
44 |
+
#qa = VectorDBQA.from_chain_type(llm=llm, chain_type="stuff", vectorstore=vectorstore)
|
45 |
from langchain.chains import RetrievalQA
|
46 |
chain = RetrievalQA.from_chain_type(llm=llm,
|
47 |
chain_type="stuff",
|