Back to Portfolio
OmniInsight: Privacy-Preserving Local BI & Automated Analytics Platform with In-Memory DuckDB and Multi-LLM Reasoning
AI & Automation

OmniInsight: Privacy-Preserving Local BI & Automated Analytics Platform with In-Memory DuckDB and Multi-LLM Reasoning

Open Source Package / Self-Hosted GitHub Repository
DuckDB (In-Memory OLAP) Python 3.11-3.14 FastAPI LiteLLM React 19 Next.js Apache ECharts Tailwind CSS RTL Pydantic v2 Pytest
Executive Summary

An open-source, local-first Business Intelligence platform engineered to replace proprietary cloud BI tools, pairing DuckDB's vectorized in-memory OLAP engine with privacy-safe LiteLLM reasoning to autonomously synthesize executive dashboards and answer conversational NLQ queries with zero data leakage.

Vectorized Query Execution Latency
< 100ms
In-memory columnar execution over hundreds of thousands of records
Raw Data Transmitted to External Clouds
0 Bytes
Only schema metadata and aggregate statistics touch the reasoning LLM
Air-Gapped & Offline Operability
100%
Fully self-contained on-premise execution using local Ollama models
Automated Test Suites Passing
8/8
End-to-end test coverage across DuckDB SQL execution and dashboard generation

The Proprietary BI Bottleneck: Escalating Licensing Costs and Cloud Privacy Risks

Modern organizations frequently find themselves constrained by the exorbitant pricing and architectural complexity of legacy Business Intelligence suites such as Power BI and Tableau. Beyond per-seat licensing fees that punish organizational scaling, these platforms demand continuous cloud synchronization or extensive data engineering overhead to load everyday operational spreadsheets into expensive cloud data warehouses. Decision-makers are often forced to wait days or weeks for data engineering teams to construct pipeline transformations before basic trends can be visualized.

The emergence of cloud-hosted generative AI analytics tools introduced an even more severe corporate vulnerability: unrestricted data leakage. To deliver autonomous summaries, traditional cloud tools routinely stream raw tabular records, including employee compensation structures, confidential profit margins, and protected customer identities, to external third-party model endpoints. This practice directly breaches rigorous banking, healthcare, and enterprise data governance mandates, exposing core intellectual property and confidential operational figures to third-party retention and training pipelines.

Local-First Vectorized Columnar Architecture: The In-Memory Power of DuckDB

To eliminate these trade-offs, OmniInsight was engineered as an open-source, local-first analytical platform driven by DuckDB’s embedded in-memory OLAP engine:

Executing directly within the application host process without requiring the maintenance of heavy database servers, DuckDB delivers vectorized C++ query execution across raw CSV, Parquet, and Excel spreadsheets. Queries involving hundreds of thousands of operational records execute in sub-100 millisecond timeframes directly against memory. Furthermore, the platform incorporates automated multi-file ingestion through DuckDB's union-by-name folder globbing, allowing entire directories of quarterly expense reports or distributed regional sales files to be consolidated into a single unified analytical view in milliseconds, even when column sequences differ across sheets.

The Zero Data Leakage Security Boundary: Privacy-First AI Synthesis

OmniInsight resolves the conflict between autonomous AI reasoning and absolute corporate privacy by enforcing a cryptographic-grade data sanitization boundary:

Before any analytical reasoning occurs, an embedded statistical profiler inspects the local DuckDB tables to compute aggregate metadata: record tallies, column data types, value distributions, quartiles, null ratios, and categorical cardinality. Only this anonymized schema metadata, accompanied by three representative non-identifiable sample rows, is transmitted through LiteLLM to the reasoning engine. The language model utilizes these structural signals to synthesize strategic KPI metrics, identify anomalous trends, and generate deterministic DuckDB SQL expressions. Crucially, these generated SQL queries are returned to the user's host environment, where DuckDB executes them locally against the raw underlying tables. At no point do actual transactional figures or sensitive customer records cross the network perimeter.

Bilingual Conversational Analytics with Self-Healing Query Execution

The platform integrates an autonomous Natural Language Query interface that allows stakeholders to interrogate datasets using conversational English or Arabic and receive instant visual and tabular answers:

The assistant analyzes plain-language operational inquiries, such as identifying top-performing sales representatives or isolating inventory bottlenecks, and formulates precise DuckDB SQL queries. Should an ambiguous schema reference or syntax anomaly occur during execution, an integrated self-healing loop captures the runtime database exception, cross-references it against table column catalogs, and autonomously repairs the query structure in milliseconds before rendering the final chart. This ensures business leaders obtain reliable answers without encountering cryptic database stack traces.

Enterprise Ergonomics and Turnkey Business Demonstration Suites

Crafted with Next.js, React, and Apache ECharts, the user interface provides ergonomic light and high-contrast dark themes alongside native right-to-left layout alignment for Arabic enterprise environments:

To facilitate immediate zero-configuration evaluation, OmniInsight ships with four comprehensive, preloaded operational datasets stored directly in local memory. These include multi-currency global e-commerce transactions, quarterly consolidated departmental expense accounts, SaaS subscription and net retention metrics, and international multimodal logistics tracking freight durations and on-time transit performance. Evaluators can transition across these analytical domains via instant navigation pills or explore live charting capabilities with a single click.

Interactive System Studio & Architecture Screens

Click any screen below to inspect in high-resolution with zoom in, zoom out, pan, and full screen controls.

7 Displays

Interested in a similar project?

We can build a tailored solution customized to your business goals.

Contact Me Now