Commit 3f93da1
authored
feat: Add runtime parameter support for HNSW and SVS-VAMANA vector indexes (#439)
# Add Runtime Parameter Support for Vector Queries
Related to #433
## What's New
Adds runtime parameter support for HNSW and SVS-VAMANA vector indexes to
`VectorQuery` and `VectorRangeQuery`.
## New Parameters
### VectorQuery & VectorRangeQuery
**HNSW:**
- `ef_runtime` - Tune search accuracy (higher = better recall, slower)
- `epsilon` - Range search boundary factor (VectorRangeQuery only)
**SVS-VAMANA:**
- `search_window_size` - KNN search window size
- `use_search_history` - Search buffer control (OFF/ON/AUTO)
- `search_buffer_capacity` - 2-level compression tuning
- `epsilon` - Range search approximation (VectorRangeQuery only)
### AggregateHybridQuery
- No runtime parameters (FT.AGGREGATE doesn't support them)
## Example
```python
# NEW: Runtime parameters
query = VectorQuery(
vector=[0.1, 0.2, 0.3],
vector_field_name="embedding",
ef_runtime=150, # NEW
search_window_size=200, # NEW
num_results=10
)
```
## Breaking Changes
None (for users upgrading from main)1 parent 10035c4 commit 3f93da1
File tree
11 files changed
+1458
-149
lines changed- docs
- api
- user_guide
- redisvl/query
- tests/unit
11 files changed
+1458
-149
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 | + | |
23 | 64 | | |
24 | 65 | | |
25 | 66 | | |
| |||
34 | 75 | | |
35 | 76 | | |
36 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 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 | + | |
37 | 108 | | |
38 | 109 | | |
39 | 110 | | |
| |||
52 | 123 | | |
53 | 124 | | |
54 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
55 | 149 | | |
56 | 150 | | |
57 | 151 | | |
| |||
| 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