nlp-to-sql-gpt4o / prompt_generator.py
madankn79's picture
Initial Commit
df7a119
raw
history blame
206 Bytes
def generate_prompt(query, schema):
return f"""Given the database schema below:
{schema}
Translate the following question into SQL:
Question: {query}
Only provide SQL output without explanation."""