alexkueck commited on
Commit
5ecf0e3
·
verified ·
1 Parent(s): 536889c

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -0
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"