FinSightAI

๐Ÿง  FinSightAI - Finance Advisor

Your AI-powered assistant for smarter financial planning, document analysis, and portfolio recommendations.


๐Ÿš€ Overview (TL;DR)

A web app that:


๐ŸŽฏ Problem Statement

Financial literacy is low, and most people struggle with:


๐Ÿ’ก Our Solution

Personal Finance Advisor is a 3-in-1 tool that:

  1. Acts as a financial chatbot using RAG (Retrieval-Augmented Generation)

  2. Classifies and analyzes uploaded documents with a risk flag system

  3. Offers investment strategies tailored to your income, goals, and risk appetite


๐Ÿ” Features

๐Ÿ“š Module 1: RAG Chat for Financial Queries

๐Ÿ“„ Module 2: Financial Document Inspector

๐Ÿ“Š Module 3: Personal Strategy Generator


๐Ÿ—‚๏ธ Project Directory Structure

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


๐Ÿ› ๏ธ Tech Stack


๐Ÿ“ธ Sample Workflow

  1. User launches main.py and sees integrated tabs: Ask Chat, Upload Document, Get Advice

  2. Uploads a contract โ†’ system flags lock-in clauses + suggests negotiation tips

  3. Asks chat: โ€œHow to save tax under 80C?โ€ โ†’ AI responds with examples

  4. Inputs age/income/expenses โ†’ gets personalized portfolio suggestion


๐Ÿงช How to Run Locally

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

๐Ÿง  Sample Inputs & Outputs


๐Ÿ‘จโ€๐Ÿ’ป Team


๐Ÿ“œ License

MIT License


๐Ÿ”ฎ Future Scope


๐Ÿ™Œ Acknowledgments