Home / Function/ input_keys() — langchain Function Reference

input_keys() — langchain Function Reference

Architecture documentation for the input_keys() function in stuff.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  8ae97478_71e8_9077_d2bb_45bdcb4af8e6["input_keys()"]
  2d0480d1_fbf6_c0df_d443_92c8437d1fff["StuffDocumentsChain"]
  8ae97478_71e8_9077_d2bb_45bdcb4af8e6 -->|defined in| 2d0480d1_fbf6_c0df_d443_92c8437d1fff
  style 8ae97478_71e8_9077_d2bb_45bdcb4af8e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/combine_documents/stuff.py lines 195–199

    def input_keys(self) -> list[str]:
        extra_keys = [
            k for k in self.llm_chain.input_keys if k != self.document_variable_name
        ]
        return super().input_keys + extra_keys

Subdomains

Frequently Asked Questions

What does input_keys() do?
input_keys() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/combine_documents/stuff.py.
Where is input_keys() defined?
input_keys() is defined in libs/langchain/langchain_classic/chains/combine_documents/stuff.py at line 195.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free