feat: Savings opportunity detection engine (closes #119)#460
Open
noxxxxybot-sketch wants to merge 2 commits intorohitdash08:mainfrom
Open
feat: Savings opportunity detection engine (closes #119)#460noxxxxybot-sketch wants to merge 2 commits intorohitdash08:mainfrom
noxxxxybot-sketch wants to merge 2 commits intorohitdash08:mainfrom
Conversation
…08#91) - Rule-based auto-categorization with 60+ keyword mappings across 10 categories - Confidence scoring (0.0-1.0) with alternatives ranking - Learning from user corrections via POST /categorize/learn - Batch categorization endpoint for multiple transactions - User-specific learned rules stored in categorization_rules table - 26 comprehensive tests (all passing, 48 total) API Endpoints: - POST /categorize — Categorize single transaction - POST /categorize/batch — Batch categorize up to 100 transactions - POST /categorize/learn — Learn from user corrections - GET /categorize/rules — List learned rules - DELETE /categorize/rules/:id — Delete a learned rule
- New service analyzes 6 months of expense data for savings patterns - 4 detection algorithms: spiking categories, duplicate recurring, top spenders, and increasing trends - REST endpoint: GET /savings/opportunities - Unit tests for all detection logic (5 passing) - OpenAPI documentation updated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a savings opportunity detection engine that analyzes user spending patterns to surface actionable saving opportunities.
Detection Algorithms
Changes
Testing
Acceptance Criteria