Skip to main content
Every enrichment result includes confidence scores that indicate how certain Triqai is about each piece of data. In addition to numeric scores, Triqai provides reason tags that explain why a score is what it is. Understanding these helps you make better decisions about when to trust automated enrichment and when to require manual review.

What Are Confidence Scores?

Confidence scores are objects with two fields:
  • value: An integer from 0 to 100 representing certainty
  • reasons: An array of string tags explaining the score

Score Ranges

  • 0: No confidence (should not be used)
  • 50: Low confidence (uncertain match)
  • 75: Moderate confidence (likely correct)
  • 90: High confidence (very likely correct)
  • 100: Maximum confidence (definitive match)

Where Scores Appear

Confidence scores appear at multiple levels in the response:

Overall Transaction Confidence

This represents the overall quality of the enrichment across all modules.

Category Confidence

Per-Entity Confidence

Each entity in the entities array has its own confidence:

Confidence Reason Tags

Reason tags explain what contributed to or detracted from the confidence score. They are divided into several categories.

Global Reasons

These can appear on any entity type (merchant, location, or intermediary):

Category Reasons

Applied to the category confidence score (deterministic, code-only):

Merchant Reasons

Applied to merchant entity confidence (global + merchant-specific):

Location Reasons

Applied to location entity confidence (global + location-specific):

Intermediary Reasons

Applied to intermediary entity confidence (global + intermediary-specific):

Score Interpretation

Interpretation: Highly reliable for automated decisions When you see this: - Transaction string closely matches known patterns - Multiple data points confirm the identification - Entity is well-known with clear signatures Common reasons: results_consensus, name_closely_matched, known_processor_match Recommended action: Use directly in your application without review

Confidence by Entity Type

Different entity types typically have different confidence distributions:

Using Confidence in Your Application

Threshold-Based Logic

Using Reason Tags

Displaying Confidence to Users

Filtering by Confidence

Best Practices

Different applications have different tolerance for errors. A personal finance app might accept lower confidence than a compliance system.
If incorrect categorization has serious consequences, require higher confidence thresholds or manual review.
Don’t just check the numeric score reason tags like known_processor_match or results_contradict give you richer context for decision-making.
Monitor the confidence scores you’re seeing. Consistently low scores for certain transaction types might indicate a need for different handling.
Use the Issue Report API to flag incorrect enrichments. This helps improve accuracy over time.

Next Steps

Error Handling

Handle errors and partial results gracefully

Report Issues

Report enrichment issues to improve accuracy