File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/test/java/redis/clients/jedis/modules/search Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1177,6 +1177,28 @@ public void vectorFieldParams() {
1177
1177
// throws Field `NOINDEX` does not have a type
1178
1178
}
1179
1179
1180
+ @ Test
1181
+ public void float16StorageType () {
1182
+ assertOK (client .ftCreate (index ,
1183
+ VectorField .builder ().fieldName ("v" )
1184
+ .algorithm (VectorField .VectorAlgorithm .HNSW )
1185
+ .addAttribute ("TYPE" , "FLOAT16" )
1186
+ .addAttribute ("DIM" , 4 )
1187
+ .addAttribute ("DISTANCE_METRIC" , "L2" )
1188
+ .build ()));
1189
+ }
1190
+
1191
+ @ Test
1192
+ public void bfloat16StorageType () {
1193
+ assertOK (client .ftCreate (index ,
1194
+ VectorField .builder ().fieldName ("v" )
1195
+ .algorithm (VectorField .VectorAlgorithm .HNSW )
1196
+ .addAttribute ("TYPE" , "BFLOAT16" )
1197
+ .addAttribute ("DIM" , 4 )
1198
+ .addAttribute ("DISTANCE_METRIC" , "L2" )
1199
+ .build ()));
1200
+ }
1201
+
1180
1202
@ Ignore
1181
1203
@ Test
1182
1204
public void searchProfile () {
You can’t perform that action at this time.
0 commit comments