An end-to-end intelligent data analytics workspace that transforms raw tabular spreadsheets (CSV, XLSX, XLS) into conversational insights, deterministic computations, statistical distributions, and interactive Recharts visualizations.
π Live Application: https://data-sage-ai.netlify.app/
π¦ Source Code Repository: https://github.com/bikram73/DataSage_AI
π Description |
π Section |
|---|---|
View the project features and capabilities. π |
|
View the technologies, frameworks, and programming languages used. π |
|
Explore the project's folder and file organization. π |
|
Follow the installation steps and local development setup. π |
|
Understand how confidence scores are calculated and interpreted. π |
|
View the available REST API endpoints and usage examples. π |
|
Explore the complete system architecture, AI workflow, processing pipeline, data flow, deployment design, and technical decisions. π |
|
Review implementation details, AI pipeline, performance metrics, benchmarking, validation strategy, privacy, testing, and technical specifications. π |
|
Review verified automated test results, API integration tests, QA matrix, and quality gate statement. π |
|
Review processing speed, latency, and performance benchmarks. π |
|
Understand the current limitations and known failure cases of the AI extractor. π |
- Zero Hallucination Architecture: Questions are translated into structured query plans with reproducible Python Pandas syntax for auditability and executed deterministically on dataset records.
- Synthesized Answers & Calculation Steps: Every answer includes the exact aggregation logic, code execution trace, and elapsed computation milliseconds.
- Dynamic Chart Generation: Automatically detects query intent to produce Bar charts, Area/Line trends, Scatter plots, and Category breakdown charts.
- Contextual Follow-Up Suggestions: Generates 3 intelligent subsequent questions tailored to dataset insights.
- Multi-Format Support: Instant client-side & server-side streaming parsing for
.csv,.xlsx, and.xlsfiles up to 100MB. - Sample File Downloader: One-click local
.csvsample generation (Sales_Report.csv,HR_Analytics.csv,Marketing_ROI.csv) for testing. - Type & Schema Inference: Automatically detects data types (
Integer,Float,String,Date), null counts, unique cardinality, and value samples.
- Search & Multi-Column Sorting: Real-time filtering across all rows and column headers.
- Pagination & Page Size Controls: Smooth pagination (25, 50, 100 rows per page) with index indicators.
- Column Schema Badges: Live indicators of data types, missing value percentages, and column metrics.
- Dataset Clear & Reset: One-click Remove Dataset button to wipe in-memory cache and reset all downstream views.
- Auto-Calculated KPI Cards: Total Records, Column Count, Data Completeness Score, and Top Feature Cardinality.
- Distribution Histograms & Top Category Frequency: Automatically generates charts for dominant metrics and dimensions.
- 5-Number Summary Matrix: Computes Mean, Median, Min, Max, and Standard Deviation for all continuous numerical features with null-safe filtering.
| Category | Technology | Description |
|---|---|---|
| Frontend Framework | βοΈ React 19 | Modern functional UI with Hooks & State Management |
| Language | π¦ TypeScript 5.8 | Strict end-to-end type safety across client & server |
| Styling & Design | π¨ Tailwind CSS v4 | Utility-first responsive design with @tailwindcss/vite |
| Icons & Typography | π€ Google Fonts | Plus Jakarta Sans, Inter, JetBrains Mono & Material Symbols |
| Charts & Visuals | π Recharts 3.10 | Composable responsive data visualization engine |
| Spreadsheet Parsing | π PapaParse & SheetJS (XLSX) | High-throughput streaming CSV and Excel parsing |
| Backend Server | β‘ Express 4.21 on Node.js | High-performance REST API with unified Vite SSR middleware |
| AI Reasoning Model | π€ Google Gemini 3.6 Flash | Schema-grounded query decomposition & Pandas generation |
| Build & Bundler | β‘ Vite 6 + ESBuild | Sub-second Hot Module Replacement and production bundling |
βββ π index.html # HTML entry point with metadata & custom brand favicon
βββ π package.json # Project dependencies and operational run scripts
βββ π tsconfig.json # TypeScript compiler rules and module resolution
βββ π vite.config.ts # Vite plugins configuration (React & Tailwind)
βββ π server.ts # Express server, Gemini client & API route definitions
βββ π metadata.json # AI Studio project manifest & server capabilities
βββ π public/ # Static browser assets
β βββ π¨ favicon.svg # DataSage AI brand vector logo favicon
β βββ π _redirects # SPA routing rules for static hosting
βββ π src/
β βββ π App.tsx # Root application container & tab router
β βββ π main.tsx # React DOM render entry point
β βββ π index.css # Tailwind CSS imports & global design tokens
β βββ π components/ # Modular React UI views
β β βββ π§ Navbar.tsx # Top segmented navigation tab bar (Overview -> AI Workspace)
β β βββ π LandingPage.tsx # Hero showcase, feature highlights & sample preview
β β βββ π₯ UploadPage.tsx # Drag-and-drop file upload & sample CSV downloader
β β βββ π DatasetPreviewPage.tsx # Data grid with search, sort, pagination & schema
β β βββ π¬ WorkspacePage.tsx # AI Chat interface with charts & code traces
β β βββ π DashboardPage.tsx # Automated statistical KPI analytics & distributions
β βββ π server/
β β βββ π§ analyticsEngine.ts # In-memory dataframe engine, stats & query executor
β βββ π services/
β β βββ π api.ts # Client API SDK, dataset state tracking & fallbacks
β βββ π utils/
β β βββ π fileParser.ts # CSV & Excel file parsing helper functions
β βββ π data/
β βββ π¦ sampleDatasets.ts # Embedded sample datasets (Sales, HR, Marketing)
βββ π documentation/
βββ π ARCHITECTURE.md # Full system architecture, data flow & security design
βββ π TECHNICAL_REPORT.md # Benchmarks, algorithmic pipeline & validation suite
- Node.js: v18.0.0 or higher
- npm or bun / yarn
- Gemini API Key: (Optional for server-side AI reasoning; fallback rule engine included)
-
Clone the Repository:
git clone https://github.com/bikram73/DataSage_AI.git cd DataSage_AI -
Install Dependencies:
npm install
-
Configure Environment Variables: Create a
.envfile in the project root:GEMINI_API_KEY=your_gemini_api_key_here PORT=3000 NODE_ENV=development
-
Start the Development Server:
npm run dev
Open http://localhost:3000 in your browser.
-
Build for Production:
npm run build npm start
DataSage AI separates Intent Classification (handled by LLM) from Mathematical Calculation (handled by a deterministic execution engine).
βββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Confidence Range β Execution Behavior β
βββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β π’ 95% - 100% (High) β Deterministic execution with exact Pandas aggregation β
β π‘ 80% - 94% (Moderate) β Fuzzy column match with explicit calculation breakdown β
β π΄ < 80% (Low) β Safe fallback to overview summary with disambiguation β
βββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Returns service health and active dataset status.
curl http://localhost:3000/api/healthUploads raw spreadsheet rows or activates an existing sample dataset.
curl -X POST http://localhost:3000/api/upload \
-H "Content-Type: application/json" \
-d '{"datasetId": "sales_data"}'Returns active dataset metadata and first 100 sample records.
curl http://localhost:3000/api/previewReturns computed statistics, 5-number summaries, and null ratios.
curl http://localhost:3000/api/statisticsExecutes a natural language analytical question against the active dataset.
curl -X POST http://localhost:3000/api/query \
-H "Content-Type: application/json" \
-d '{"question": "What is the total revenue by region?"}'Dynamically aggregates metrics by specified axes and aggregation mode (sum, mean, count, min, max).
curl -X POST http://localhost:3000/api/chart \
-H "Content-Type: application/json" \
-d '{"chartType": "bar", "xAxis": "Region", "yAxis": "Sales", "aggregation": "sum"}'Clears in-memory dataset cache and resets all dashboards.
curl -X POST http://localhost:3000/api/clear| Metric | Measured Value | Standard Target |
|---|---|---|
| Cold Start Startup Time | ~240ms |
< 500ms |
| File Parse Throughput (10k rows) | ~115ms |
< 300ms |
| Deterministic Aggregation Query | ~4ms |
< 25ms |
| End-to-End AI Q&A Latency | ~680ms |
< 1200ms |
| Dashboard KPI Computation | ~12ms |
< 50ms |
- In-Memory Volatility: Active dataset sessions reside in server RAM and reset upon server restart.
- Unstructured Text: Multi-line unstructured notes within single CSV cells may require manual sanitization.
- Maximum Recommended Rows: Optimal client-side browser visualization performance is tuned for up to 100,000 rows per dataset.
Built with β€οΈ using React 19, Tailwind CSS, and Google Gemini β’ DataSage AI