(improvement)(Headless) The python module supports reading the LLM information of the agent configuration (#1067)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-05-31 21:20:15 +08:00
committed by GitHub
parent c25dbc2cef
commit f0f57d09eb
3 changed files with 14 additions and 8 deletions

View File

@@ -6,6 +6,12 @@ import com.tencent.supersonic.headless.core.chat.knowledge.HanlpMapResult;
import com.tencent.supersonic.headless.core.chat.knowledge.KnowledgeBaseService;
import com.tencent.supersonic.headless.core.config.OptimizationConfig;
import com.tencent.supersonic.headless.core.pojo.QueryContext;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashSet;
@@ -14,11 +20,6 @@ import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* HanlpDictMatchStrategy uses <a href="https://www.hanlp.com/">HanLP</a> to

View File

@@ -33,7 +33,7 @@ public class QueryStatement {
private SemanticModel semanticModel;
private SemanticSchemaResp semanticSchemaResp;
private Integer limit;
private Integer limit = 1000;
public boolean isOk() {
this.ok = "".equals(errMsg) && !"".equals(sql);