Home / Class/ RegexMatch Class — langchain Architecture

RegexMatch Class — langchain Architecture

Architecture documentation for the RegexMatch class in config.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  e500d20f_d0d6_c171_e980_b48914cda6ba["RegexMatch"]
  5528a09f_3682_a8b0_958b_cd9a898b6e3c["SingleKeyEvalConfig"]
  e500d20f_d0d6_c171_e980_b48914cda6ba -->|extends| 5528a09f_3682_a8b0_958b_cd9a898b6e3c
  ba7f9415_541a_d99f_0400_a688a10212b0["config.py"]
  e500d20f_d0d6_c171_e980_b48914cda6ba -->|defined in| ba7f9415_541a_d99f_0400_a688a10212b0

Relationship Graph

Source Code

libs/langchain/langchain_classic/smith/evaluation/config.py lines 237–245

    class RegexMatch(SingleKeyEvalConfig):
        """Configuration for a regex match string evaluator.

        Attributes:
            flags: The flags to pass to the regex. Example: `re.IGNORECASE`.
        """

        evaluator_type: EvaluatorType = EvaluatorType.REGEX_MATCH
        flags: int = 0

Frequently Asked Questions

What is the RegexMatch class?
RegexMatch is a class in the langchain codebase, defined in libs/langchain/langchain_classic/smith/evaluation/config.py.
Where is RegexMatch defined?
RegexMatch is defined in libs/langchain/langchain_classic/smith/evaluation/config.py at line 237.
What does RegexMatch extend?
RegexMatch extends SingleKeyEvalConfig.

Analyze Your Own Codebase

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

Try Supermodel Free