Back to .md Directory

๐Ÿ“ˆ AlphaInsight Pro - Final Year Project Demo

Describes a production-deployed financial RAG demo app with PDF processing, semantic search, and AI Q&A via a Bloomberg-style terminal UI.

May 2, 2026
0 downloads
0 views
ai llm rag eval gemini
View source

What this file does

Describes a production-deployed financial RAG demo app with PDF processing, semantic search, and AI Q&A via a Bloomberg-style terminal UI.

When to use it

  • Showcasing a final-year project with live deployment
  • Demonstrating RAG pipeline with Firebase and Gemini
  • Presenting a professional financial analysis tool to evaluators
  • Learning how to structure a demo README for a full-stack AI app

Assumes this stack

ViteFirebase FirestoreFirebase AuthenticationGoogle Gemini APIPDF.jsVanilla JavaScript

๐Ÿ“ˆ AlphaInsight Pro - Final Year Project Demo

๐Ÿ”— Live Link

Launch App


๐Ÿ“‹ What You'll See

1. Professional Terminal Interface

  • Bloomberg Terminal aesthetic with neon green/amber styling
  • Dark terminal background for financial data presentation
  • Clean, professional UI that impresses

2. Core Features Demo

Upload & Process Documents

  1. Click the [ + ] button in the Documents section
  2. Select any PDF (earnings report, 10-K filing, financial statement, etc.)
  3. Watch the progress bar as the system:
    • Extracts text from the PDF
    • Chunks it into manageable pieces
    • Generates AI embeddings
    • Stores in Firestore database

Ask Questions

  1. Once documents are indexed, type a financial question
  2. Press Enter to query
  3. Examples:
    • "What was the total revenue?"
    • "Summarize key financial metrics"
    • "What are the main risks?"
    • "What is the profit margin?"

Get AI-Powered Answers

  • AI retrieves relevant document chunks
  • Generates comprehensive answers using Google Gemini
  • Shows source citations with chunk references
  • Streams response in real-time for smooth UX

Chat History

  • Each conversation is saved
  • Switch between different chats
  • All data persists across sessions
  • Fully isolated per user

๐ŸŽฏ Technical Stack Demonstrated

Frontend

  • Vite - Lightning-fast bundler & dev server
  • Vanilla JavaScript - No framework bloat
  • Responsive CSS - Works on desktop & mobile

Backend

  • Firebase Firestore - Real-time NoSQL database
  • Firebase Authentication - Email/password + guest login
  • Firebase Hosting - Global CDN deployment

AI/ML

  • Google Gemini API - State-of-the-art LLM
  • Embeddings - Semantic document understanding
  • RAG Pipeline - Retrieval-Augmented Generation

Production Ready

  • โœ… Security rules configured
  • โœ… Zero-cold-start performance
  • โœ… Optimized bundle (220 KB gzip)
  • โœ… Spark tier compatible (free)

๐Ÿš€ Key Features to Highlight

  1. Real PDF Processing

    • Actual PDF parsing with PDF.js
    • Text extraction from any financial document
    • Intelligent chunking (512-token chunks)
  2. Semantic Search

    • AI embeddings for intelligent retrieval
    • RAG pipeline finds most relevant chunks
    • Context-aware Q&A
  3. Persistent Storage

    • Firestore database stores everything
    • Per-user data isolation
    • Chat history across sessions
  4. Streaming UI

    • Real-time AI response streaming
    • Smooth, professional animations
    • Terminal-style visual feedback
  5. Production Deployment

    • Live on Firebase Hosting
    • Not localhost - fully deployed
    • Instant global CDN access

๐Ÿ’ก Demo Flow (2-3 minutes)

  1. Open the app โ†’ See terminal-style UI
  2. Upload a PDF โ†’ Show processing progress
  3. Ask a question โ†’ See AI respond in real-time
  4. Try another query โ†’ Show chat history
  5. Show mobile responsive โ†’ Works on all screens

๐Ÿ“Š What Makes This Project Stand Out

Architecture

  • RAG pipeline from scratch (no frameworks)
  • Proper document chunking strategy
  • Semantic embeddings with AI

UX/Design

  • Professional Bloomberg Terminal aesthetic
  • Smooth animations & transitions
  • Real-time feedback during processing

Scalability

  • Firebase Spark tier (free forever)
  • Handles multiple users + documents
  • Efficient chunk-based retrieval

Engineering

  • Clean code structure (src/ organization)
  • Security best practices
  • Environment-based config (.env)
  • Error handling & validation

๐Ÿ” Security Features

  • Firebase Auth ensures only your data is accessible
  • Firestore security rules enforce per-user data isolation
  • PDFs processed client-side (privacy-first)
  • No sensitive data logged

๐Ÿ“ˆ Performance Metrics

  • Build size: 220 KB gzipped (optimized with code splitting)
  • Modules: 26 optimized chunks
  • Load time: <2 seconds on 4G
  • Chat latency: ~500ms for AI response

๐ŸŽ“ What You Built

A production-grade AI financial analysis application that demonstrates:

  • โœ… Full-stack development (frontend โ†’ backend โ†’ AI)
  • โœ… RAG architecture implementation
  • โœ… Cloud infrastructure (Firebase)
  • โœ… AI/ML integration (Gemini)
  • โœ… Professional UI/UX design
  • โœ… Security best practices
  • โœ… Production deployment

๐Ÿ“ Notes for Teacher

  • Not a demo - This is a fully functional, production-deployed app
  • Real data - Try uploading actual financial documents
  • Live link - Works anywhere (no laptop setup needed)
  • Impressive scope - Covers frontend, backend, AI, cloud infrastructure, and design

Share this link: https://studio-6436785850-def2b.web.app ๐Ÿš€

What's inside

14 sections covering live link, features, tech stack, demo flow, performance metrics, and security notes.

Change this for your project

  • Replace https://studio-6436785850-def2b.web.app with your own Firebase Hosting URL
  • Replace RohanExploit/FinanceRAG with your own repository name
  • Replace Google Gemini API with your own AI model if different

Where it goes

Reference documentation for a retrieval pipeline. Keep with the ingestion or retrieval code it describes.

Worth borrowing

  • Bloomberg Terminal aesthetic for financial apps
  • Demo flow script with timed steps for live presentations
  • Performance metrics table to impress evaluators

Related Documents