Back to work

InsightLens

InsightLens is a multi-tenant business analytics platform that turns CSV and Excel data into verified analytics, forecasts, dashboards, reports, recommendations, and AI-powered explanations.

  • Portfolio Project
InsightLens2026

Live Demo

Project Overview

Project Type

AI Business Analytics SaaS

Domain

Business Intelligence / Data Analytics

Our Focus

Full-stack system design, deterministic analytics, governed AI explanations, and multi-tenant data architecture

The Business Challenge

Businesses want AI help with operational data, but giving an LLM unrestricted access to raw datasets can create inconsistent calculations, unpredictable queries, misunderstood business context, and answers that are difficult to verify.

The Solution

AetrixTeck designed InsightLens around a governed analytics workflow: users import versioned datasets, profile and map their business meaning, run deterministic analytical calculations, and then use AI to explain those verified results in natural language. The AI receives structured requests and calculated outputs rather than unrestricted raw records or arbitrary database access.

Project Outcome

The product separates numerical truth from generative explanation. It gives business users an approachable way to explore data while keeping calculations traceable, reproducible, and connected to the dataset version and semantic mapping that produced them.

Product Workflow

  • Import CSV/XLSX Data
  • Create Immutable Dataset Version
  • Profile Dataset
  • Map Business Semantics
  • Run Verified Analytics
  • Generate Grounded AI Explanation
  • Save Dashboard, Recommendation, or Report

Key Features

  • CSV and XLSX ingestion with immutable dataset versions
  • Data profiling for types, distributions, missing values, and dataset characteristics
  • Semantic mapping for dates, metrics, dimensions, and business entities
  • Deterministic analytics for trends, rankings, comparisons, distributions, correlations, anomalies, moving averages, and forecasts
  • Grounded AI explanations built from validated analysis requests and calculated results
  • Organization-scoped workspaces, users, memberships, datasets, analyses, and audit records
  • Reusable dashboards, recommendations, and downloadable reports
  • Background processing for work that should not block a single HTTP request

Core Platform Capabilities

Versioned Dataset Import

Operational CSV and XLSX files enter a controlled analytics workspace as immutable dataset versions, preserving the exact source behind every later analysis.

Data Profiling & Semantic Mapping

The platform identifies data characteristics and lets users map technical columns to business concepts such as dates, metrics, dimensions, and entities before analysis begins.

Deterministic Analytics Engine

Rankings, trends, period comparisons, distributions, correlations, moving averages, anomaly detection, and baseline forecasting are calculated by controlled analytics functions rather than generated by an LLM.

Dashboards, Recommendations & Reports

Verified outputs can become reusable dashboards, actionable recommendations, and stakeholder-ready reports instead of remaining one-off exploratory results.

AI-Assisted Features

AI That Explains Verified Results

AI receives validated analysis requests and calculated results, then turns them into natural-language explanations for decision-makers without becoming the numerical source of truth.

Controlled AI Boundary

The architecture keeps AI isolated from unrestricted raw dataset records and arbitrary SQL generation, creating a clearer boundary between computation and generative explanation.

Demonstrates

  • Full-Stack Product Engineering
  • B2B SaaS Architecture
  • Analytics Engineering
  • Governed AI Integration
  • Data Versioning & Provenance
  • Background Job Processing

Technology Used

  • Next.js
  • React
  • TypeScript
  • Python
  • FastAPI
  • PostgreSQL
  • MinIO
  • Redis
  • Celery
  • Gemini
  • OpenRouter
  • Docker

Architecture

Frontend

  • Next.js workspace for organization-scoped analytics workflows
  • React and TypeScript interfaces for dashboards, reports, and AI explanations

Backend

  • FastAPI services for ingestion, analytics, metadata, and AI orchestration
  • Celery workers for background file processing and longer-running work

Database

PostgreSQL stores application metadata, organizations, memberships, dataset records, semantic mappings, analyses, dashboards, and audit data.

Authentication & Security

Organization-scoped users and memberships provide the foundation for isolated multi-tenant workspaces.

Additional Services

  • MinIO for source datasets and generated artifacts
  • Redis for task infrastructure
  • Gemini / OpenRouter for the AI explanation layer
  • Docker and Docker Compose for multi-service development and deployment

System Notes

  • Analytics calculates the facts; AI explains them.
  • Dataset versions, mappings, and calculated results preserve the provenance needed for traceable analytics.
  • Additional production controls would be required before exposing sensitive customer data publicly.

Architecture Overview

CSV / XLSX
  -> Dataset Ingestion
  -> Immutable Dataset Version
  -> Data Profiling
  -> Semantic Mapping
  -> Analytics Engine
  -> Calculated Result
  -> AI Explanation
  -> Dashboards / Reports / Recommendations

Key Engineering Challenges

Keeping Calculations Reliable

The central design decision was to keep numerical calculation inside deterministic analytics functions, so a language model does not invent figures or become the system of record.

Connecting Data to Business Meaning

Raw columns such as revenue, order_date, country, and customer_id only become useful to a product when they are mapped to validated business concepts.

Designing for Multi-Tenant Isolation

Organizations, memberships, datasets, analyses, and audit records are scoped to isolated workspaces so the platform can support multiple business teams.

Moving Long Work Off the Request Path

Ingestion and longer-running processing are handled through workers and queue infrastructure rather than forcing a user to wait for one HTTP request to finish.

Testing

  • Dataset ingestion and immutable version creation
  • Data profiling and semantic mapping workflows
  • Analytics calculations and result provenance
  • Organization-scoped access patterns
  • AI explanation flows built from validated results

Project Context

InsightLens is a production-style portfolio application demonstrating full-stack business software, analytics engineering, and governed AI integration. The core workflow is represented here honestly; advanced data connectors, sharing capabilities, and custom analytics remain future scope.

Key Takeaway

InsightLens demonstrates our approach to AI-powered business software: understand the business problem first, build reliable application and data architecture around it, and introduce AI only where it adds meaningful value.