AI / Backend

QueryMind

Role

Founder & Developer

Timeline

2026

LiveDemo
SourceRepo
QueryMind

Overview

Secure AI-powered Text-to-SQL engine with real-time execution.

QueryMind is an end-to-end Text-to-SQL platform that translates natural language into validated PostgreSQL queries using Gemini 2.5 and FastAPI backend. It features DML/DDL injection prevention and real-time SSE-based streaming dashboard.

The Challenge

NEED

Business users struggle to write SQL queries safely. Existing Text-to-SQL systems are prone to injection risks and unreliable outputs.

Obstacles Faced

01

Preventing DML/DDL injection risks

02

Ensuring SQL validation before execution

03

Streaming LLM responses efficiently

04

Handling large database context

Feature Engine

  • Built security layer eliminating injection risks
  • Used Fernet encryption for credential safety
  • Implemented SSE streaming in Next.js dashboard
  • Used Gemini 2.5 for SQL generation
FastAPINext.js 15SQLAlchemyNeonDBGemini 2.5PineconeDockerClerk

Outcomes & Impact

Enabled safe automated query generation

Reduced manual SQL dependency

Secure multi-database connection management

System Architecture

1

Multi-database connection management

2

Vector storage via Pinecone

3

Dockerized deployment

4

FastAPI backend with SSE streaming

Execution Lessons

Secure AI system design

Database query validation pipelines

Vector storage and retrieval

SSE streaming implementation