_acall() — langchain Function Reference
Architecture documentation for the _acall() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 67b45def_893b_6cc7_ba13_893c80642403["_acall()"] bff7d7ab_1e8c_c321_eeec_49e7e15eca13["StringDistanceEvalChain"] 67b45def_893b_6cc7_ba13_893c80642403 -->|defined in| bff7d7ab_1e8c_c321_eeec_49e7e15eca13 26aeaa7f_8a64_e9f8_b6bf_e561c2708a27["_acall()"] 26aeaa7f_8a64_e9f8_b6bf_e561c2708a27 -->|calls| 67b45def_893b_6cc7_ba13_893c80642403 5ca4db2b_adc2_0733_78d9_bd519d1ec89b["compute_metric()"] 67b45def_893b_6cc7_ba13_893c80642403 -->|calls| 5ca4db2b_adc2_0733_78d9_bd519d1ec89b 26aeaa7f_8a64_e9f8_b6bf_e561c2708a27["_acall()"] 67b45def_893b_6cc7_ba13_893c80642403 -->|calls| 26aeaa7f_8a64_e9f8_b6bf_e561c2708a27 style 67b45def_893b_6cc7_ba13_893c80642403 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/string_distance/base.py lines 233–247
async def _acall(
self,
inputs: dict[str, Any],
run_manager: AsyncCallbackManagerForChainRun | None = None,
) -> dict[str, Any]:
"""Compute the string distance between the prediction and the reference.
Args:
inputs: The input values.
run_manager: The callback manager.
Returns:
The evaluation results containing the score.
"""
return {"score": self.compute_metric(inputs["reference"], inputs["prediction"])}
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 233.
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