LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    Standard Tests
    Text Splitters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    Standard Tests
    Text Splitters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Language
    Theme
    Pythonlangchain-classicchainscombine_documentsbaseBaseCombineDocumentsChaincombine_docs
    Methodā—Since v1.0

    combine_docs

    Copy
    combine_docs(
      self,
      docs: list[Document],
      **kwargs: Any = {}
    ) 
    View source on GitHub
    ->
    tuple
    [
    str
    ,
    dict
    ]

    Parameters

    NameTypeDescription
    docs*list[Document]
    **kwargsAny
    Default:{}

    Combine documents into a single string.

    List[Document], the documents to combine

    Other parameters to use in combining documents, often other inputs to the prompt.