Empowering Financial Literacy through Autonomous AI Agents
In a world where financial literacy is increasingly critical yet complex, BluePrint serves as your Private, Intelligent Financial Officer. By bridging the gap between raw data and actionable insights, we aim to solve the "Financial Literacy Crisis" at scaleโwithout compromising your data sovereignty.
This is not just a chatbotโit's a Privacy-First Agentic System that understands, calculates, and researches on your behalf.
We believe financial data is the most sensitive data you own. BluePrint is built from the ground up to be a Private Helper:
- Local-First Processing: Your documents are processed in your own containerized environment.
- Automatic Redaction: We use Microsoft Presidio to detect and redact SSNs, Credit Card numbers, Names, and Phones before any data is stored.
- Zero-Retention LLM Calls: When we ask the AI a question, we only send the relevant snippets, and we use stateless calls.
- Enterprise-Grade Isolation: Your data lives in your
ChromaDBinstance, not on a public cloud vector store.
The core Manager Agent acts as the central brain, intelligently analyzing user intent to route queries to the most specialized expert. It doesn't guess; it delegates.
- Math/Logic โ Financial Calculator Agent
- Market Data โ Stock Analyst Swarm
- Personal Data โ Secure RAG Pipeline
Upload invoices, tax documents, or statements with confidence.
- Your Private Financial Brain: Answers are generated from your documents, not public internet data.
- Military-Grade Redaction: Automatically detects and redacts PII (Personally Identifiable Information) like names, SSNs, and phones using Microsoft Presidio before data ever touches the vector database.
- Contextual Search: Uses ChromaDB to index your private data locally.
A multi-agent swarm dedicated to market research:
- Real-Time Data: Integrated with Finnhub for live quotes and candle data.
- Visual Analytics: Dynamic, interactive charts powered by Recharts.
- Deep Research: Agents can browse the web (via Tavily) to cross-reference news with stock performance.
For when "close enough" isn't good enough.
- Powered by Wolfram Alpha, providing distinct, ground-truth answers for complex mortgage calculations, tax estimations, and investment projections.
- Framework: React 18 + Vite (Fast & Light)
- Language: TypeScript (Type-safe reliability)
- Styling: Tailwind CSS + Framer Motion (Glassmorphic, premium UI)
- Visualization: Recharts (Financial charting)
- Auth: Supabase Auth (Secure JWT integration)
- API: FastAPI (High-performance Async Python)
- Runtime: Uvicorn
- Package Manager: uv (Fast Python package installer)
- Orchestration: LangGraph (Stateful multi-agent workflows)
- LLM: Google Gemini 2.0 Flash (High speed, large context)
- Tools:
- Search: Tavily Search API
- Math: Wolfram Alpha
- Stocks: Finnhub API
- Privacy: Microsoft Presidio (PII Anonymization)
- Vector DB: ChromaDB (For RAG document storage)
- Time-Series DB: TimescaleDB (PostgreSQL-based for financial data)
- Caching: Redis (Speed & Session management)
- Storage: Local filesystem (managed via Docker volumes)
The system is designed as a Microservices-ready architecture, orchestrated via Docker Compose for easy reproduction and deployment.
This project followed a rigorous feature-branch workflow to ensure stability while adding complex agentic capabilities. Key branches included:
main: Production-ready code.feature/rag-pipeline: Established the RAG system, introducing ChromaDB, Presidio (PII redaction), and the ingestion logic.persistent-memory-creation: Added SQLite-backed long-term memory to agents, allowing them to recall previous interactions across sessions.feature/stock-agents: Developed the dedicated stock analysis swarm (Quant Agent + Researcher Agent).
[User (React UI)] <---> [Supabase Auth]
|
v
[FastAPI Gateway]
|
v
[Manager Agent (Router)] ----------------+--------------------------+
| | |
v v v
[Calc Agents (Wolfram)] [RAG Pipeline] [Stock Agent Swarm]
| | |
| (PII Redaction) +-------+--------+
| | | | |
v v v v v
(Wolfram LLM API) [ChromaDB] [Finnhub] [Quant] [Tavily]
(TimescaleDB) (Agent) (Agent)
- The "Router" Pattern (Manager Agent): Instead of a single LLM trying to do everything, the
ManagerAgentis a specialized classifier. It intercepts every user query and routes it to the best tool for the job. This reduces hallucinations (by not asking a generalist model to do math) and improves speed. - Privacy-by-Design: Usage of Microsoft Presidio ensures that no Sensitive PII (Personally Identifiable Information) is ever stored in our Vector Database (
ChromaDB). This is critical for financial applications. - Hybrid Storage Model:
- Vector (ChromaDB): For unstructured text (invoices, docs).
- Time-Series (TimescaleDB): For structured, high-frequency stock data.
- Relational (SQLite): For agent conversational memory.
- Role: Deterministic calculation engine.
- Trigger: Activated by queries involving numbers, "calculate", "mortgage", "tax", or "future value".
- Tooling: Direct integration with Wolfram Alpha LLM API.
- Workflow:
- User Query: "What is the monthly payment on a $500k mortgage at 6%?"
- Manager Handover -> CalcAgent.
- CalcAgent converts natural language to Wolfram syntax.
- Wolfram executes logic (Physics/Math engine).
- Result returned verbatim to user (No hallucination risk).
- Role: Private Context Provider.
- Ingestion Flow:
- Upload: User uploads PDF via Frontend.
- PII Scrubbing:
PresidioAnalyzerscans for Phone Numbers, SSNs, and Names.PresidioAnonymizerreplaces them with<REDACTED>. - Summarization: Generates a 2-sentence "global context" summary of the doc.
- Vectorization: Chunks text (1000 chars) and embeds using
GoogleGenerativeAIEmbeddings. - Storage: Metadata + Vectors saved to ChromaDB.
- Retrieval Flow:
- Query -> Similarity Search (k=4, Threshold=0.35).
- Context Stuffing -> LLM (Gemini 2.0).
- Citation -> Answer with source document reference.
- Role: Real-time market analysis.
- Architecture: A mini-swarm of two sub-agents:
- Researcher Agent: Uses
Tavilyto find latest news (e.g., "Why is NVDA down today?"). - Quant Agent: Uses
Finnhubto pull price, candles, and RSI.
- Researcher Agent: Uses
- Visualization: Returns a specialized JSON payload that the React Frontend parses to render Interactive Charts (Candlestick/Line) dynamically.
- Privacy as a Service: In an era of data leaks, a "Private Financial Officer" that keeps data local is a massive differentiator.
- Scalability: Stateless API design allows horizontal scaling of agent nodes.
- Market Fit: Fills the void between simple expense trackers and expensive human advisors.
- Trust Architecture: The code is open, the redaction is visible, and the storage is local.
- Docker Desktop
- API Keys (Google Gemini, Finnhub, Tavily, Wolfram, Supabase)
-
Clone & Configure:
git clone https://github.com/PranaiRaina/RoseHacks2026.git cd RoseHacks2026 # Add your keys to .env
-
Run with Docker: The entire system (Frontend, Backend, Databases) is containerized.
docker-compose up --build -d
-
Access:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8001/docs
- Agentic Design: Moving beyond "chatbots" to "systems that do things".
- Hybrid Storage: Combining Vector stores (semantic search) with structured SQL (Timescale) and Key-Value (Redis).
- Secure By Design: Integrating PII redaction at the ingestion layer ensures privacy isn't an afterthought.
An overview of the project structure and key files:
โโโ Auth/ # Authentication & Verification Logic
โ โโโ verification.py # Supabase JWT token validation
โ โโโ dependencies.py # FastAPI dependency injection for Auth
โ
โโโ CalcAgent/ # Financial Calculation Agent
โ โโโ agent.py # Main Agent Definition
โ โโโ tools/wolfram.py # Wolfram Alpha Integration
โ โโโ config/ # Prompts and LLM Configuration
โ
โโโ ManagerAgent/ # Core Router & API Gateway
โ โโโ api.py # FastAPI Endpoints (Entry Point)
โ โโโ router.py # Logic to route queries to specialized agents
โ โโโ tools.py # Wrappers for calling RAG/Stock tools
โ
โโโ RAG_PIPELINE/ # Document Ingestion & Retrieval
โ โโโ src/
โ โ โโโ ingestion.py # PDF Processing, PII Redaction, Chunking
โ โ โโโ graph.py # LangGraph Retrieval Workflow
โ โโโ ...
โ
โโโ StockAgents/ # Multi-Agent Stock Market Swarm
โ โโโ backend/services/
โ โโโ agent_engine.py # Coordinator for Quant/Researcher agents
โ โโโ quant_agent.py # Technical Analysis Logic
โ โโโ researcher_agent.py # News/Sentiment Logic
โ โโโ finnhub_client.py # Market Data Connector
โ
โโโ frontend/ # React + Vite Web Application
โ โโโ src/
โ โ โโโ components/ # UI Components (UploadZone, StockAnalyticsView)
โ โ โโโ pages/ # Route Pages (Dashboard, Auth, Landing)
โ โ โโโ services/ # API Integration (agent.ts)
โ โ โโโ lib/ # Utilities (supabase.ts)
โ โโโ Dockerfile # Frontend container config
โ
โโโ docker-compose.yml # Multi-container orchestration config
โโโ requirements.lock # Pinnned Python dependencies
โโโ scripts/ # Utility scripts (testing, key validation)
Built for RoseHack 2026. Transforming financial anxiety into financial agency.