heyal commited on
Commit
f3ddc79
·
1 Parent(s): 4645d7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,9 +22,9 @@ def create_vecotrstore(embedding , texts, db_name = 'chromadb' ) -> None:
22
 
23
  return vectordb
24
 
25
- def load_chunk(data_dir):
26
- "Load and chunk from documents to small text chunks."
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.")