Home / Function/ output_keys() — langchain Function Reference

output_keys() — langchain Function Reference

Architecture documentation for the output_keys() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6979a294_bf2a_d42f_d1c6_edc1d1dfb09c["output_keys()"]
  4ca44101_1e0d_43e9_f420_35c5afe4173a["HypotheticalDocumentEmbedder"]
  6979a294_bf2a_d42f_d1c6_edc1d1dfb09c -->|defined in| 4ca44101_1e0d_43e9_f420_35c5afe4173a
  style 6979a294_bf2a_d42f_d1c6_edc1d1dfb09c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/hyde/base.py lines 46–50

    def output_keys(self) -> list[str]:
        """Output keys for Hyde's LLM chain."""
        if isinstance(self.llm_chain, LLMChain):
            return self.llm_chain.output_keys
        return ["text"]

Subdomains

Frequently Asked Questions

What does output_keys() do?
output_keys() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/hyde/base.py.
Where is output_keys() defined?
output_keys() is defined in libs/langchain/langchain_classic/chains/hyde/base.py at line 46.

Analyze Your Own Codebase

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

Try Supermodel Free