Update utils.py
Browse files
utils.py
CHANGED
@@ -328,11 +328,10 @@ def split_documents_with_id(docs, text_splitter):
|
|
328 |
#finally die Splits erzeugen und laden.....
|
329 |
def document_loading_splitting():
|
330 |
docs = []
|
331 |
-
|
332 |
# kreiere einen DirectoryLoader für jeden file type
|
333 |
pdf_loader = create_directory_loader('.pdf', CHROMA_PDF)
|
334 |
#word_loader = create_directory_loader('.word', CHROMA_WORD)
|
335 |
-
print("PDF Loader done............................")
|
336 |
|
337 |
# Load the files
|
338 |
pdf_documents = pdf_loader.load()
|
@@ -341,7 +340,7 @@ def document_loading_splitting():
|
|
341 |
#alle zusammen in docs...
|
342 |
docs.extend(pdf_documents)
|
343 |
#docs.extend(word_documents)
|
344 |
-
print("docs???..........."+str(docs))
|
345 |
#andere loader...
|
346 |
# Load PDF
|
347 |
#loader = PyPDFLoader(PDF_URL)
|
|
|
328 |
#finally die Splits erzeugen und laden.....
|
329 |
def document_loading_splitting():
|
330 |
docs = []
|
331 |
+
print("Directory Loader neu............................")
|
332 |
# kreiere einen DirectoryLoader für jeden file type
|
333 |
pdf_loader = create_directory_loader('.pdf', CHROMA_PDF)
|
334 |
#word_loader = create_directory_loader('.word', CHROMA_WORD)
|
|
|
335 |
|
336 |
# Load the files
|
337 |
pdf_documents = pdf_loader.load()
|
|
|
340 |
#alle zusammen in docs...
|
341 |
docs.extend(pdf_documents)
|
342 |
#docs.extend(word_documents)
|
343 |
+
print("docs???..........."+str(docs[0]))
|
344 |
#andere loader...
|
345 |
# Load PDF
|
346 |
#loader = PyPDFLoader(PDF_URL)
|