mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
[improvement][chat]Modify core workflow of NL2SQLParser, always invoking rule-based parsers first.#1729
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package com.tencent.supersonic.common.pojo.enums;
|
||||
|
||||
public enum Text2SQLType {
|
||||
ONLY_RULE, ONLY_LLM, RULE_AND_LLM;
|
||||
ONLY_RULE, ONLY_LLM, LLM_OR_RULE;
|
||||
|
||||
public boolean enableRule() {
|
||||
return this.equals(ONLY_RULE) || this.equals(RULE_AND_LLM);
|
||||
return this.equals(ONLY_RULE) || this.equals(LLM_OR_RULE);
|
||||
}
|
||||
|
||||
public boolean enableLLM() {
|
||||
return this.equals(ONLY_LLM) || this.equals(RULE_AND_LLM);
|
||||
return this.equals(ONLY_LLM) || this.equals(LLM_OR_RULE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user