Back to Decisions
Use GPT-4 for spending categorisation
AcceptedTom Bakker2024-02-18
aicategorisationbackend
Context
Why this decision needed to be made
Transaction descriptions from banks are often cryptic (e.g. 'AMS NL 1234'). Need to auto-categorise them accurately for budget tracking.
Options Considered
Comparison of available options
| Option | Pros | Cons | Chosen |
|---|---|---|---|
GPT-4 (OpenAI)Selected |
|
| |
Rule-based regex |
|
| — |
Fine-tuned BERT |
|
| — |
Outcome
What was decided
GPT-4 for categorisation with local caching layer
Rationale
Why this option was chosen
Accuracy is critical for user trust. GPT-4 achieves 94% accuracy in testing. Added Redis cache to avoid re-classifying known merchants.
Linked Requirements
Requirements affected by this decision
Referenced Files
Documents related to this decision