Skip to content
HomeProjectsCoreInsight

CoreInsight

Open-source BI copilot system that unifies hybrid schema discovery, AST-level SQL guarding, a self-healing SQL loop, and an SSE-based chat experience into a single product.

Open SourceFeatured
Type
BI Copilot System
Built
2026
Visit
Coming soon
Role
AI/ML Engineer · Product Engineering
Updated
2026
Tech Stack
FASTAPINEXT.JSTYPESCRIPT🛩LITELLMQDRANTSQLGLOT
01

Overview

I approached CoreInsight not as a classic "natural language -> SQL" demo, but as a BI copilot system closer to a production setting. The goal wasn't just to ask questions; it required bringing schema discovery, security, self-healing, and governance layers together in the same product chain.

On the backend, FastAPI, async SQLAlchemy, an SQLGlot-based guard layer, and a Qdrant-backed retrieval structure work in concert. The query flow passes through intent classification, schema discovery, SQL generation, execution, repair, and formatting stages. On the frontend, the SSE-streamed chat experience, chart generation, and admin center all meet in the same interface built with Next.js.

The resulting system focuses on the two things that are critical in LLM-based data products: accuracy and control. That's why the project isn't just a chat interface; with its auditing, semantic memory, authorization, and governance layers, it offers an open-source foundation that moves toward enterprise use.

Featured Screen

FastAPI- and Next.js-based Text-to-SQL + BI copilot system. It turns natural language queries into safe SQL and the results into charts and analysis.

CoreInsight
02

Highlights

4-way hybrid schema discovery brings table, column, chart, and embedding signals together in the same retrieval flow.
AST-level SQL guarding blocks destructive queries; table permissions and automatic LIMIT reduce execution risk.
A diagnose -> fix -> retry loop recovers failed SQL attempts and makes them safer.
The admin center consolidates the semantic library, examples, memory, auditing, and governance areas in one place.
03

Technical Architecture

Backend
FastAPISQLAlchemy AsyncSQLGlotPydanticSSE-Starlette
Intelligence Layer
LiteLLMQdrantNetworkXSchema RetrieverMemory Store
Frontend
Next.js 15React 19TypeScriptChart.jsLucide React
Operations
PytestRuffSQLite Meta StoreAsyncPGYAML Config

Math Captcha Forge

MobileNetV3-based mathematical CAPTCHA solver. It unifies training, export, and the inference pipeline into a single case study.

ML Case Study