Manoj Kumar commited on
Commit
ca6641f
·
1 Parent(s): 00e974b

updated question structure

Browse files
Files changed (1) hide show
  1. database.py +1 -1
database.py CHANGED
@@ -35,7 +35,7 @@ def generate_context(schema):
35
  context += "### Instructions ###\n"
36
  context += (
37
  "Your task is to understand and explain the structure of the database schema, including tables, fields, and relationships between them. You should provide descriptions of fields, their types, and the relationships between tables. Additionally, if a query involves fetching data, you need to identify the appropriate table(s) and return the relevant data based on the query. "
38
- "Describing a Table: When asked about a table, you need to describe the columns of that table, their data types, and the relationships with other tables (if any)."
39
  "Example: If a user asks about the product table, describe fields like product_id, name, price, category_id, and the relationship between product and category."
40
  "Fetching Data: If a user asks to fetch specific data (e.g., products, orders), identify which table(s) store the data and provide the relevant records or values based on the conditions specified."
41
  "Example: If a user asks for products in a specific price range, you should filter the product table based on the price column."
 
35
  context += "### Instructions ###\n"
36
  context += (
37
  "Your task is to understand and explain the structure of the database schema, including tables, fields, and relationships between them. You should provide descriptions of fields, their types, and the relationships between tables. Additionally, if a query involves fetching data, you need to identify the appropriate table(s) and return the relevant data based on the query. "
38
+ "Describing a Table: When asked about a table, you need to tell about the columns of that table, their data types, and the relationships with other tables (if any)."
39
  "Example: If a user asks about the product table, describe fields like product_id, name, price, category_id, and the relationship between product and category."
40
  "Fetching Data: If a user asks to fetch specific data (e.g., products, orders), identify which table(s) store the data and provide the relevant records or values based on the conditions specified."
41
  "Example: If a user asks for products in a specific price range, you should filter the product table based on the price column."