Artificial Intelligence, Machine Learning, Data Science, Python, Programming.
that defines a template for generating prompts to send to a language model. The template includes placeholders for an input question ({query_str}), the SQL query generated based on that question ({sql_query}), and the SQL response or result of executing the query ({context_str}). The template is