LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coredocument_loadersbaseBaseLoader
    Class●Since v0.1

    BaseLoader

    Interface for document loader.

    Implementations should implement the lazy-loading method using generators to avoid loading all documents into memory at once.

    load is provided just for user convenience and should not be overridden.

    Copy
    BaseLoader()

    Bases

    ABC

    Methods

    method
    load

    Load data into Document objects.

    method
    aload

    Load data into Document objects.

    method
    load_and_split

    Load Document and split into chunks. Chunks are returned as Document.

    Danger

    Do not override this method. It should be considered to be deprecated!

    method
    lazy_load

    A lazy loader for Document.

    method
    alazy_load

    A lazy loader for Document.

    View source on GitHub