fix: increase ANN search K from 50 to 200 for 72K+ person pool#7
Merged
Conversation
With 72K+ stranger persons (~364K face nodes in the HNSW index), K=50 per prototype query was too small: high-similarity candidates (e.g. 77%) were being missed because 50+ other stranger face nodes ranked above them for prominent persons like 胡波 (3505 faces). Increase annSearchK 50→200 and annHNSWEfSearch 100→200 (must be >= K per HNSW guidelines) so each of the ~210 per-patrol queries covers a wider neighborhood, ensuring borderline pairs above the merge-suggestion threshold (55%) are not silently dropped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
annSearchK50 → 200:72K+ stranger 规模下 K=50 太小,高相似度候选人(如 77%)被挤出 top-50,导致合并建议遗漏annHNSWEfSearch100 → 200:HNSW 要求 efSearch >= K,必须同步调整,否则召回率反而变差Background
实测发现两组相似度明显超过 55% 阈值的人物对(66.8% 和 77.0%)没有出现在合并建议中。查 NAS 数据库确认:
Test plan
🤖 Generated with Claude Code