Turning natural language into production-safe by Ojaswi BarotiaTurning natural language into production-safe by Ojaswi Barotia

Turning natural language into production-safe

Portfolio project
Ojaswi Barotia
Turning natural language into production-safe SQL with zero unindexed table scans ๐Ÿ—„๏ธโšก
Text-to-SQL agents fail miserably in enterprise setups because raw LLMs generate unoptimized queries that cause full-table locks or expose sensitive schema tables.
Currently developing a deterministic, safety-guarded database co-pilot:
AST & Schema Sandboxing: Parses user questions into strict Abstract Syntax Trees (AST) before generating SQL, completely preventing destructive DROP or unauthorized mutation commands.
Cost-Based Query Plan Analysis: Analyzes the generated query using EXPLAIN ANALYZE before execution. If an unindexed sequential scan or query cost exceeds predefined thresholds, execution halts automatically.
Auto-Index Recommendation: Detects frequent high-latency query patterns and auto-drafts optimized migration index scripts for DBAs to review.
Strict Role-Based Context: Maps enterprise RBAC schemas directly to the vector memory, ensuring junior staff queries never expose payroll or executive tables.
Democratizing data warehouse access without risking production database crashes.
Preview of the execution safety pipeline below! ๐Ÿ‘‡
#DatabaseEngineering #TextToSQL #AIAgents #Python #PostgreSQL #DataInfrastructure #BuildInPublic

0 likes ยท 0 views ยท Oct 15, 2026

Turning natural language into production-safe SQL with zero unindexed table scans ๐Ÿ—„๏ธโšก Text-to-SQL agents fail miserably in enterprise setups because raw LLM...

Tags