Repository navigation
fix(core): #263 induce_concepts 与既有概念合并 —— 300轮/3主题 从 99 个副本收敛(+30/−1) - #1114
Closed
qingfengyu153781-star wants to merge 1 commit into
Closed
qingfengyu153781-star wants to merge 1 commit into
qingfengyu153781-star wants to merge 1 commit into
Conversation
沙箱 def-impl-4a 里该修复早已完成,但一直没提交(git push 通道不通)。 本次以 main 45b8359 完整树为底重建,只取 FuRongJun-1999#263 的文件: · tests/test_issue263_induce_concepts_merge_guard.py · lingshu/core/core.py 全量逐文件自证:与 main 的差异集合恰好等于上述文件。
Owner
维护侧处置(值守第 161 轮):修面已由镜像合并,关闭指向你的修复已采纳并以镜像方式合并:PR #1164(合并提交 未直接合并 #1114 的原因:你的分支基线 45b8359 先于维护侧 #1138/#1143/#1146/#1153/#1154 系,直接合并会回退已合工作——已按净增量摘取重放到最新 main 之上。 本端读数:守卫 #263 关联:本件即此前维护侧进度帖(#263 下)所注「归纳压缩面待裁定」的落地——作者提案经审读采纳,#263 主 issue 的该待裁面就此闭合。 感谢高质量修复——压缩语义(并成员/更新代表)与「构造期不净写入」的回归保持都到位。 |
Owner
|
净增量已镜像合并(PR #1164,e2c1ec6)——本 PR 关闭以避免与已落地内容重复。感谢贡献。 |
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.
问题(lingshu #263 · 残余项 A)
induce_concepts每凑够min_cluster_size条同主题记忆就新建一个概念节点,且从不与既有概念比对。实测(沙箱复跑):300 轮 / 3 个主题 ⇒ 99 个概念节点 = 每主题 33 个互不合并的副本,
知识层净膨胀(399 vs 300 条输入)。issue 的判据是「同主题应合并为 1 个概念」。
改动
lingshu/core/core.py(+30 / −1):_summarize_cluster得到候选摘要,与既有概念(layer=KNOWLEDGE且带concept标签,最多 500 个)比 字符二元组 Jaccard;similarity_threshold⇒ 判为同主题 ⇒ 把本簇成员挂到该既有概念上(加
SIMILAR边 + 打cluster_member标签),不新建节点;未改动:既有概念的
content不改写(保其 sha / 可追溯性);累计规模不进摘要(需要规模读数请从
SIMILAR边数统计)。明确的边界(这里削掉了什么判别力)
合并判据只看摘要文本的二元组相似度,不看簇内语义;
摘要由规则式
_summarize_cluster(代表节点前 40 字)生成⇒ 同主题的不同表述可能被判为不同主题。
这是保守方向的取舍:宁可多留一个概念,也不错并两个主题。
验证(本地实跑)
core,291 个既有测试)锚定:上游 main
45b83593(验证树底座与本提交父提交同源)。说明
修复取自沙箱
def-impl-4a,按当前 main 的真实 diff 重放(非整文件覆盖),提交前所有内容均为 LF 行尾,PR 差异可直接审阅。