mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
(improvement)(Headless) Add Text2SQLType to control whether rules and large models are passed (#891)
Co-authored-by: jolunoluo
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.tencent.supersonic.common.pojo.enums;
|
||||
|
||||
public enum Text2SQLType {
|
||||
|
||||
ONLY_RULE, ONLY_LLM, RULE_AND_LLM;
|
||||
|
||||
public boolean enableRule() {
|
||||
return this.equals(ONLY_RULE) || this.equals(RULE_AND_LLM);
|
||||
}
|
||||
|
||||
public boolean enableLLM() {
|
||||
return this.equals(ONLY_LLM) || this.equals(RULE_AND_LLM);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user