Home / Function/ test_exact_matching_with_ignore_case() — langchain Function Reference

test_exact_matching_with_ignore_case() — langchain Function Reference

Architecture documentation for the test_exact_matching_with_ignore_case() function in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  e9ceda83_9e14_9b83_58f5_a8e30e1fe73e["test_exact_matching_with_ignore_case()"]
  ec46b5e5_af3e_3747_0013_c32f95bf3c99["test_base.py"]
  e9ceda83_9e14_9b83_58f5_a8e30e1fe73e -->|defined in| ec46b5e5_af3e_3747_0013_c32f95bf3c99
  style e9ceda83_9e14_9b83_58f5_a8e30e1fe73e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py lines 37–53

def test_exact_matching_with_ignore_case(
    exact_match_string_evaluator_ignore_case: ExactMatchStringEvaluator,
) -> None:
    prediction = "Mindy is the CTO"
    reference = "mindy is the cto"
    result = exact_match_string_evaluator_ignore_case.evaluate_strings(
        prediction=prediction,
        reference=reference,
    )
    assert result["score"] == 1.0

    reference = "mindy is the CEO"
    result = exact_match_string_evaluator_ignore_case.evaluate_strings(
        prediction=prediction,
        reference=reference,
    )
    assert result["score"] == 0.0

Domain

Subdomains

Frequently Asked Questions

What does test_exact_matching_with_ignore_case() do?
test_exact_matching_with_ignore_case() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py.
Where is test_exact_matching_with_ignore_case() defined?
test_exact_matching_with_ignore_case() is defined in libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py at line 37.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free