[improvement][headless-chat]Prompt LLM to generate with SQL statement to handle secondary calculation scenario.

This commit is contained in:
jerryjzhang
2024-10-08 15:01:07 +08:00
parent ee6b8a1044
commit 569ebfc7b2

View File

@@ -36,6 +36,7 @@ public class OnePassSCSqlGenStrategy extends SqlGenStrategy {
+ "\n4.DO NOT calculate date range using functions."
+ "\n5.DO NOT calculate date range using DATE_SUB."
+ "\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#Question:\nQuestion:{{question}},Schema:{{schema}},SideInfo:{{information}}";