An advanced database management system that converts natural language queries into SQL commands.
Try the demo here: nl2sqldb.streamlit.app
Will probably shut this down soon.
- Natural language to SQL query conversion
- In-memory SQLite database (using chinook.db as an example)
- Intelligent query analysis and execution
- Human-readable response formatting
- Built with LangChain's SQL operator
- Input: User asks questions about the database in plain English
- Analysis: Agent analyzes and understands the user query
- Generation: System generates appropriate SQL query
- Execution: Query is executed against the database
- Output: Results are returned in formatted, plain English
- Framework: Streamlit
- Database: SQLite (in-memory)
- NLP: LangChain SQL Operator
- Language: Python
- Python
- Streamlit
- LangChain
- SQLite3
# Clone the repo
# Install dependencies
pip install -r requirements.txt
# Run the application
streamlit run app.py- "Show me all customers from New York"
- "How is the Invoice table related with the Customers?"
- "How many orders were placed last month?"
Made this for my fourth semester. Bossman couldn't see the value. Hope Seecs will have better teachers in the future (low probability). Feel free to fork and use, you might have better luck than I did.