Home / Function/ test_regex_matching_with_ignore_case() — langchain Function Reference

test_regex_matching_with_ignore_case() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  22ab2899_fd70_a951_2196_e8ef38c998d8["test_regex_matching_with_ignore_case()"]
  7e7837bc_2a6a_704a_c39e_cf50718d6710["test_base.py"]
  22ab2899_fd70_a951_2196_e8ef38c998d8 -->|defined in| 7e7837bc_2a6a_704a_c39e_cf50718d6710
  style 22ab2899_fd70_a951_2196_e8ef38c998d8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/evaluation/regex_match/test_base.py lines 39–48

def test_regex_matching_with_ignore_case(
    regex_match_string_evaluator_ignore_case: RegexMatchStringEvaluator,
) -> None:
    prediction = "Mindy is the CTO"
    reference = "^mindy.*cto$"
    result = regex_match_string_evaluator_ignore_case.evaluate_strings(
        prediction=prediction,
        reference=reference,
    )
    assert result["score"] == 1.0

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free