SQLCoder 2
About
SQLCoder 2 is an advanced large language model developed by Defog AI that specializes in transforming natural language questions into SQL queries. It outperforms models like GPT-3.5-turbo and GPT-4 (when fine-tuned on specific schemas) in delivering precise SQL code from natural language inputs. Based on the 15B parameter StarCoder model, SQLCoder 2 is trained on over 20,000 human-curated questions across various database schemas, making it adept at executing complex queries involving joins, aggregations, and date filtering. This model empowers non-technical users to perform data analysis in SQL databases, facilitating self-service analytics without the need for SQL expertise. SQLCoder 2 is available on the Hugging Face platform and includes a user-friendly demo on the Defog website 234.