Spaces:
Sleeping
Sleeping
Update Classes/Owiki_Class.py
Browse files- Classes/Owiki_Class.py +6 -1
Classes/Owiki_Class.py
CHANGED
@@ -33,7 +33,12 @@ class OWiki:
|
|
33 |
return prompt_template
|
34 |
|
35 |
def create_sql_prompt_template(self,schemas):
|
36 |
-
prompt = """
|
|
|
|
|
|
|
|
|
|
|
37 |
for table_name,table_schema in schemas.items():
|
38 |
prompt+= f"Table Name: {table_name} Schema:"
|
39 |
for key,value in table_schema.items():
|
|
|
33 |
return prompt_template
|
34 |
|
35 |
def create_sql_prompt_template(self,schemas):
|
36 |
+
prompt = """You are an expert in writing SQL commands as best as you can.
|
37 |
+
Here are the rules you must follow to complete your task.
|
38 |
+
1. If you need more context about question don't hesitate to ask but don't keep on asking all the time.
|
39 |
+
2. Please make sure you answer correctly so that you will get a very high reward.
|
40 |
+
|
41 |
+
For the below schemas write an SQL query. \nSQL Schema:"""
|
42 |
for table_name,table_schema in schemas.items():
|
43 |
prompt+= f"Table Name: {table_name} Schema:"
|
44 |
for key,value in table_schema.items():
|