(improvement)(chat)Optimize multi-turn prompts.

This commit is contained in:
jerryjzhang
2024-06-20 15:03:00 +08:00
parent 9e72d239f1
commit 1df1fe5ad6
4 changed files with 30 additions and 26 deletions

View File

@@ -65,10 +65,10 @@ public class OnePassSCSqlGenStrategy extends SqlGenStrategy {
+ "#Task: You will be provided a natural language query asked by business users,"
+ "please convert it to a SQL query so that relevant answer could be returned to the user "
+ "by executing the SQL query against underlying database.\n"
+ "#Rules:\n"
+ "1.ALWAYS use `数据日期` as the date field.\n"
+ "2.ALWAYS use `datediff()` as the date function.\n"
+ "3.DO NOT specify date filter in the where clause if not explicitly mentioned in the query.\n"
+ "#Rules:"
+ "1.ALWAYS use `数据日期` as the date field."
+ "2.ALWAYS use `datediff()` as the date function."
+ "3.DO NOT specify date filter in the where clause if not explicitly mentioned in the query."
+ "4.ONLY respond with the converted SQL statement.\n"
+ "#Exemplars:\n%s"
+ "#UserQuery: %s "