Commit 6d7bf91
test: fix flaky bfloat16 pagination test by pinning DISKANN search_list_size
Without an explicit search_list_size, DISKANN adjusts its graph traversal
depth proportionally to the internal queryTopK (= limit + offset). This
caused paginated searches and the full reference search to explore different
candidate neighbourhoods:
page 1 (offset=100, limit=100) → internal topk = 200 (shallow)
page 3 (offset=300, limit=100) → internal topk = 400 (medium)
full search (limit=1000) → internal topk = 1000 (deep)
Boundary candidates at the edge of each page differ between the two calls,
producing 76-79% overlap and flaky failures against the 80% threshold (40%
failure rate in local reproduction).
Fix: pin search_list_size=1200 on both paginated and full searches so that
both explore the same DISKANN candidate pool regardless of topk. With the
same exploration depth, per-page overlap consistently exceeds 90% and
overall recall across all pages exceeds 95%.
Additional improvements:
- Per-page overlap threshold raised from 80% to 90%
- Added overall recall assertion (>=95%) to validate cross-page coverage
- Expanded docstring explaining the DISKANN pagination consistency model
issue: #49030
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: yanliang567 <82361606+yanliang567@users.noreply.github.com>1 parent 80af30b commit 6d7bf91
File tree
1 file changed
+38
-14
lines changed- tests/python_client/milvus_client_v2
1 file changed
+38
-14
lines changedLines changed: 38 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
217 | 229 | | |
218 | 230 | | |
219 | 231 | | |
220 | 232 | | |
221 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
222 | 238 | | |
223 | 239 | | |
224 | 240 | | |
225 | 241 | | |
226 | 242 | | |
227 | 243 | | |
228 | 244 | | |
229 | | - | |
| 245 | + | |
230 | 246 | | |
231 | 247 | | |
232 | 248 | | |
| |||
244 | 260 | | |
245 | 261 | | |
246 | 262 | | |
247 | | - | |
248 | | - | |
| 263 | + | |
| 264 | + | |
249 | 265 | | |
250 | 266 | | |
251 | 267 | | |
| |||
255 | 271 | | |
256 | 272 | | |
257 | 273 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
263 | 279 | | |
264 | 280 | | |
265 | 281 | | |
266 | 282 | | |
267 | | - | |
268 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
269 | 293 | | |
270 | 294 | | |
271 | 295 | | |
| |||
0 commit comments