output_keys() — langchain Function Reference
Architecture documentation for the output_keys() function in map_reduce.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f3269314_efd4_d5a1_db1f_fef2e0332bd3["output_keys()"] a22a5836_e793_27ca_7ffe_21cb92057ad5["MapReduceDocumentsChain"] f3269314_efd4_d5a1_db1f_fef2e0332bd3 -->|defined in| a22a5836_e793_27ca_7ffe_21cb92057ad5 style f3269314_efd4_d5a1_db1f_fef2e0332bd3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/combine_documents/map_reduce.py lines 127–132
def output_keys(self) -> list[str]:
"""Expect input key."""
_output_keys = super().output_keys
if self.return_intermediate_steps:
_output_keys = [*_output_keys, "intermediate_steps"]
return _output_keys
Domain
Subdomains
Source
Frequently Asked Questions
What does output_keys() do?
output_keys() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/combine_documents/map_reduce.py.
Where is output_keys() defined?
output_keys() is defined in libs/langchain/langchain_classic/chains/combine_documents/map_reduce.py at line 127.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free