lazy_load
Function
Implements the lazy_load method of the LangChain base class to load and parse markdown files.
- The document must be in markdown format; otherwise, the parsing fails and an exception is thrown.
- The document path must be valid and must exist, and the document size must be less than or equal to 100 MB. Otherwise, the parsing fails and an exception is thrown.
- If the markdown document contains images and the vlm parameter exists, a large vision model is called to generate image summaries (only local images are supported).
- If the markdown document contains tables, the tables are serialized into a row-based key-value. The header row defines the keys, while subsequent rows provide the values. Key-value pairs are joined by colons (:), columns are delimited by commas (,), rows are separated by semicolons (;) and the entire string concludes with a period (.).
Prototype
def lazy_load()
Return Value
Data Type |
Description |
|---|---|
Iterator[Document] |
Iterator of the Document object in LangChain. |
Parent topic: MarkdownLoader