Spaces:
Runtime error
Runtime error
Commit History
-
M2 concept checkpoint: HNSW ef_search sweepβ
CamQuestByte +1: Claude Sonnet 4.6Adds a cached-query-vector pipeline so the sweep runs in seconds without re-embedding: - data.py: queries_only=True flag on load_codesearch, skips the 412k train scan when only the test-split queries are needed - scripts/cache_query_vectors.py: one-time embed of all 22k queries to .cache/query_vectors_<model>.pkl (~33 MB); cache key includes model name so changing EMBEDDING_MODEL auto-invalidates - scripts/ef_sweep.py: reads cache, samples to --max-queries, sweeps ef, hits Qdrant REST /points/query/batch directly via httpx so we can read the server-side `time` field (the high-level qdrant-client drops it) Sweep at ef β {16,32,64,128,256,512} on 500 sampled queries surfaces three findings, written up in PLAN.md M2 section: - effective ef is floored between 32 and 64 (ef=16 and ef=32 produce bit-identical results β Qdrant clamps below a minimum) - recall gains halve at each doubling above the floor (textbook HNSW) - ef=128 stays the sweet spot; ef=64 β¦086a913