_call() — langchain Function Reference
Architecture documentation for the _call() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 971650f7_5caa_f9b1_7442_8ddd96c90943["_call()"] 2f364d76_a69d_403d_0a63_04792fe626bb["BaseCombineDocumentsChain"] 971650f7_5caa_f9b1_7442_8ddd96c90943 -->|defined in| 2f364d76_a69d_403d_0a63_04792fe626bb 2935460b_bf17_a686_f1f0_6e58ef3057d8["_call()"] 2935460b_bf17_a686_f1f0_6e58ef3057d8 -->|calls| 971650f7_5caa_f9b1_7442_8ddd96c90943 3202613a_f900_a68d_c95f_de1c5e9326d8["combine_docs()"] 971650f7_5caa_f9b1_7442_8ddd96c90943 -->|calls| 3202613a_f900_a68d_c95f_de1c5e9326d8 2935460b_bf17_a686_f1f0_6e58ef3057d8["_call()"] 971650f7_5caa_f9b1_7442_8ddd96c90943 -->|calls| 2935460b_bf17_a686_f1f0_6e58ef3057d8 style 971650f7_5caa_f9b1_7442_8ddd96c90943 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/combine_documents/base.py lines 131–147
def _call(
self,
inputs: dict[str, list[Document]],
run_manager: CallbackManagerForChainRun | None = None,
) -> dict[str, str]:
"""Prepare inputs, call combine docs, prepare outputs."""
_run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager()
docs = inputs[self.input_key]
# Other keys are assumed to be needed for LLM prediction
other_keys = {k: v for k, v in inputs.items() if k != self.input_key}
output, extra_return_dict = self.combine_docs(
docs,
callbacks=_run_manager.get_child(),
**other_keys,
)
extra_return_dict[self.output_key] = output
return extra_return_dict
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does _call() do?
_call() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/combine_documents/base.py.
Where is _call() defined?
_call() is defined in libs/langchain/langchain_classic/chains/combine_documents/base.py at line 131.
What does _call() call?
_call() calls 2 function(s): _call, combine_docs.
What calls _call()?
_call() 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