mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 03:59:42 +00:00
community[patch]: speed up import times in the community package (#18928)
This PR speeds up import times in the community package
This commit is contained in:
@@ -780,3 +780,7 @@ class DocumentIntelligenceLoader(BasePDFLoader):
|
||||
"""Lazy load given path as pages."""
|
||||
blob = Blob.from_path(self.file_path)
|
||||
yield from self.parser.parse(blob)
|
||||
|
||||
|
||||
# Legacy: only for backwards compatibility. Use PyPDFLoader instead
|
||||
PagedPDFSplitter = PyPDFLoader
|
||||
|
Reference in New Issue
Block a user