[improvement][headless-chat]Iterate the Text2SQL prompt.

This commit is contained in:
jerryjzhang
2024-10-10 14:04:37 +08:00
parent 0299743c69
commit febcb01cd3

View File

@@ -35,7 +35,8 @@ public class OnePassSCSqlGenStrategy extends SqlGenStrategy {
+ "\n4.DO NOT calculate date range using functions."
+ "\n5.DO NOT miss the AGGREGATE operator of metrics, always add it as needed."
+ "\n6.ALWAYS use `with` statement if nested aggregation is needed."
+ "\n7.ALWAYS enclose alias created by `AS` command in underscores and translate to the same language as the `Question`."
+ "\n7.ALWAYS enclose alias created by `AS` command in underscores."
+ "\n8.ALWAYS translate alias created by `AS` command to the same language as the `#Question`."
+ "\n#Exemplars: {{exemplar}}"
+ "\n#Question: Question:{{question}},Schema:{{schema}},SideInfo:{{information}}";