Merge pull request #1050 from jannikstdl/rag-pdf-ocr

feat: added ocr functionality to the pdf loader
This commit is contained in:
Timothy Jaeryang Baek authored and GitHub committed 2024-03-06 00:45:33 -05:00
commit 8fb5f54751
2 files changed
+2 -1

No files matched your search

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