Your AI-powered assistant for smarter financial planning, document analysis, and portfolio recommendations.
A web app that:
Financial literacy is low, and most people struggle with:
Understanding complex documents like balance sheets and contracts
Knowing how to start investing based on their personal income/expenses
Getting trustworthy, AI-driven financial guidance
Personal Finance Advisor is a 3-in-1 tool that:
Acts as a financial chatbot using RAG (Retrieval-Augmented Generation)
Classifies and analyzes uploaded documents with a risk flag system
Offers investment strategies tailored to your income, goals, and risk appetite
Gemini based AI chatbot
Trained on curated financial knowledge base
Explains terms like SIP, tax-saving options, loans, etc.
Upload PDFs, DOCX, or images
Auto-detects type (invoice, contract, balance sheet)
Extracts key terms: amount, date, interest rate, penalties
Flags risks (hidden fees, lock-ins)
Generates a structured summary + risk report
Takes user input (age, income, expenses, loans, risk level)
Suggests diversified portfolios
Gives actionable financial planning advice
project/
โ
โโโ main.py # Unified Streamlit app integrating all 3 modules
โโโ advisor_app.py # Standalone Streamlit UI for financial advisor
โโโ rag_chatbot_app.py # Standalone Streamlit UI for RAG chatbot
โโโ pdf_ai_app.py # Standalone Streamlit UI for document analysis
โ
โโโ financial_advisor_api.py # Backend logic for financial strategy module
โโโ rag_chatbot_api.py # Backend logic for RAG chatbot
โโโ pdf_ai_api.py # Backend logic for document analysis
โ
โโโ advisor_model.pt # Saved PyTorch model for strategy module
โโโ rag_model.pt # Saved model for RAG chatbot
โโโ pdf_model.pt # Saved model for PDF understanding
โ
โโโ requirements.txt # Python dependencies
Backend: FastAPI (Python)
Frontend: Streamlit
AI: Gemini + LangChain
ML: Transformers + scikit-learn + PyTorch
Document Embedding: FAISS
PDF Parsing: PyMuPDF
OCR (optional): Tesseract
User launches main.py and sees integrated tabs: Ask Chat, Upload Document, Get Advice
Uploads a contract โ system flags lock-in clauses + suggests negotiation tips
Asks chat: โHow to save tax under 80C?โ โ AI responds with examples
Inputs age/income/expenses โ gets personalized portfolio suggestion
git clone https://github.com/shivankursharma018/FinSightAI.git
cd FinSightAI
# Backend
python -m venv venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
uvicorn app:app --reload
# Integrated Streamlit App
streamlit run main.py
Upload: โInvoice_ABC.pdfโ โ Output: Document type = invoice, Total = โน22,500, Risk = Late fee
Chat: โWhat is a SIP?โ โ Output: โA Systematic Investment Plan (SIP) allows investors to invest a fixed amountโฆโ
Advice Tool: Age 27, โน50k income, โน20k expenses, medium risk โ Output: โ30% large cap funds, 20% FDs, 10% gold, 40% emergency + debtโ
MIT License
Add OCR for image-based invoices
Enable live market integration for portfolio suggestions
Export advice and reports as downloadable PDFs
Gemini, LangChain, Streamlit
HuggingFace (FinBERT)
Hackathon organizers + mentors