prof-dev
37dcebfce4
fix(recall): 修 16:28 topkcap 引入的 pattern 截断回归 (t_e98cb1d6)
- capRecallResults 把 category=pattern/peer 的条目先摘出(recall.go Step 6.2/6.3
追加在 results 末尾),主结果截断到 limit 后再把附带条目放回末尾;
主结果仍收口,pattern/peer 不再被蒸馏结果挤掉。
- 新增 TestCapRecallResults_PatternAndPeerSurviveCap:断言 limit=50 时
pattern 计数 ≥1、peer 不被截断、主结果仍不超过 limit。
方案取舍:选 A(cap 内先摘出),不选 B(注入移到 cap 之后)——
注入在 storage.Recall() 而 cap 在 routes 层,B 需跨 storage/routes 重排
调用链并改缓存路径;A 是纯函数、最小、且与原 topkcap 修正在同一位置。
2026-10-26 19:42:57 +08:00
..
2026-10-10 15:51:25 +08:00
2026-10-26 19:42:57 +08:00
2026-09-20 00:37:25 +08:00
2026-10-12 21:38:01 +08:00
2026-10-10 15:51:25 +08:00
2026-10-10 15:51:25 +08:00
2026-10-10 15:51:25 +08:00
2026-10-26 14:55:01 +08:00