lazy_load
Function
Implements the lazy_load method of the LangChain base class to load and parse PDF files.
- The document must be in PDF format; otherwise, the parsing fails and an exception is thrown.
- The document path must be valid and must exist. The number of pages must be less than or equal to 1,000, and the document size must be less than or equal to 100 MB. Otherwise, the parsing fails and an exception is thrown.
Prototype
def lazy_load()
Return Value
Data Type |
Description |
|---|---|
Iterator[Document] |
Iterator of the Document object in LangChain. |
Parent topic: PdfLoader