mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 13:07:32 +00:00
[improvement][headless-chat]Prompt LLM to generate with SQL statement to handle secondary calculation scenario.
This commit is contained in:
@@ -36,6 +36,7 @@ public class OnePassSCSqlGenStrategy extends SqlGenStrategy {
|
|||||||
+ "\n4.DO NOT calculate date range using functions."
|
+ "\n4.DO NOT calculate date range using functions."
|
||||||
+ "\n5.DO NOT calculate date range using DATE_SUB."
|
+ "\n5.DO NOT calculate date range using DATE_SUB."
|
||||||
+ "\n6.DO NOT miss the AGGREGATE operator of metrics, always add it as needed."
|
+ "\n6.DO NOT miss the AGGREGATE operator of metrics, always add it as needed."
|
||||||
|
+ "\n7.ALWAYS USE `with` statement to handle secondary calculation scenario.\""
|
||||||
+ "\n#Exemplars:\n{{exemplar}}"
|
+ "\n#Exemplars:\n{{exemplar}}"
|
||||||
+ "\n#Question:\nQuestion:{{question}},Schema:{{schema}},SideInfo:{{information}}";
|
+ "\n#Question:\nQuestion:{{question}},Schema:{{schema}},SideInfo:{{information}}";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user