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 9b03e327_286a_3c56_909c_8aba5879145b["output_keys()"] 5aa1201d_23fd_f122_acb5_563cb1cc3cb3["BaseQAWithSourcesChain"] 9b03e327_286a_3c56_909c_8aba5879145b -->|defined in| 5aa1201d_23fd_f122_acb5_563cb1cc3cb3 style 9b03e327_286a_3c56_909c_8aba5879145b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/qa_with_sources/base.py lines 116–121
def output_keys(self) -> list[str]:
"""Return output key."""
_output_keys = [self.answer_key, self.sources_answer_key]
if self.return_source_documents:
_output_keys = [*_output_keys, "source_documents"]
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/qa_with_sources/base.py.
Where is output_keys() defined?
output_keys() is defined in libs/langchain/langchain_classic/chains/qa_with_sources/base.py at line 116.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free