Skip to content
AI Lab
Generative AIData ApplicationsOpen in portfolio

Data Detective

Investigate business metric changes with related CSVs, reproducible calculations and Gemini explanations linked to inspectable evidence.

Problem

A revenue drop may reflect a real business change, a measurement discrepancy, or both. A useful investigation needs verifiable calculations and clear limits on what the data proves.

Approach

Built a native portfolio workspace that joins a main CSV with a unique-key lookup, compares two periods and decomposes changes by segment. Deterministic TypeScript computes every metric; Gemini interprets a bounded evidence ledger with validated citations. A synthetic case separates a conversion discrepancy from an underlying regional decline.

Key features

  • 01CSV and TSV ingestion with explicit period, metric and segment mapping
  • 02Validated left joins with duplicate-key rejection and unmatched-row checks
  • 03Period comparisons, segment contributions and optional amount × reference-rate reconciliation
  • 04Gemini explanations that distinguish observed evidence from unproven hypotheses
  • 05Inspectable evidence, source preview and downloadable reports and reproducible case JSON
  • 06Server-only Gemini credentials and usable computed reports when AI is unavailable

Demo

Next project

Advanced RAG Knowledge Assistant