NL2SQL / Enterprise Data Intelligence
AskDB
Conversational NL2SQL system translating plain English inquiries into validated database queries via domain intent classification, contextual schema grounding, and strict SELECT-only AST security gates.

Architecture & Overview
Engineering intelligence around real operational constraints.
An enterprise database intelligence assistant enabling non-technical stakeholders to talk directly with relational databases in plain English. The architecture begins with a domain classifier that routes the question to the correct module (e.g., federations, societies, banks). It then dynamically retrieves relevant table DDL schemas, enterprise business logic rules, and curated gold-standard SQL pairs from a Qdrant semantic store. After SQL synthesis, a hardened AST-based security gate verifies the query is strictly a read-only SELECT statement, and an automated 3-attempt self-correction loop catches syntax or execution errors before rendering synchronized data tables, dynamic charts, and natural language summaries.
Execution Lifecycle
How the System Works End-to-End
Module & Intent Classification
Analyzes incoming plain-English business inquiries and classifies them across relevant domains (banks, federations, societies, operational databases).
Dynamic Context & Schema Grounding
Semantically retrieves matching table DDL schemas, enterprise business rules, column aliases, and curated few-shot training query pairs from Qdrant.
Dialect-Specific SQL Synthesis
Feeds the grounded context into the LLM to generate precise, optimized SQL queries matching the target database dialect.
AST Security Gate & Repair Loop
An AST parser validates that the generated SQL is strictly a read-only SELECT query, blocking any mutations or injections, with an automated 3-attempt self-healing repair loop on errors.
Synchronized Multi-Modal Presentation
Executes the query and simultaneously delivers a structured data table, interactive charts/visualizations, and an executive natural-language summary.
Security Architecture & Presentation Layer
Engineering Highlights
Capabilities & Guardrails
Product Screenshots