mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
(improvement)(chat)Optimize multi-turn prompts.
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user