kpal002 commited on
Commit
9d4258b
1 Parent(s): bfa2d3c

Update RAG_utils.py

Browse files
Files changed (1) hide show
  1. RAG_utils.py +1 -1
RAG_utils.py CHANGED
@@ -460,7 +460,7 @@ class PDFProcessor_Unstructured:
460
  results = self.process_pdf()
461
  title = self.extract_title_from_pdf(self.file_path)
462
  logging.info("PDF processing completed successfully.")
463
- return results, title
464
  except Exception as e:
465
  logging.error(f"Error processing PDF file: {e}", exc_info=True)
466
  raise
 
460
  results = self.process_pdf()
461
  title = self.extract_title_from_pdf(self.file_path)
462
  logging.info("PDF processing completed successfully.")
463
+ return (*results, title)
464
  except Exception as e:
465
  logging.error(f"Error processing PDF file: {e}", exc_info=True)
466
  raise