combine_docs() — langchain Function Reference
Architecture documentation for the combine_docs() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 3202613a_f900_a68d_c95f_de1c5e9326d8["combine_docs()"] 2f364d76_a69d_403d_0a63_04792fe626bb["BaseCombineDocumentsChain"] 3202613a_f900_a68d_c95f_de1c5e9326d8 -->|defined in| 2f364d76_a69d_403d_0a63_04792fe626bb 971650f7_5caa_f9b1_7442_8ddd96c90943["_call()"] 971650f7_5caa_f9b1_7442_8ddd96c90943 -->|calls| 3202613a_f900_a68d_c95f_de1c5e9326d8 style 3202613a_f900_a68d_c95f_de1c5e9326d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/combine_documents/base.py lines 100–111
def combine_docs(self, docs: list[Document], **kwargs: Any) -> tuple[str, dict]:
"""Combine documents into a single string.
Args:
docs: List[Document], the documents to combine
**kwargs: Other parameters to use in combining documents, often
other inputs to the prompt.
Returns:
The first element returned is the single string output. The second
element returned is a dictionary of other keys to return.
"""
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does combine_docs() do?
combine_docs() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/combine_documents/base.py.
Where is combine_docs() defined?
combine_docs() is defined in libs/langchain/langchain_classic/chains/combine_documents/base.py at line 100.
What calls combine_docs()?
combine_docs() is called by 1 function(s): _call.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free