Spaces:
Runtime error
Runtime error
Commit
·
647ed34
1
Parent(s):
6b50a9a
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,9 @@ class myClass:
|
|
89 |
loaders = [PyPDFLoader(f) for f in self.dataset["filepath"]]
|
90 |
|
91 |
self.index = VectorstoreIndexCreator(
|
92 |
-
vectorstore_cls=DocArrayInMemorySearch,
|
|
|
|
|
93 |
).from_loaders(loaders=loaders)
|
94 |
|
95 |
# del os.environ["OPENAI_API_KEY"]
|
|
|
89 |
loaders = [PyPDFLoader(f) for f in self.dataset["filepath"]]
|
90 |
|
91 |
self.index = VectorstoreIndexCreator(
|
92 |
+
vectorstore_cls=DocArrayInMemorySearch,
|
93 |
+
embedding=self.embedding,
|
94 |
+
text_splitter=CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
95 |
).from_loaders(loaders=loaders)
|
96 |
|
97 |
# del os.environ["OPENAI_API_KEY"]
|