ExactMatch Class — langchain Architecture
Architecture documentation for the ExactMatch class in config.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 08c94789_fba2_21e6_a1c7_66e2e55f447e["ExactMatch"] 5528a09f_3682_a8b0_958b_cd9a898b6e3c["SingleKeyEvalConfig"] 08c94789_fba2_21e6_a1c7_66e2e55f447e -->|extends| 5528a09f_3682_a8b0_958b_cd9a898b6e3c ba7f9415_541a_d99f_0400_a688a10212b0["config.py"] 08c94789_fba2_21e6_a1c7_66e2e55f447e -->|defined in| ba7f9415_541a_d99f_0400_a688a10212b0
Relationship Graph
Source Code
libs/langchain/langchain_classic/smith/evaluation/config.py lines 223–235
class ExactMatch(SingleKeyEvalConfig):
"""Configuration for an exact match string evaluator.
Attributes:
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.
"""
evaluator_type: EvaluatorType = EvaluatorType.EXACT_MATCH
ignore_case: bool = False
ignore_punctuation: bool = False
ignore_numbers: bool = False
Extends
Source
Frequently Asked Questions
What is the ExactMatch class?
ExactMatch is a class in the langchain codebase, defined in libs/langchain/langchain_classic/smith/evaluation/config.py.
Where is ExactMatch defined?
ExactMatch is defined in libs/langchain/langchain_classic/smith/evaluation/config.py at line 223.
What does ExactMatch extend?
ExactMatch extends SingleKeyEvalConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free