_call() — langchain Function Reference
Architecture documentation for the _call() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD cf6188b8_533c_de49_feb5_b7617d9319ea["_call()"] 673d639d_36b0_87dd_ead9_5b65d00daaca["PairwiseStringDistanceEvalChain"] cf6188b8_533c_de49_feb5_b7617d9319ea -->|defined in| 673d639d_36b0_87dd_ead9_5b65d00daaca b38504e1_941f_08be_f726_d0f7bc1ce3fa["_call()"] b38504e1_941f_08be_f726_d0f7bc1ce3fa -->|calls| cf6188b8_533c_de49_feb5_b7617d9319ea 5ca4db2b_adc2_0733_78d9_bd519d1ec89b["compute_metric()"] cf6188b8_533c_de49_feb5_b7617d9319ea -->|calls| 5ca4db2b_adc2_0733_78d9_bd519d1ec89b b38504e1_941f_08be_f726_d0f7bc1ce3fa["_call()"] cf6188b8_533c_de49_feb5_b7617d9319ea -->|calls| b38504e1_941f_08be_f726_d0f7bc1ce3fa style cf6188b8_533c_de49_feb5_b7617d9319ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/string_distance/base.py lines 347–363
def _call(
self,
inputs: dict[str, Any],
run_manager: CallbackManagerForChainRun | None = None,
) -> dict[str, Any]:
"""Compute the string distance between two predictions.
Args:
inputs: The input values.
run_manager: The callback manager.
Returns:
The evaluation results containing the score.
"""
return {
"score": self.compute_metric(inputs["prediction"], inputs["prediction_b"]),
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does _call() do?
_call() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/string_distance/base.py.
Where is _call() defined?
_call() is defined in libs/langchain/langchain_classic/evaluation/string_distance/base.py at line 347.
What does _call() call?
_call() calls 2 function(s): _call, compute_metric.
What calls _call()?
_call() is called by 1 function(s): _call.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free