AmandaHydar commited on
Commit
770b890
·
1 Parent(s): 94c049a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -60,9 +60,21 @@ if index is None:
60
  st.warning("Please enter your api key first.")
61
 
62
  text = st.text_input("Query text:", value="Insert PQL here to generate Definitions or ask a PQL related question")
63
- sub_prompt_instruction = "For the provided list of PQL queries, write the definition for each one. For example, if given this string: [QUERY: COUNT_TABLE(\"_CEL_AP_ACTIVITIES\")], return an html formatted answer with definition and corresponding query each on its own line and numerated as a list like this and keep the same order in which the queries were provided:"
64
 
 
 
65
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
  combined_prompt = f"{sub_prompt_instruction} {text}"
68
 
 
60
  st.warning("Please enter your api key first.")
61
 
62
  text = st.text_input("Query text:", value="Insert PQL here to generate Definitions or ask a PQL related question")
 
63
 
64
+ sub_prompt_instruction = """
65
+ "For the provided list of PQL queries, write the definition for each one. For example, if given this string: [QUERY: COUNT_TABLE(\"_CEL_AP_ACTIVITIES\")], return an html formatted answer with definition and corresponding query each on its own line and numerated as a list like this and keep the same order in which the queries were provided:
66
 
67
+ 1.) DEFINITION: Get a full count of the activities table.
68
+ QUERY: COUNT_TABLE(\"_CEL_AP_ACTIVITIES\")\\n\\n
69
+
70
+ 2.) DEFINITION: Your next definition here.
71
+ QUERY: Your next query here.\\n\\n
72
+
73
+ 3.) DEFINITION: Another definition here.
74
+ QUERY: Another query here.\\n\\n
75
+
76
+ ..."
77
+ """
78
 
79
  combined_prompt = f"{sub_prompt_instruction} {text}"
80