_acall() — langchain Function Reference
Architecture documentation for the _acall() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 26aeaa7f_8a64_e9f8_b6bf_e561c2708a27["_acall()"] 673d639d_36b0_87dd_ead9_5b65d00daaca["PairwiseStringDistanceEvalChain"] 26aeaa7f_8a64_e9f8_b6bf_e561c2708a27 -->|defined in| 673d639d_36b0_87dd_ead9_5b65d00daaca 67b45def_893b_6cc7_ba13_893c80642403["_acall()"] 67b45def_893b_6cc7_ba13_893c80642403 -->|calls| 26aeaa7f_8a64_e9f8_b6bf_e561c2708a27 5ca4db2b_adc2_0733_78d9_bd519d1ec89b["compute_metric()"] 26aeaa7f_8a64_e9f8_b6bf_e561c2708a27 -->|calls| 5ca4db2b_adc2_0733_78d9_bd519d1ec89b 67b45def_893b_6cc7_ba13_893c80642403["_acall()"] 26aeaa7f_8a64_e9f8_b6bf_e561c2708a27 -->|calls| 67b45def_893b_6cc7_ba13_893c80642403 style 26aeaa7f_8a64_e9f8_b6bf_e561c2708a27 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/string_distance/base.py lines 366–382
async def _acall(
self,
inputs: dict[str, Any],
run_manager: AsyncCallbackManagerForChainRun | None = None,
) -> dict[str, Any]:
"""Asynchronously 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 _acall() do?
_acall() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/string_distance/base.py.
Where is _acall() defined?
_acall() is defined in libs/langchain/langchain_classic/evaluation/string_distance/base.py at line 366.
What does _acall() call?
_acall() calls 2 function(s): _acall, compute_metric.
What calls _acall()?
_acall() is called by 1 function(s): _acall.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free