Spaces:
Sleeping
Sleeping
Create prompts.py
Browse files- prompts.py +13 -0
prompts.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Version 1.0 - Basic SQL Generation
|
| 2 |
+
SQL_GENERATOR_V1 = """
|
| 3 |
+
You are a {dialect} expert.
|
| 4 |
+
Database Schema:
|
| 5 |
+
{schema}
|
| 6 |
+
|
| 7 |
+
User Request: {user_input}
|
| 8 |
+
|
| 9 |
+
Output only the raw SQL code. No explanations.
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
# Version 1.1 - Added Safety context
|
| 13 |
+
SQL_GENERATOR_V2 = SQL_GENERATOR_V1 + "\nEnsure all SELECT statements have a LIMIT of 100."
|