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_loadersbaseBaseLoaderload_and_split
    Methodā—Since v0.1

    load_and_split

    Copy
    load_and_split(
        self,
        text_splitter: TextSplitter | None = None,
    ) -> list[Document]
    View source on GitHub

    Parameters

    NameTypeDescription
    text_splitterTextSplitter | None
    Default:None

    TextSplitter instance to use for splitting documents.

    Defaults to RecursiveCharacterTextSplitter.

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

    Danger

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