LangChain loaders

wojciech achtelik
Wojciech Achtelik
AI Engineer Lead
June 27, 2025
Glossary Category
LLM

LangChain loaders are specialized components that facilitate the loading and conversion of data from diverse sources and formats into standardized Document objects for use in LLM applications. These classes provide a “load” method for loading data as documents from configured sources and optionally implement “lazy load” functionality for memory-efficient data processing. Document loaders inherit from the BaseLoader interface, which defines standard methods including load, lazy_load, and load_and_split. LangChain provides various loader types including TextLoader for plain text documents, CSVLoader for CSV files, PDF loaders for PDF documents, and specialized loaders for cloud providers and social media platforms. The DirectoryLoader enables batch processing of files from filesystem directories with wildcard pattern support. These loaders convert raw data into Document objects containing content and metadata, enabling seamless integration with LangChain‘s processing pipeline.