Schema Linking for Text-to-SQL using LLM-generated Metadata Descriptions
While building an LLM-powered Text-to-SQL framework, many developers encounter a fundamental issue when scaling into production databases: it is not scalable to pass the whole database schema to the LLM prompt and expect the LLM to handle the sheer volume of data. Not only do models have limited context windows, but even those with a large enough one will eventually struggle to make sense of the database schema and distinguish which columns or tables are actually relevant to the user’s question. ...