AmandaHydar commited on
Commit
bc9288f
·
1 Parent(s): c56805a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -16
app.py CHANGED
@@ -72,22 +72,6 @@ QUERY: [PQL Query 2],
72
 
73
  [Continue for all queries in the list]
74
 
75
- For example, if given this list of PQL queries:
76
-
77
- [QUERY: COUNT_TABLE(\"_CEL_AP_ACTIVITIES\"),
78
- QUERY: SUM( CASE\n WHEN KPI(\"FORMULA_Activity_CLASSIFICATION_UserType\") = 'MANUAL'\n THEN 1 ELSE NULL\nEND )*1.0,
79
- QUERY: SUM( \n CASE\n WHEN \"_CEL_AP_ACTIVITIES\".\"ACTIVITY_EN\" NOT IN ( 'Due Date passed', 'Cash Discount Due Date passed', 'Vendor Creates Invoice', 'Record Goods Receipt')\n THEN 1 ELSE 0\n END \n)]
80
-
81
- The output should be as follows:
82
-
83
- 1. DEFINITION: Get a full count of the activities table.
84
- QUERY: COUNT_TABLE(\"_CEL_AP_ACTIVITIES\"),
85
-
86
- 2. DEFINITION: Get a count of the number of activities with manual users.
87
- QUERY: SUM( CASE\n WHEN KPI(\"FORMULA_Activity_CLASSIFICATION_UserType\") = 'MANUAL'\n THEN 1 ELSE NULL\nEND )*1.0,
88
-
89
- 3. DEFINITION: Get a count of the number of activities that are not titled 'Due Date passed', 'Cash Discount Due Date passed', 'Vendor Creates Invoice', or 'Record Goods Receipt'.
90
- QUERY: SUM( \n CASE\n WHEN \"_CEL_AP_ACTIVITIES\".\"ACTIVITY_EN\" NOT IN ( 'Due Date passed', 'Cash Discount Due Date passed', 'Vendor Creates Invoice', 'Record Goods Receipt')\n THEN 1 ELSE 0\n END \n)
91
  """
92
 
93
  combined_prompt = f"{sub_prompt_instruction} {text}"
 
72
 
73
  [Continue for all queries in the list]
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  """
76
 
77
  combined_prompt = f"{sub_prompt_instruction} {text}"