Accuracy ScorerRule-Based

ExactMatchScorer

Evaluates whether the prediction exactly matches the ground truth. Strictest form of accuracy measurement for tasks requiring exact output like code generation or classification labels.

Overview

Evaluates whether the prediction exactly matches the ground truth. Strictest form of accuracy measurement for tasks requiring exact output like code generation or classification labels.

accuracyrule-basedbenchmarkexact-matchclassification

Use Cases

  • Accuracy benchmarking and validation

How It Works

This scorer uses deterministic rule-based evaluation to validate outputs against specific criteria. It applies predefined rules and patterns to assess the response, providing consistent and reproducible results without requiring LLM inference.

Input Schema

ParameterTypeRequiredDescription
predictionstrYesGenerated output
ground_truthstrYesExpected exact output

Output Schema

FieldTypeDescription
scorefloat10.0 if exact match, 0.0 otherwise
passedboolTrue if exact match
reasoningstrMatch result
metadatadictComparison details

Score Interpretation

Default threshold: 10/10

10Perfect MatchOutput exactly matches expected format/value
0No MatchOutput does not match expected format/value

Frequently Asked Questions

When should I use this scorer?

Use ExactMatchScorer when you need to evaluate accuracy and rule-based aspects of your AI outputs. It's particularly useful for accuracy benchmarking and validation.

Why does this scorer need expected output?

This scorer compares the generated output against a known expected result to calculate accuracy metrics.

Can I customize the threshold?

Yes, the default threshold of 10 can be customized when configuring the scorer.

Quick Info

CategoryAccuracy
Evaluation TypeRule-Based
Requires Expected OutputYes
Default Threshold10/10

Ready to try ExactMatchScorer?

Start evaluating your AI agents with Noveum.ai's comprehensive scorer library.

Explore More Scorers

Discover 68+ LLM-as-Judge scorers for comprehensive AI evaluation