A natural language interface for querying airline/flight data using LLMs
✈️ Natural language to SQL conversion using LLMs- 🔍 SQL query validation and execution
- 📊 Results conversion to human-readable format
- 🌐 Web interface for easy interaction
- ✅ Comprehensive testing suite
- 📁 Structured project layout with Poetry dependency management
- Python 3.9+
git clone https://github.com/gtmray/smart-air
cd smart-airpip install poetrypoetry installHOSTNAME=localhost
PORT=<YOUR_AVAILABLE_PORT>
API_TYPE=<enter azure if using azure else comment this out>
OPENAI_API_VERSION=<YOUR_API_VERSION_IF_USING_AZURE_API_TYPE>
API_BASE_URL=<YOUR_API_BASE_URL>
API_KEY=<YOUR_API_KEY>
MODEL_NAME=<YOUR_MODEL_NAME>See: https://github.com/Kaggle/kagglehub or download from kaggle UI
poetry run python src/sqlite_db/create.pypoetry run src/app/main.pyhttp://localhost:<YOUR_ASSIGNED_PORT>- Integrate industry standard database
- Implement caching for frequently asked queries
- Improve UI/UX for better user experience
- Optimize query execution performance
- Consider LLM’s token limit and output result consider it
- Add support for real-time streaming data
- Explore multi-model orchestration for complex queries
- Expand testing coverage to include performance benchmarks
