Update utils.py
Browse files
utils.py
CHANGED
@@ -551,6 +551,7 @@ def rag_chain_simpel( prompt, retriever):
|
|
551 |
def extract_document_info(documents):
|
552 |
extracted_info = []
|
553 |
for doc in documents:
|
|
|
554 |
# Extract the filename from the path to use as the title
|
555 |
filename = os.path.basename(doc.metadata.get("path", ""))
|
556 |
title = filename if filename else "Keine Überschrift"
|
|
|
551 |
def extract_document_info(documents):
|
552 |
extracted_info = []
|
553 |
for doc in documents:
|
554 |
+
print("extracted_doc_info........................"+str(doc))
|
555 |
# Extract the filename from the path to use as the title
|
556 |
filename = os.path.basename(doc.metadata.get("path", ""))
|
557 |
title = filename if filename else "Keine Überschrift"
|