Przeglądaj źródła

revert: ocr feature

Timothy J. Baek 1 rok temu
rodzic
commit
bb98c10abb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      backend/apps/rag/main.py

+ 1 - 1
backend/apps/rag/main.py

@@ -425,7 +425,7 @@ def get_loader(filename: str, file_content_type: str, file_path: str):
     ]
 
     if file_ext == "pdf":
-        loader = PyPDFLoader(file_path, extract_images=True)
+        loader = PyPDFLoader(file_path)
     elif file_ext == "csv":
         loader = CSVLoader(file_path)
     elif file_ext == "rst":