anumaurya114exp commited on
Commit
c792260
·
1 Parent(s): 5fa214e
Files changed (1) hide show
  1. queryHelperManager.py +1 -1
queryHelperManager.py CHANGED
@@ -75,7 +75,7 @@ class QueryHelper:
75
  def getSystemPromptForQuery(self, prospectTablesAndCols):
76
  schemaName = self.schemaName
77
  platform = self.platform
78
- tableSummaryDict = json.load(self.tableSummaryJson)
79
  exampleQuery = """SELECT a.customer_id, COUNT(a.product_id) as chandelier_count
80
  FROM lpdatamart.tbl_f_sales a
81
  JOIN lpdatamart.tbl_d_product b ON a.product_id = b.product_id
 
75
  def getSystemPromptForQuery(self, prospectTablesAndCols):
76
  schemaName = self.schemaName
77
  platform = self.platform
78
+ tableSummaryDict = json.load(open(self.tableSummaryJson, 'r'))
79
  exampleQuery = """SELECT a.customer_id, COUNT(a.product_id) as chandelier_count
80
  FROM lpdatamart.tbl_f_sales a
81
  JOIN lpdatamart.tbl_d_product b ON a.product_id = b.product_id