(improvement)(chat) Fix the issue where the query gets stuck when two terms appear simultaneously. (#1581)

This commit is contained in:
lexluo09
2024-08-18 00:16:55 +08:00
committed by GitHub
parent 07e0ba24bc
commit 2801b27ade
2 changed files with 28 additions and 32 deletions

View File

@@ -47,8 +47,6 @@ public class ChatWorkflowEngine {
parseResult.setState(ParseResp.ParseState.FAILED);
parseResult.setErrorMsg("No semantic entities can be mapped against user question.");
queryCtx.setChatWorkflowState(ChatWorkflowState.FINISHED);
} else if (queryCtx.getMapInfo().needContinueMap()) {
queryCtx.setChatWorkflowState(ChatWorkflowState.MAPPING);
} else {
queryCtx.setChatWorkflowState(ChatWorkflowState.PARSING);
}