Home / Function/ __init__() — langchain Function Reference

__init__() — langchain Function Reference

Architecture documentation for the __init__() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  000dc72a_c63b_b445_954d_cff39d219155["__init__()"]
  26b82b02_a8ed_6746_a5bb_47d69953b766["ExactMatchStringEvaluator"]
  000dc72a_c63b_b445_954d_cff39d219155 -->|defined in| 26b82b02_a8ed_6746_a5bb_47d69953b766
  style 000dc72a_c63b_b445_954d_cff39d219155 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/evaluation/exact_match/base.py lines 26–44

    def __init__(
        self,
        *,
        ignore_case: bool = False,
        ignore_punctuation: bool = False,
        ignore_numbers: bool = False,
        **_: Any,
    ):
        """Initialize the `ExactMatchStringEvaluator`.

        Args:
            ignore_case: Whether to ignore case when comparing strings.
            ignore_punctuation: Whether to ignore punctuation when comparing strings.
            ignore_numbers: Whether to ignore numbers when comparing strings.
        """
        super().__init__()
        self.ignore_case = ignore_case
        self.ignore_punctuation = ignore_punctuation
        self.ignore_numbers = ignore_numbers

Domain

Subdomains

Frequently Asked Questions

What does __init__() do?
__init__() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/exact_match/base.py.
Where is __init__() defined?
__init__() is defined in libs/langchain/langchain_classic/evaluation/exact_match/base.py at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free