Skip to main content
Rohit Raj
StartseiteProjekteServicesReposNotizenÜber michKontaktAktuelle Arbeit
← Projekte

StellarMIND — Chat-to-SQL with RAG

Active
Spring BootSpring AIPostgreSQLpgvectorMCP ProtocolOpenAI
Repository Ansehen ↗
StellarMIND — Chat-to-SQL with RAG interface screenshot
📸Live Application Interface

Problem

Business users need to query databases without knowing SQL. Existing tools lack context-aware query generation and safety guarantees.

Business Impact

Data democratization requires non-technical users to access insights without engineering bottlenecks. Raw LLM-to-SQL is unreliable. RAG with schema context fixes this.

System Approach

  • Spring Boot MCP server with Tool interface for executeDataQuery
  • pgvector for storing schema knowledge chunks and embeddings
  • Spring AI for LLM integration (provider-agnostic — works with OpenAI, Anthropic, etc.)
  • Chain-of-Thought (CoT) web interface for query debugging and transparency
  • Read-only SQL enforcement via query parsing (only SELECT, WITH allowed)

Key Decisions & Trade-offs

  • Read-only restriction limits use cases but ensures database safety
  • pgvector requires PostgreSQL — not database-agnostic, but worth the trade-off
  • MCP transport (stdio) over HTTP for better AI assistant integration
  • Separate stellarmind-server and stellarmind-client for modularity

Current Status

Core query flow working. CoT UI functional. Newman test suite passing.

Roadmap

  • Add support for streaming responses
  • Implement query history and favorites
  • Add schema auto-discovery

What I'd Improve Next

  • Could add query result visualization
  • Consider supporting multiple database connections

Explore More

  • ClinicAI — WhatsApp AI Clinic Assistant — India has 12 lakh+ small clinics running on phone calls and paper diaries.
  • MicroItinerary — AI Travel Planner — Travel apps optimize for proximity and ratings.
  • MyFinancial — Personal Financial Advisor — Financial planning in India is fragmented across banks, insurance, and tax documents.
  • SanatanApp — Hindu Devotional App — Devotional users in India juggle 5+ separate apps for Chalisa, Gita, Aarti, Ramayan, and Mahabharat.
  • SynFlow — Enterprise Intelligence Platform — Private deal networks rely on manual introductions and spreadsheets.
  • FinBaby (Jama) — Personal Finance Tracker — Indian middle-class families track expenses across UPI apps, bank statements, and paper notebooks.
  • RetailOS — Multi-Tenant Retail SaaS — Indian kirana stores and small retailers use paper registers or basic billing software with no inventory tracking, no GST compliance, and no offline support.
  • TripHive — Offline-First Collaborative Trip Planner — Group trip planning is fragmented across WhatsApp, Google Docs, Maps, Splitwise, and email.
  • ScamRakshak — On-Device AI Scam Detector — Indians lose thousands of crores annually to digital scams via WhatsApp, SMS, and social media.
  • PaisaGuard — Family Budget Survival App — Middle-class families worldwide track expenses inconsistently — UPI apps show transactions but don't enforce budgets.
  • rohitraj.tech — Engineering work is often invisible.
  • Reliability & Production Readiness — Load testing, observability, and API contracts.
  • Open Source Repos — Browse the source code behind these projects.

Rohit Raj — Backend & KI-Systeme Ingenieur

Services

Mobile App DevelopmentAI Chatbot DevelopmentFull-Stack Development

Updates Erhalten