mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-15 06:27:21 +00:00
[improvement][chat]Sort parses in NL2SQLParser right after rule-based parsing.
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
package com.tencent.supersonic.common.pojo.enums;
|
||||
|
||||
public enum Text2SQLType {
|
||||
ONLY_RULE, ONLY_LLM, LLM_OR_RULE;
|
||||
|
||||
public boolean enableRule() {
|
||||
return this.equals(ONLY_RULE) || this.equals(LLM_OR_RULE);
|
||||
}
|
||||
ONLY_RULE, LLM_OR_RULE;
|
||||
|
||||
public boolean enableLLM() {
|
||||
return this.equals(ONLY_LLM) || this.equals(LLM_OR_RULE);
|
||||
return this.equals(LLM_OR_RULE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user