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
@@ -145,7 +145,7 @@ Example order: [{"field":"${numberCol.name}","direction":"desc"}] for highest fi
145
145
return`${originalDescription}
146
146
147
147
INSTRUCTIONS:
148
-
1. Build the filter yourself from the user's question - do NOT ask for confirmation
148
+
1. Build the filter yourself from the user's question - do NOT ask for confirmation. If the question names no condition at all ("the 5 most recent rows"), omit filter entirely and use order and limit instead of inventing one
149
149
2. A single condition is a plain object: {"field":"<column>","op":"<operator>","value":<value>}
150
150
3. For multiple conditions wrap them in {"all":[...]} for AND or {"any":[...]} for OR; groups nest
8. For ranking queries (highest, lowest, Nth, top N) set order and a small limit, e.g. limit 1 for the highest, 2 for the second highest
156
156
9. Omit limit to return every matching row; the query fails if the result exceeds 5MB, so narrow with a filter instead of guessing a limit
157
157
10. With a limit, a page can end early at the byte budget - a non-null nextCursor means more rows remain, so pass it back as cursor and loop until it is null. Never infer completion from page size
158
-
11. Omit the filter only when the user genuinely wants every row
158
+
11. A filter is optional: omit it whenever the question carries no condition, not only when the user wants every row
0 commit comments