Understand the SQLCoder prompt structure
mainSQLCoder uses a specific prompt template to transform natural language questions into SQL queries. The prompt consists of four main sections: a Task definition, Instructions for handling unknown questions, the Database Schema (provided as a metadata string), and an Answer section that guides the model to output the SQL within [SQL] tags.
To use this effectively, you must provide the {user_question} and the {table_metadata_string} representing your database schema.