diff --git a/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/LLMRequestService.java b/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/LLMRequestService.java index 58781df716..d7a0b6fc0d 100644 --- a/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/LLMRequestService.java +++ b/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/LLMRequestService.java @@ -75,7 +75,7 @@ public LLMReq getLlmReq(ChatQueryContext queryCtx, Long dataSetId) { } llmReq.setCurrentDate(DateUtils.getBeforeDate(0)); - llmReq.setTerms(getTerms(queryCtx, dataSetId)); + llmReq.setTerms(getMappedTerms(queryCtx, dataSetId)); llmReq.setSqlGenType( LLMReq.SqlGenType.valueOf(parserConfig.getParameterValue(PARSER_STRATEGY_TYPE))); llmReq.setModelConfig(queryCtx.getModelConfig()); @@ -94,7 +94,7 @@ public LLMResp runText2SQL(LLMReq llmReq) { return result; } - protected List getTerms(ChatQueryContext queryCtx, Long dataSetId) { + protected List getMappedTerms(ChatQueryContext queryCtx, Long dataSetId) { List matchedElements = queryCtx.getMapInfo().getMatchedElements(dataSetId); if (CollectionUtils.isEmpty(matchedElements)) {