An enterprise-grade AI-driven observability platform that transforms raw transactional logs into actionable intelligence using Large Language Models, in-memory SQL analytics, and automated root-cause diagnostics.
Designed for high-frequency financial systems, this platform automatically understands unknown log schemas, generates optimized SQL queries using Google Gemini, performs ultra-fast analytics with SQLite, and produces executive-ready incident reportsβall without manual preprocessing.
Traditional monitoring systems require predefined schemas, custom ETL pipelines, and significant engineering effort before meaningful analytics can be performed.
This platform eliminates those limitations by leveraging LLM-powered schema understanding, allowing users to upload any transactional CSV log while the AI dynamically determines how to query the data.
The result is an intelligent observability pipeline capable of:
- Understanding unknown datasets
- Generating SQL automatically
- Detecting latency bottlenecks
- Computing operational KPIs
- Producing AI-generated executive diagnostics
- Upload any transactional CSV file
- Google Gemini 3.5 Flash analyzes column names
- Automatically generates optimized SQLite queries
- No manual column mapping
- No hardcoded schemas
Instead of writing to disk, the application creates a temporary SQLite database inside RAM.
Benefits include:
- Extremely fast query execution
- Zero disk I/O overhead
- Real-time KPI computation
- Lightweight deployment
Automatically computes operational metrics including:
- Average Processing Latency
- Peak Latency
- Success Rate
- Failed Transactions
- Total Transactions
- Processing Volume
All metrics are generated instantly after upload.
The platform automatically identifies the Top 25 worst-performing transactions ranked by latency.
Each incident includes information such as:
- Transaction ID
- Asset Class
- Channel
- Region
- Transaction Value
- Status
- Processing Time
This allows engineers to prioritize the most critical bottlenecks immediately.
Instead of simply displaying slow transactions, the platform sends incident metadata back to Gemini.
Gemini performs pattern recognition across multiple variables and generates an executive report containing:
- Bottleneck correlations
- Probable infrastructure failures
- Engineering recommendations
- System optimization suggestions
Example:
π§ Executive Root Cause Report
β’ 82% of latency spikes originate from Debit transactions
processed through ATM channels.
β’ Root Cause:
Database connection pool contention during synchronous
ledger validation.
β’ Recommendation:
Introduce asynchronous processing using Kafka and
optimize indexing on balance lookup tables.
Upload CSV
β
βΌ
Pandas DataFrame Processing
β
βΌ
Google Gemini Schema Analysis
β
βΌ
AI-Generated SQLite Query
β
βΌ
In-Memory SQLite Analytics
β
ββββββββββββ΄ββββββββββββ
βΌ βΌ
KPI Computation Incident Ranking
β β
ββββββββββββ¬ββββββββββββ
βΌ
Gemini Root-Cause Diagnostics
β
βΌ
Executive Incident Report
| Category | Technology |
|---|---|
| Frontend | Streamlit |
| Programming Language | Python 3.9+ |
| AI Engine | Google Gemini API |
| LLM Model | Gemini 3.5 Flash |
| Database | SQLite (:memory:) |
| Data Processing | Pandas |
| Numerical Computing | NumPy |
| Regex Parsing | Python Regex |
| Environment Management | python-dotenv |
latency-analytics-portal/
β
βββ app.py
β Main Streamlit dashboard
β
βββ generate_csv.py
β Generates synthetic financial telemetry logs
β
βββ requirements.txt
β Project dependencies
β
βββ .env
β Gemini API credentials
β
βββ sample_logs.csv
β Example transaction dataset
β
βββ README.md
git clone https://github.com/SabhyataVerma/latency-analytics-portal.git
cd latency-analytics-portalpython3 -m venv .venv
source .venv/bin/activatepython -m venv .venv
.venv\Scripts\activatepip install -r requirements.txtCreate a .env file:
GEMINI_API_KEY=YOUR_API_KEY
python3 generate_csv.pystreamlit run app.py Transaction CSV
β
βΌ
Upload through Streamlit UI
β
βΌ
Pandas DataFrame Creation
β
βΌ
Google Gemini Column Inspection
β
βΌ
AI-Generated SQL Query Creation
β
βΌ
In-Memory SQLite Query Execution
β
ββββββββββββββ΄βββββββββββββ
βΌ βΌ
KPI Aggregation Incident Detection
β β
ββββββββββββββ¬βββββββββββββ
βΌ
Gemini Executive Diagnostics
β
βΌ
Root Cause Investigation Report
- Total Transactions
- Average Latency
- Peak Latency
- Success Rate
- Failure Percentage
| Transaction | Channel | Asset | Region | Latency |
|---|---|---|---|---|
| TXN-10091 | ATM | Debit | Tokyo | 915 ms |
| TXN-81232 | POS | Credit | London | 842 ms |
| TXN-72611 | Mobile | Debit | Singapore | 801 ms |
π§ Predictive Root Cause Analysis
β’ 84% of severe latency incidents originate from Debit
transactions processed through ATM channels.
β’ Database thread contention during synchronous
ledger updates is the primary contributor.
β’ Introduce asynchronous processing with Apache Kafka,
optimize database indexes,
and increase connection-pool capacity.
No predefined schemas.
The AI understands uploaded datasets automatically.
Reduces investigation time from hours to seconds through automated diagnostics.
Combines the reliability of relational databases with the reasoning capabilities of Large Language Models.
Designed with concepts commonly used in:
- Application Performance Monitoring (APM)
- Financial Technology
- Infrastructure Observability
- Incident Management
- Intelligent Automation
- Interactive Plotly dashboards
- Live streaming analytics using Apache Kafka
- Multi-file comparative analysis
- PDF and Markdown export
- OAuth 2.0 Authentication
- Cloud deployment on AWS
- Historical trend forecasting
- AI anomaly alert notifications
This project is licensed under the MIT License.
Sabhyata Verma
Pre-final Year B.Tech Student
Electronics and Computer Engineering (ECM)
Vellore Institute of Technology (VIT), Chennai
GitHub
https://github.com/SabhyataVerma