Repository navigation
fix(retrieval): 合并桥接来源匹配的去重分组 - #343
Merged
Merged
Conversation
3 of 5 tasks
This was referenced Oct 28, 2026
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.
Summary
当一个检索结果同时匹配两个已建立的重复分组时,当前实现只加入第一个分组,留下另一个分组作为“独立来源”。例如 A 与 C 的 canonical URL 相同、B 与 C 的 excerpt 相同,输入
[A, B, C]会产生 2 个来源簇,而[A, C, B]产生 1 个;重复新闻也会额外进入 Research 合成输入。关联 Issue
Related to #39,属于 #58 合并后现有实现的独立 Bug 修复,不关闭整个检索 roadmap。
测试报告
环境:Bun 1.4.2 / macOS 26.4 / arm64。
依赖安装:
bun install --frozen-lockfile --ignore-scripts(未运行 Electron 等安装脚本,依赖及 lockfile 无改动)。修改前对照
原有 ranking 测试:12 pass / 0 fail。
仅加入本 PR 的测试、保持
ranking.ts为当前 main(ec0b8d2791f343495533a7425e6d3ecab97977b2):修复后实际结果
本地按 PR workflow 的高信号规则扫描代码:0 个 secret 模式命中。
UI / Scope