重构 AppScanner 的语义匹配逻辑,使用规则 + 优先级替代原有 Map 映射,支持自然语言搜索并减少歧义匹配问题#29
Open
hexwarrior6 wants to merge 1 commit intoTurbo1123:mainfrom
Open
重构 AppScanner 的语义匹配逻辑,使用规则 + 优先级替代原有 Map 映射,支持自然语言搜索并减少歧义匹配问题#29hexwarrior6 wants to merge 1 commit intoTurbo1123:mainfrom
hexwarrior6 wants to merge 1 commit intoTurbo1123:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
原有语义搜索基于
Map<String, String>的完全匹配方式,只能处理精确关键词,无法覆盖用户的自然语言输入场景,且对歧义词支持较弱。本次修改
Map重构为规则列表(SemanticRule)matchCategory方法作为统一语义匹配入口效果
ps: 当然这也不是最优解,一个可能的优化方向是将规则匹配作为第一层筛选,在低置信度情况下交给大模型做意图判断