A natural-language-to-SQL analytics agent that retrieves relevant database schema and context, generates SQL queries, validates them, and executes them in a sandboxed environment. It supports multi-turn conversations and provides results with explanations.
From the README
QueryMind A natural-language-to-SQL analytics agent with RAG-grounded schema retrieval, a SQL safety guardrail, multi-turn conversation, and a labeled evaluation harness. Ask a question in plain English — "What was transaction volume last quarter by state?" — and QueryMind retrieves the relevant database schema and business-glossary context, generates a candidate SQL query with an LLM, validates that it's read-only and in-scope before it ever touches the database, executes it against a sandboxed Postgres connection, and returns a table, an auto-picked chart, and a plain-English explanation. Follow-up questions ("now filter to only Karnataka") refine the conversation rather than starting...
Skills
- Python
- JavaScript
- Dockerfile
- CSS