fix(RAGDiaryPlugin): 优化 TimeDecay 目标标签匹配逻辑#234
Merged
lioensky merged 1 commit intolioensky:mainfrom Mar 12, 2026
Merged
Conversation
本次修改旨在解决 TimeDecay 功能中,目标标签匹配规则可能过于严格,导致部分符合条件的条目未能正确应用时间衰减的问题。 - 放宽向量库结构化标签的匹配规则,支持部分匹配(如“box”可匹配“Box审计”) - 将文本内容匹配改为更宽泛的包含检测,并支持中文无边界情况 - 保留对特定标签格式(如 #Tag、【Tag】)的正则匹配作为回退方案 - 在 TimeDecay 参数解析处添加注释,提示当前格式可能存在问题
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.
本次修改旨在解决 TimeDecay 功能中,目标标签匹配规则可能过于严格,导致部分符合条件的条目未能正确应用时间衰减的问题。