_prepare_output() — langchain Function Reference
Architecture documentation for the _prepare_output() function in eval_chain.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8d13c038_c9d1_0607_fe88_3a2eaf8195b9["_prepare_output()"] 6997d03c_6524_f97b_7017_b2f56540bc07["PairwiseStringEvalChain"] 8d13c038_c9d1_0607_fe88_3a2eaf8195b9 -->|defined in| 6997d03c_6524_f97b_7017_b2f56540bc07 69c11dee_1bd0_daca_16bd_24a2df0fec66["_evaluate_string_pairs()"] 69c11dee_1bd0_daca_16bd_24a2df0fec66 -->|calls| 8d13c038_c9d1_0607_fe88_3a2eaf8195b9 a98e0fa5_2b25_b62a_6940_98a36013ab00["_aevaluate_string_pairs()"] a98e0fa5_2b25_b62a_6940_98a36013ab00 -->|calls| 8d13c038_c9d1_0607_fe88_3a2eaf8195b9 style 8d13c038_c9d1_0607_fe88_3a2eaf8195b9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/comparison/eval_chain.py lines 311–316
def _prepare_output(self, result: dict) -> dict:
"""Prepare the output."""
parsed = result[self.output_key]
if RUN_KEY in result:
parsed[RUN_KEY] = result[RUN_KEY]
return parsed
Domain
Subdomains
Source
Frequently Asked Questions
What does _prepare_output() do?
_prepare_output() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/comparison/eval_chain.py.
Where is _prepare_output() defined?
_prepare_output() is defined in libs/langchain/langchain_classic/evaluation/comparison/eval_chain.py at line 311.
What calls _prepare_output()?
_prepare_output() is called by 2 function(s): _aevaluate_string_pairs, _evaluate_string_pairs.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free