Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from langchain.chains import RetrievalQA
|
|
7 |
from langchain_community.llms import HuggingFaceHub
|
8 |
|
9 |
def make_vectorstore(embeddings):
|
10 |
-
loader = PyPDFDirectoryLoader("
|
11 |
documents = loader.load()
|
12 |
text_splitter = CharacterTextSplitter(chunk_size=400, chunk_overlap=0)
|
13 |
texts = text_splitter.split_documents(documents)
|
|
|
7 |
from langchain_community.llms import HuggingFaceHub
|
8 |
|
9 |
def make_vectorstore(embeddings):
|
10 |
+
loader = PyPDFDirectoryLoader("data")
|
11 |
documents = loader.load()
|
12 |
text_splitter = CharacterTextSplitter(chunk_size=400, chunk_overlap=0)
|
13 |
texts = text_splitter.split_documents(documents)
|