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

    Chat LangChain

    What can I help with?

    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.5

    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.