test_default_exact_matching() — langchain Function Reference
Architecture documentation for the test_default_exact_matching() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a35e1a3d_2d7a_8ec6_11c0_459b6fe8e93a["test_default_exact_matching()"] ec46b5e5_af3e_3747_0013_c32f95bf3c99["test_base.py"] a35e1a3d_2d7a_8ec6_11c0_459b6fe8e93a -->|defined in| ec46b5e5_af3e_3747_0013_c32f95bf3c99 style a35e1a3d_2d7a_8ec6_11c0_459b6fe8e93a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py lines 18–34
def test_default_exact_matching(
exact_match_string_evaluator: ExactMatchStringEvaluator,
) -> None:
prediction = "Mindy is the CTO"
reference = "Mindy is the CTO"
result = exact_match_string_evaluator.evaluate_strings(
prediction=prediction,
reference=reference,
)
assert result["score"] == 1.0
reference = "Mindy is the CEO"
result = exact_match_string_evaluator.evaluate_strings(
prediction=prediction,
reference=reference,
)
assert result["score"] == 0.0
Domain
Subdomains
Source
Frequently Asked Questions
What does test_default_exact_matching() do?
test_default_exact_matching() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py.
Where is test_default_exact_matching() defined?
test_default_exact_matching() is defined in libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py at line 18.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free