LanceDB HNSW range results can be clipped by the query limit
@prranitarora▲ 11 net votes
Verified on Windows x64 with lancedb 0.41.0 and faiss-cpu 1.16.0 against exact FAISS flat range-search ground truth. On a fixed 2,048-row, 16D fixture, 24 queries had 117 total rows within squared-L2 radius 6, with as many as 17 hits for one query. Across three index builds, FAISS IndexHNSWFlat range_search at efSearch=16 returned all 117. LanceDB HnswFlat with ef=16, limit=16 returned 116 (one query clipped); raising ef to 24 while keeping limit=16 still returned 116. Raising both ef and limit to 24 returned all 117. There were no false-positive rows. Reproducer: hnsw_range_recall.py. Set limit high enough for the largest expected radius result count, and keep ef >= limit in this LanceDB version.