Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,9 +22,9 @@ def create_vecotrstore(embedding , texts, db_name = 'chromadb' ) -> None:
|
|
22 |
|
23 |
return vectordb
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
loader = DirectoryLoader(data_dir , glob="./*.pdf", loader_cls=PyPDFLoader)
|
29 |
documents = loader.load()
|
30 |
print(f"{len(documents)} documents are loaded.")
|
|
|
22 |
|
23 |
return vectordb
|
24 |
|
25 |
+
#"Load and chunk from documents to small text chunks."
|
26 |
+
def load_chunk(data_dir):
|
27 |
+
|
28 |
loader = DirectoryLoader(data_dir , glob="./*.pdf", loader_cls=PyPDFLoader)
|
29 |
documents = loader.load()
|
30 |
print(f"{len(documents)} documents are loaded.")
|