You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/dbally/iql_generator/prompt.py
+7-1
Original file line number
Diff line number
Diff line change
@@ -76,10 +76,16 @@ def __init__(
76
76
"It is VERY IMPORTANT not to use methods other than those listed above.\n"
77
77
"Finally, if a called function argument value is not directly specified in the query but instead requires "
78
78
"some additional execution context, than substitute that argument value with: AskerContext().\n"
79
-
'The typical input phrase suggesting that the additional execution context need to be referenced contains words like: "I", "my", "mine", "current", "the" etc..\n'
79
+
"The typical input phrase suggesting that the additional execution context need to be referenced \n"
80
+
'contains words like: "I", "my", "mine", "current", "the" etc..\n'
80
81
'For example: "my position name", "my company valuation", "current day", "the ongoing project".\n'
81
82
"In that case, the part of the output will look like this:\n"
82
83
"filter4(AskerContext())\n"
84
+
"Outside this situation DO NOT combine filters like this:\n"
85
+
"filter4(filter2())\n"
86
+
"And NEVER quote the filter argument unless you're sure it represents the string/literal datatype, \n"
87
+
"Especially do not quote AskerContext() calls like this:\n"
88
+
"filter2('AskerContext()')\n"
83
89
"""If you DON'T KNOW HOW TO ANSWER DON'T SAY \"\", SAY: `UNSUPPORTED QUERY` INSTEAD! """
84
90
"This is CRUCIAL, otherwise the system will crash. "
"DO NOT INCLUDE arguments names in your response. Only the values.\n"
23
23
"You MUST use only these methods:\n"
24
24
"\n\n"
25
-
"It is VERY IMPORTANT not to use methods other than those listed above."
26
-
"Finally, if a called function argument value is not directly specified in the query but instead requires some additional execution context, than substitute that argument value with: AskerContext()."
27
-
'The typical input phrase suggesting that the additional execution context need to be referenced contains words like: "I", "my", "mine", "current", "the" etc..'
28
-
'For example: "my position name", "my company valuation", "current day", "the ongoing project".'
29
-
"In that case, the part of the output will look like this:"
30
-
"filter4(AskerContext())"
25
+
"It is VERY IMPORTANT not to use methods other than those listed above.\n"
26
+
"Finally, if a called function argument value is not directly specified in the query but instead requires "
27
+
"some additional execution context, than substitute that argument value with: AskerContext().\n"
28
+
"The typical input phrase suggesting that the additional execution context need to be referenced \n"
29
+
'contains words like: "I", "my", "mine", "current", "the" etc..\n'
30
+
'For example: "my position name", "my company valuation", "current day", "the ongoing project".\n'
31
+
"In that case, the part of the output will look like this:\n"
32
+
"filter4(AskerContext())\n"
33
+
"Outside this situation DO NOT combine filters like this:\n"
34
+
"filter4(filter2())\n"
35
+
"And NEVER quote the filter argument unless you're sure it represents the string/literal datatype, \n"
36
+
"Especially do not quote AskerContext() calls like this:\n"
37
+
"filter2('AskerContext()')\n"
31
38
"""If you DON'T KNOW HOW TO ANSWER DON'T SAY \"\", SAY: `UNSUPPORTED QUERY` INSTEAD! """
32
39
"This is CRUCIAL, otherwise the system will crash. ",
"DO NOT INCLUDE arguments names in your response. Only the values.\n"
58
65
"You MUST use only these methods:\n"
59
66
"\n\n"
60
-
"It is VERY IMPORTANT not to use methods other than those listed above."
61
-
"Finally, if a called function argument value is not directly specified in the query but instead requires some additional execution context, than substitute that argument value with: AskerContext()."
62
-
'The typical input phrase suggesting that the additional execution context need to be referenced contains words like: "I", "my", "mine", "current", "the" etc..'
63
-
'For example: "my position name", "my company valuation", "current day", "the ongoing project".'
64
-
"In that case, the part of the output will look like this:"
65
-
"filter4(AskerContext())"
67
+
"It is VERY IMPORTANT not to use methods other than those listed above.\n"
68
+
"Finally, if a called function argument value is not directly specified in the query but instead requires "
69
+
"some additional execution context, than substitute that argument value with: AskerContext().\n"
70
+
"The typical input phrase suggesting that the additional execution context need to be referenced \n"
71
+
'contains words like: "I", "my", "mine", "current", "the" etc..\n'
72
+
'For example: "my position name", "my company valuation", "current day", "the ongoing project".\n'
73
+
"In that case, the part of the output will look like this:\n"
74
+
"filter4(AskerContext())\n"
75
+
"Outside this situation DO NOT combine filters like this:\n"
76
+
"filter4(filter2())\n"
77
+
"And NEVER quote the filter argument unless you're sure it represents the string/literal datatype, \n"
78
+
"Especially do not quote AskerContext() calls like this:\n"
79
+
"filter2('AskerContext()')\n"
66
80
"""If you DON'T KNOW HOW TO ANSWER DON'T SAY \"\", SAY: `UNSUPPORTED QUERY` INSTEAD! """
67
81
"This is CRUCIAL, otherwise the system will crash. ",
0 commit comments