What Are Confidence Scores?
Confidence scores are integer values from 0 to 100 that represent Triqai’s certainty about an enrichment result:- 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 are provided at multiple levels:Overall Transaction Confidence
Category Confidence
Per-Enrichment Confidence
Each enrichment module has its own confidence score:Score Interpretation
- 90-100: Very High
- 70-89: High
- 50-69: Moderate
- 0-49: Low
Interpretation: Highly reliable for automated decisionsWhen you see this:
- Transaction string closely matches known patterns
- Multiple data points confirm the identification
- Entity is well-known with clear signatures
Confidence by Entity Type
Different entity types typically have different confidence distributions:| Entity | Typical Range | Notes |
|---|---|---|
| Merchant | 70-99 | Well-known merchants score higher |
| Location | 50-95 | Store-level matching is harder |
| Category | 75-99 | Based on merchant + context |
| Payment Processor | 90-99 | Distinct patterns, high accuracy |
| P2P Platform | 85-99 | Clear signatures per platform |
Factors Affecting Confidence
Positive Factors
- Clear merchant identifiers in transaction string
- Location hints (city, state, store number)
- Common, well-known merchants
- Standard transaction formats
- Multiple corroborating signals
Negative Factors
- Truncated transaction descriptions
- Unknown or rare merchants
- Generic payment processor strings
- Ambiguous location data
- Unusual character encodings
Using Confidence in Your Application
Threshold-Based Logic
Displaying Confidence to Users
Filtering by Confidence
Null Confidence Values
Whenconfidence is null, it means:
- The enrichment module wasn’t applicable (
status: "not_applicable") - The module failed to run (
status: "no_match"due to error) - No meaningful confidence could be calculated
Best Practices
Set appropriate thresholds for your use case
Set appropriate thresholds for your use case
Different applications have different tolerance for errors. A personal finance app might accept lower confidence than a compliance system.
Consider the cost of errors
Consider the cost of errors
If incorrect categorization has serious consequences, require higher confidence thresholds or manual review.
Use per-field confidence
Use per-field confidence
You might trust merchant identification but want to verify location. Check individual enrichment confidences, not just the overall score.
Track confidence distributions
Track confidence distributions
Monitor the confidence scores you’re seeing. Consistently low scores for certain transaction types might indicate a need for different handling.
Report issues for low-confidence matches
Report issues for low-confidence matches
Use the Issue Report API to flag incorrect enrichments. This helps improve accuracy over time.