Files
Hy-Memory/tests
alvinfeiandClaude Opus 5.5 e540386db1 fix(sdk): gate near-duplicate demotion with the MMR top-k threshold
near_dup_demote compares each candidate with every earlier
non-duplicate by Jaccard, quadratic when candidates differ. Its pool
grows with limit (about max(3*limit, 30) plus keyword hits), so a
limit-200 page could cost ~180k comparisons. It now runs only when the
caller's limit is below MMR_MAX_TOP_K, like MMR; large pages want every
relevant item, similar ones included. The read reports
near_dup_applied next to mmr_applied.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-27 15:34:41 +08:00
..
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00
2026-10-16 16:26:27 +08:00