Prompt2Query — turn natural language prompts into database query results.
Watch a short demo below to see the agent in action:
Here is a high-level overview of how the NL2SQL agent processes requests:
- ✅ AI Query Generator – Converts natural language questions into optimized SQL queries.
- ✅ Database Integration – Connects securely to your database to execute queries dynamically.
- ✅ Automated Setup – Easy initialization using the provided
setup_db.pyscript. - ✅ Beautiful Result Display – Clean and interactive tabular view for query results.
- ✅ Secure Configuration – Environment variable management using
.env.examplefor secure deployment.
Here is an overview of the repository files:
📦SQL-AGENT/
├── .env.example # Template for environment variables
├── LICENSE # MIT License file
├── README.md # Project documentation (this file)
├── app.py # Main application script (Frontend/Logic)
├── gif.gif # Demonstration animation
├── nl2sql_architecture.svg # System architecture diagram
├── requirements.txt # Python dependencies
└── setup_db.py # Script to initialize the database
