[improvement][chat]Move generation of semantic text info and rewrite of error message to dedicated ResultProcessor.

This commit is contained in:
jerryjzhang
2024-10-27 22:34:16 +08:00
parent bb363a0286
commit b69ee81d58
13 changed files with 165 additions and 124 deletions

View File

@@ -114,8 +114,7 @@ public abstract class BaseMapper implements SchemaMapper {
return element.getAlias();
}
public <T> List<T> getMatches(ChatQueryContext chatQueryContext,
BaseMatchStrategy matchStrategy) {
public <T> List<T> getMatches(ChatQueryContext chatQueryContext, MatchStrategy matchStrategy) {
String queryText = chatQueryContext.getRequest().getQueryText();
List<S2Term> terms =
HanlpHelper.getTerms(queryText, chatQueryContext.getModelIdToDataSetIds());