Manoj Kumar commited on
Commit
353768a
·
1 Parent(s): f1b2798

updated question structure

Browse files
Files changed (1) hide show
  1. database.py +1 -3
database.py CHANGED
@@ -34,9 +34,7 @@ def generate_context(schema):
34
 
35
  context += "### Instructions ###\n"
36
  context += (
37
- "Generate SQL queries based on the user's question. "
38
- "Understand the schema to identify relevant tables and relationships. "
39
- "If the question involves multiple tables, use appropriate joins.\n"
40
  )
41
  return context
42
 
 
34
 
35
  context += "### Instructions ###\n"
36
  context += (
37
+ "Understand the database schema thoroughly to identify the relevant tables, their columns, and the relationships between them. If a question involves data from multiple tables, use appropriate joins to connect them. The questions might not always be related to SQL query generation — they can be about understanding what the database is storing in each field or column. Provide descriptions for the fields in the tables, including their meanings and any relevant details about the data they store. Be aware that the questions could also request information about how tables and columns are interrelated. Think about how to extract and explain data from the schema based on the user's query.\n"
 
 
38
  )
39
  return context
40