Skip to content

saee87d/Smart-Budget-Ollama

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Smart-Budget-Ollama

Python Version License Ollama Status

An AI-powered personal finance manager that understands natural language

Features β€’ Installation β€’ Usage β€’ Examples β€’ Contributing


πŸ“– About

Smart-Budget-Ollama is an intelligent command-line financial management system that leverages Ollama and Qwen 2.5 (14B) to process natural language inputs and convert them into structured financial data. No more manual categorization or complex interfacesβ€”just type what you spent or earned, and let AI do the rest!

This project demonstrates:

  • 🧠 LLM Integration for natural language understanding
  • πŸ’° Personal Finance Management with automatic categorization
  • πŸ“Š Data Analytics with visual reports and insights
  • 🎯 Goal Tracking to help you achieve financial objectives
  • πŸ”’ Privacy-First approach (all data stored locally)

Note: This project is open for collaboration! I'm looking for like-minded developers who want to build and learn together, not for employment.


✨ Features

πŸŽ™οΈ Natural Language Processing

  • Type expenses and income in plain English
  • AI automatically categorizes transactions
  • Supports multiple transaction formats
  • Handles currency conversions

πŸ“Š 15 Expense Categories

Restaurant Food β€’ Cafe & Beverages β€’ Groceries β€’ Public Transport
Taxi & Ride-share β€’ Gas & Parking β€’ Clothing β€’ Cosmetics
Medicine β€’ Utility Bills β€’ Internet & Mobile β€’ Entertainment
Books & Education β€’ Gifts β€’ Other

πŸ’΅ 9 Income Categories

Salary & Wages β€’ Bonus & Tips β€’ Sale of Goods β€’ Investment Income
Gift Received β€’ Loan & Borrowing β€’ Refund β€’ Part-time Work β€’ Other

πŸ“ˆ Analytical Queries

  • Budget Status: View your current financial state
  • Expense by Category: Detailed breakdown with visual bars
  • Income Summary: Track all your income sources
  • Recent Transactions: Quick overview of latest activities
  • Target Distance: See how far you are from your savings goals
  • Smart Reports: AI-powered financial insights

🎯 Goal Tracking

  • Set multiple financial goals (car, house, vacation, etc.)
  • Track progress automatically
  • Get notified when goals are achieved

πŸš€ Installation

Prerequisites

  • Python 3.8 or higher
  • Ollama installed and running
  • Qwen 2.5 (14B) model pulled

Step 1: Clone the Repository

git clone https://github.com/SAEED.S.M/Smart-Budget-Ollama.git
cd Smart-Budget-Ollama

Step 2: Install Dependencies

pip install -r requirements.txt

Step 3: Install Ollama and Pull Model

# Install Ollama (if not already installed)
# Visit: https://ollama.ai/

# Pull the Qwen 2.5 14B model
ollama pull qwen2.5:14b

Step 4: Run the Application

python financial_manager_usd.py

πŸ’‘ Usage

Setting Your Budget

πŸ’¬ I have $5000 in my account
βœ… Current budget updated: $5,000.00

Recording Expenses

πŸ’¬ Spent 45 dollars at Starbucks
βœ… Expense recorded: Cafe & Beverages - $45.00
πŸ’° Current Balance: $4,955.00

Recording Income

πŸ’¬ Received my salary today, 6000 dollars
βœ… Income recorded: Salary & Wages - $6,000.00
πŸ’° Current Balance: $10,955.00

Setting Financial Goals

πŸ’¬ I want to buy a MacBook Pro for 2500 dollars
βœ… New goal added: macbook with price $2,500.00
πŸ“Œ Current number of goals: 1

Analytical Queries

πŸ’¬ Show me my expenses by category
πŸ’¬ How far am I from my goals?
πŸ’¬ What's my budget status?
πŸ’¬ Show recent transactions
πŸ’¬ Summarize my income

πŸ“Έ Examples

Expense Breakdown

======================================================================
πŸ’Έ Total Expenses: $3,456.78
======================================================================
πŸ’° Current Balance: $7,498.22
======================================================================

πŸ“Š Expenses by Category:

 0. Restaurant Food           β”‚β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β”‚  24.5% β”‚     $847.12
 1. Cafe & Beverages          β”‚β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β”‚  16.2% β”‚     $560.00
 2. Supermarket & Groceries   β”‚β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β”‚  28.3% β”‚     $978.45
 3. Public Transportation     β”‚β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β”‚   5.8% β”‚     $200.50
...

Goal Progress

πŸ“Š Distance to Goals:
πŸ’° Current Budget: $7,498.22

1. macbook:
   🎯 Target Price: $2,500.00
   βœ… Goal achieved! ($4,998.22 extra)

2. car:
   🎯 Target Price: $15,000.00
   πŸ“‰ Remaining: $7,501.78 (50.0% remaining)

πŸ› οΈ Tech Stack

  • Python 3.8+ - Core programming language
  • Ollama - Local LLM inference engine
  • Qwen 2.5 (14B) - Large language model for NLU
  • CSV - Transaction storage
  • JSON - State management

πŸ“ Project Structure

Smart-Budget-Ollama/
β”‚
β”œβ”€β”€ financial_manager_usd.py    # Main application
β”œβ”€β”€ transactions.csv            # Transaction history (auto-generated)
β”œβ”€β”€ financial_state.json        # Budget & goals state (auto-generated)
β”œβ”€β”€ requirements.txt            # Python dependencies
β”œβ”€β”€ README.md                   # Project documentation
└── LICENSE                     # MIT License

🎯 Roadmap

  • Multi-currency support with real-time exchange rates
  • Export reports to PDF/Excel
  • Recurring transactions (subscriptions, bills)
  • Data visualization with charts and graphs
  • Budget limits and alerts
  • Mobile app integration
  • Cloud sync (optional, privacy-focused)
  • Custom AI model fine-tuning
  • Multi-user support for families
  • Integration with bank APIs (read-only)

🀝 Contributing

I'm looking for collaborators who want to learn and build together! This is not a job postingβ€”I'm seeking partners who are passionate about:

  • AI/LLM applications
  • Personal finance technology
  • Open-source development
  • Learning by doing

How to Contribute

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contribution Ideas

  • Add new analytical queries
  • Improve the AI prompt engineering
  • Create data visualizations
  • Add export features
  • Write tests
  • Improve documentation
  • Build a web interface
  • Create mobile app

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ‘¨β€πŸ’» Author

Saeed Samad Motlagh


🌟 Support

If you find this project helpful, please consider:

  • ⭐ Starring the repository
  • πŸ› Reporting bugs
  • πŸ’‘ Suggesting new features
  • 🀝 Contributing code
  • πŸ“’ Sharing with others

πŸ™ Acknowledgments

  • Ollama - For making local LLM inference accessible
  • Alibaba Cloud - For the amazing Qwen models
  • The open-source community - For inspiration and tools

⚠️ Disclaimer

This is a personal finance tool for educational and personal use. Always consult with financial professionals for serious financial decisions. Your data is stored locally and never transmitted to external servers (except for LLM inference through Ollama).


Built with ❀️ by developers, for developers

If you're interested in collaborating on this or future projects, reach out!

⬆ Back to Top

Releases

No releases published

Packages

 
 
 

Contributors