@@ -36,14 +36,51 @@ public class VectorFieldArgs<K> extends FieldArgs<K> {
36
36
* Vector similarity index algorithms.
37
37
*/
38
38
public enum Algorithm {
39
+
39
40
/**
40
41
* Brute force algorithm.
41
42
*/
42
43
FLAT ,
43
44
/**
44
45
* Hierarchical, navigable, small world algorithm.
45
46
*/
46
- HNSW
47
+ HNSW ,
48
+ /**
49
+ * SVS-VAMANA algorithm provides high-performance approximate vector search optimized for specific use cases with
50
+ * advanced compression and optimization features.
51
+ *
52
+ * <p>
53
+ * Characteristics:
54
+ * <ul>
55
+ * <li>High-performance approximate search</li>
56
+ * <li>Support for vector compression (LVQ, LeanVec)</li>
57
+ * <li>Configurable graph construction and search parameters</li>
58
+ * <li>Optimized for Intel platforms with fallback support</li>
59
+ * </ul>
60
+ *
61
+ * <p>
62
+ * Note: This algorithm may have specific requirements and limitations. Consult the Redis documentation for detailed
63
+ * usage guidelines.
64
+ *
65
+ * @since Redis 8.2
66
+ */
67
+ SVS_VAMANA ("SVS-VAMANA" );
68
+
69
+ private final String redisName ;
70
+
71
+ Algorithm () {
72
+ this .redisName = name ();
73
+ }
74
+
75
+ Algorithm (String redisName ) {
76
+ this .redisName = redisName ;
77
+ }
78
+
79
+ @ Override
80
+ public String toString () {
81
+ return redisName ;
82
+ }
83
+
47
84
}
48
85
49
86
/**
@@ -169,13 +206,32 @@ public Builder<K> flat() {
169
206
170
207
/**
171
208
* Use the HNSW (hierarchical, navigable, small world) algorithm.
172
- *
209
+ *
173
210
* @return the instance of the {@link Builder} for the purpose of method chaining
174
211
*/
175
212
public Builder <K > hnsw () {
176
213
return algorithm (Algorithm .HNSW );
177
214
}
178
215
216
+ /**
217
+ * Use the SVS-VAMANA algorithm for high-performance approximate vector search.
218
+ *
219
+ * <p>
220
+ * SVS-VAMANA provides advanced features including:
221
+ * <ul>
222
+ * <li>Vector compression support (LVQ, LeanVec)</li>
223
+ * <li>Configurable graph construction parameters</li>
224
+ * <li>Runtime search optimization</li>
225
+ * <li>Intel platform optimizations</li>
226
+ * </ul>
227
+ *
228
+ * @return the instance of the {@link Builder} for the purpose of method chaining
229
+ * @since Redis 8.2
230
+ */
231
+ public Builder <K > svsVamana () {
232
+ return algorithm (Algorithm .SVS_VAMANA );
233
+ }
234
+
179
235
/**
180
236
* Set the vector data type.
181
237
*
@@ -211,7 +267,7 @@ public Builder<K> distanceMetric(DistanceMetric metric) {
211
267
212
268
/**
213
269
* Add a custom attribute.
214
- *
270
+ *
215
271
* @param name the attribute name
216
272
* @param value the attribute value
217
273
* @return the instance of the {@link Builder} for the purpose of method chaining
0 commit comments