(improvement)(chat) Modify the default configuration related to text2sql numbers. (#575)

This commit is contained in:
lexluo09
2023-12-27 20:39:08 +08:00
committed by GitHub
parent b706c4efb4
commit 6c8ebdfe1a
2 changed files with 4 additions and 4 deletions

View File

@@ -64,13 +64,13 @@ public class OptimizationConfig {
@Value("${s2SQL.use.switch:true}")
private boolean useS2SqlSwitch;
@Value("${text2sql.example.num:10}")
@Value("${text2sql.example.num:15}")
private int text2sqlExampleNum;
@Value("${text2sql.fewShots.num:5}")
@Value("${text2sql.fewShots.num:10}")
private int text2sqlFewShotsNum;
@Value("${text2sql.self.consistency.num:2}")
@Value("${text2sql.self.consistency.num:5}")
private int text2sqlSelfConsistencyNum;
@Value("${text2sql.collection.name:text2dsl_agent_collection}")

View File

@@ -107,7 +107,7 @@ public class SqlPromptGenerator {
for (ElementValue priorLinking : linking) {
String fieldName = priorLinking.getFieldName();
String fieldValue = priorLinking.getFieldValue();
priorLinkingList.add("'" + fieldValue + "'是一个'" + fieldName + "'");
priorLinkingList.add("" + fieldValue + "是一个" + fieldName + "");
}
String currentDataStr = "当前的日期是" + currentDate;
String linkingListStr = String.join("", priorLinkingList);