(improvement)(Headless) Add Text2SQLType to control whether rules and large models are passed (#891)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-04-07 14:33:17 +08:00
committed by GitHub
parent 12e25c0c50
commit 5f6e9ae194
8 changed files with 48 additions and 17 deletions

View File

@@ -2,6 +2,7 @@ package com.tencent.supersonic.headless.api.pojo.request;
import com.google.common.collect.Sets;
import com.tencent.supersonic.auth.api.authentication.pojo.User;
import com.tencent.supersonic.common.pojo.enums.Text2SQLType;
import com.tencent.supersonic.headless.api.pojo.SchemaMapInfo;
import lombok.Data;
@@ -15,6 +16,6 @@ public class QueryReq {
private User user;
private QueryFilters queryFilters;
private boolean saveAnswer = true;
private boolean enableLLM;
private Text2SQLType text2SQLType = Text2SQLType.RULE_AND_LLM;
private SchemaMapInfo mapInfo = new SchemaMapInfo();
}