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
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,11 @@ def __init__(
74
74
"You MUST use only these methods:\n"
75
75
"\n{filters}\n"
76
76
"It is VERY IMPORTANT not to use methods other than those listed above."
77
+
"If a called function argument value is not directly specified in the query but instead requires knowledge of some additional context, than substitute that argument value by: BaseCallerContext()."
78
+
'The typical input phrase referencing some additional context contains the word "my" or similar phrasing, e.g. "my position name", "my company valuation".'
79
+
"In that case, the part of the output will look like this:"
80
+
"filter4(BaseCallerContext())"
81
+
"It is VERY IMPORTANT not to use methods other than those listed above."
77
82
"""If you DON'T KNOW HOW TO ANSWER DON'T SAY \"\", SAY: `UNSUPPORTED QUERY` INSTEAD! """
78
83
"This is CRUCIAL, otherwise the system will crash. "
0 commit comments