Commit 11c2141
committed
feat: Add runtime parameter support for HNSW and SVS-VAMANA vector indexes
Add comprehensive runtime parameter support for HNSW and SVS-VAMANA vector
indexes across VectorQuery, VectorRangeQuery, and AggregateHybridQuery classes.
Runtime parameters allow users to tune search performance at query time without
rebuilding indexes, enabling dynamic trade-offs between accuracy and speed.
Changes:
- Add HNSW runtime parameters: ef_runtime, epsilon
- Add SVS-VAMANA runtime parameters: search_window_size, epsilon,
use_search_history, search_buffer_capacity
- Implement setter methods with validation for all parameters
- Add runtime parameter constants to BaseVectorQuery and AggregateHybridQuery
- Update query string generation to include runtime parameters
- Fix type annotation for params dict in AggregateHybridQuery
Documentation:
- Update API reference docs (query.rst, schema.rst)
- Add runtime parameters section to SVS-VAMANA tutorial (09_svs_vamana.ipynb)
- Add runtime parameters section to advanced queries tutorial (11_advanced_queries.ipynb)
- Add runtime parameters notes to getting started and hybrid queries tutorials
- Update README.md with ef_runtime example
Tests:
- Add tests for runtime parameters across all query types
- Test parameter validation and error handling
- Test query string generation with runtime parameters
- Test parameter combinations1 parent d1f4e76 commit 11c2141
File tree
11 files changed
+1328
-86
lines changed- docs
- api
- user_guide
- redisvl/query
- tests/unit
11 files changed
+1328
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
23 | 68 | | |
24 | 69 | | |
25 | 70 | | |
| |||
34 | 79 | | |
35 | 80 | | |
36 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
37 | 112 | | |
38 | 113 | | |
39 | 114 | | |
| |||
52 | 127 | | |
53 | 128 | | |
54 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
55 | 165 | | |
56 | 166 | | |
57 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
216 | 221 | | |
217 | 222 | | |
218 | 223 | | |
| |||
234 | 239 | | |
235 | 240 | | |
236 | 241 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
| |||
250 | 255 | | |
251 | 256 | | |
252 | 257 | | |
253 | | - | |
| 258 | + | |
254 | 259 | | |
255 | 260 | | |
256 | | - | |
| 261 | + | |
257 | 262 | | |
258 | 263 | | |
259 | 264 | | |
| |||
278 | 283 | | |
279 | 284 | | |
280 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
281 | 293 | | |
282 | 294 | | |
283 | 295 | | |
| |||
314 | 326 | | |
315 | 327 | | |
316 | 328 | | |
317 | | - | |
| 329 | + | |
318 | 330 | | |
319 | 331 | | |
320 | | - | |
| 332 | + | |
321 | 333 | | |
322 | 334 | | |
323 | 335 | | |
| |||
330 | 342 | | |
331 | 343 | | |
332 | 344 | | |
333 | | - | |
| 345 | + | |
334 | 346 | | |
335 | 347 | | |
336 | | - | |
337 | 348 | | |
338 | 349 | | |
339 | 350 | | |
340 | 351 | | |
| 352 | + | |
341 | 353 | | |
342 | 354 | | |
343 | 355 | | |
344 | 356 | | |
345 | 357 | | |
346 | 358 | | |
347 | 359 | | |
348 | | - | |
| 360 | + | |
349 | 361 | | |
350 | 362 | | |
351 | 363 | | |
| |||
487 | 499 | | |
488 | 500 | | |
489 | 501 | | |
490 | | - | |
491 | | - | |
| 502 | + | |
| 503 | + | |
492 | 504 | | |
493 | 505 | | |
494 | 506 | | |
495 | 507 | | |
496 | 508 | | |
497 | 509 | | |
498 | 510 | | |
499 | | - | |
| 511 | + | |
500 | 512 | | |
501 | 513 | | |
502 | 514 | | |
| |||
0 commit comments