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_documentsstuffStuffDocumentsChainacombine_docs
    Methodโ—Since v1.5

    acombine_docs

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

    Parameters

    NameTypeDescription
    docs*list[Document]

    List of documents to join together into one variable

    callbacksCallbacks
    Default:None

    Optional callbacks to pass along

    **kwargsAny
    Default:{}

    Async stuff all documents into one prompt and pass to LLM.

    additional parameters to use to get inputs to LLMChain.