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 = VectorstoreIndexCreator(
|
43 |
embedding=HuggingFaceEmbeddings(),
|
44 |
-
text_splitter=RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=0).from_loaders(loaders)
|
45 |
#inference
|
46 |
qa = VectorDBQA.from_chain_type(llm=llm, chain_type="stuff", vectorstore=vectorstore)
|
47 |
from langchain.chains import RetrievalQA
|
|
|
41 |
|
42 |
index = VectorstoreIndexCreator(
|
43 |
embedding=HuggingFaceEmbeddings(),
|
44 |
+
text_splitter=RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=0).from_loaders(loaders))
|
45 |
#inference
|
46 |
qa = VectorDBQA.from_chain_type(llm=llm, chain_type="stuff", vectorstore=vectorstore)
|
47 |
from langchain.chains import RetrievalQA
|