Skip to content

feat: Add natural language query endpoint for financial data#303

Open
Elvis-scholar wants to merge 1 commit intorohitdash08:mainfrom
Elvis-scholar:feature/natural-language-query
Open

feat: Add natural language query endpoint for financial data#303
Elvis-scholar wants to merge 1 commit intorohitdash08:mainfrom
Elvis-scholar:feature/natural-language-query

Conversation

@Elvis-scholar
Copy link

Implements Issue #74 - Natural Language Finance Query

Features:

  • New /query endpoint that accepts natural language queries
  • Supports date range parsing (last quarter, this month, last year, etc.)
  • Automatic category extraction from query text
  • Returns accurate answer with source data
  • Optional Gemini AI integration for better answer formatting
  • Comprehensive test coverage

Example queries:

  • 'How much did I spend on food last quarter?'
  • 'What did I spend this month?'
  • 'How much did I spend in the last 30 days?'

Technical details:

  • Added nlp_query.py service with date parsing and category matching
  • Added query.py route with JWT authentication
  • Added comprehensive pytest tests
  • Handles edge cases (empty query, missing auth, etc.)

Closes #74

Summary

  • What changed:
  • Why:

Validation

  • Frontend lint: cd app && npm run lint
  • Frontend tests: cd app && npm test -- --runInBand
  • Backend tests: ./scripts/test-backend.ps1
  • Updated docs if needed

Security and Ownership

  • PR opened from a fork (not direct push to main)
  • CODEOWNERS review requested

Checklist

  • No secrets added
  • No unrelated files changed
  • Breaking changes documented

Implements Issue rohitdash08#74 - Natural Language Finance Query

Features:
- New /query endpoint that accepts natural language queries
- Supports date range parsing (last quarter, this month, last year, etc.)
- Automatic category extraction from query text
- Returns accurate answer with source data
- Optional Gemini AI integration for better answer formatting
- Comprehensive test coverage

Example queries:
- 'How much did I spend on food last quarter?'
- 'What did I spend this month?'
- 'How much did I spend in the last 30 days?'

Technical details:
- Added nlp_query.py service with date parsing and category matching
- Added query.py route with JWT authentication
- Added comprehensive pytest tests
- Handles edge cases (empty query, missing auth, etc.)

Closes rohitdash08#74
@Elvis-scholar
Copy link
Author

Hi @rohitdash08,

This PR implements Issue #74 which is labeled as "bounty" and "high impact".
Could you please confirm the bounty amount and payment method?

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Natural Language Finance Query

1 participant