(improvement)(chat) fix HeuristicViewResolver choosing view (#710)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-02-01 22:02:37 +08:00
committed by GitHub
parent 491c76368c
commit c13a0e672c

View File

@@ -122,7 +122,9 @@ public class HeuristicViewResolver implements ViewResolver {
}
return null;
}
matchedViews.retainAll(agentViewIds);
if (CollectionUtils.isNotEmpty(agentViewIds)) {
matchedViews.retainAll(agentViewIds);
}
Map<Long, SemanticQuery> viewQueryModes = new HashMap<>();
for (Long viewIds : matchedViews) {
viewQueryModes.put(viewIds, null);