(improvement)(Headless) Add STRICT, MODERATE, and LOOSE modes in the mapper phase. (#900)

This commit is contained in:
lexluo09
2024-04-09 16:27:57 +08:00
committed by GitHub
parent 43b9d5545d
commit d6b81249d7
13 changed files with 79 additions and 39 deletions

View File

@@ -15,7 +15,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@RestController
@RequestMapping("/api/semantic/query")
@RequestMapping("/api/semantic/meta")
@Slf4j
public class MetaDiscoveryApiController {

View File

@@ -179,6 +179,7 @@ public class ChatQueryServiceImpl implements ChatQueryService {
.mapInfo(new SchemaMapInfo())
.modelIdToDataSetIds(modelIdToDataSetIds)
.text2SQLType(queryReq.getText2SQLType())
.mapModeEnum(queryReq.getMapModeEnum())
.build();
BeanUtils.copyProperties(queryReq, queryCtx);
return queryCtx;