Skip to content

feat: add natural language finance query endpoint#884

Open
Mohye24k wants to merge 1 commit intorohitdash08:mainfrom
Mohye24k:fix/issue-74-nlquery
Open

feat: add natural language finance query endpoint#884
Mohye24k wants to merge 1 commit intorohitdash08:mainfrom
Mohye24k:fix/issue-74-nlquery

Conversation

@Mohye24k
Copy link
Copy Markdown

Summary

  • Add POST /query endpoint that accepts natural language questions about finances
  • Parse questions using regex patterns to match: "how much spent", "spent on X", "income this month", "biggest expense"
  • Return structured answer with human-readable text and data payload
  • Graceful fallback with suggestions for unrecognized queries
  • Add comprehensive test suite (auth, how much query, unknown query, category query)
  • Add TypeScript API client (app/src/api/nlquery.ts)
  • Register blueprint in __init__.py

Test plan

  • Auth required returns 401
  • "how much did I spend this month?" returns correct total
  • "how much did I spend on food?" matches category and returns total
  • Unknown questions return helpful suggestions
  • Empty question returns 400

/claim #74
Fixes #74

- Add POST /query route that parses natural language questions
- Support patterns: how much spent, spent on X, income, biggest expense
- Return structured answer + data for matched patterns
- Graceful fallback for unrecognized queries
- Add tests for auth, how much query, unknown query, category query
- Add TypeScript API client

Fixes rohitdash08#74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Natural Language Finance Query

1 participant