(feature)(chat)Add switch to enable LLM-based memory review, as it leads to more token costs. #1385

This commit is contained in:
jerryjzhang
2024-07-10 21:08:02 +08:00
parent 78a91ad8c2
commit 9bb95ca4be
7 changed files with 19 additions and 5 deletions

View File

@@ -56,8 +56,8 @@ public class ParseInfoProcessor implements ResultProcessor {
if (StringUtils.isBlank(correctS2SQL)) {
return;
}
List<FieldExpression> expressions = SqlSelectHelper.getFilterExpression(correctS2SQL);
//set dataInfo
try {
if (!org.apache.commons.collections.CollectionUtils.isEmpty(expressions)) {
@@ -70,6 +70,9 @@ public class ParseInfoProcessor implements ResultProcessor {
log.error("set dateInfo error :", e);
}
if (correctS2SQL.equals(sqlInfo.getParsedS2SQL())) {
return;
}
//set filter
Long dataSetId = parseInfo.getDataSetId();
try {