Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Xindus
/
nlp-to-sql-gpt4o
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
70b04b6
nlp-to-sql-gpt4o
/
prompt_generator.py
madankn79
Initial Commit
df7a119
about 1 month ago
raw
Copy download link
history
blame
Safe
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."""