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 @@ -1169,6 +1169,28 @@ public void vectorFieldParams() {
11691169 // throws Field `NOINDEX` does not have a type
11701170 }
11711171
1172+ @ Test
1173+ public void float16StorageType () {
1174+ assertOK (client .ftCreate (index ,
1175+ VectorField .builder ().fieldName ("v" )
1176+ .algorithm (VectorField .VectorAlgorithm .HNSW )
1177+ .addAttribute ("TYPE" , "FLOAT16" )
1178+ .addAttribute ("DIM" , 4 )
1179+ .addAttribute ("DISTANCE_METRIC" , "L2" )
1180+ .build ()));
1181+ }
1182+
1183+ @ Test
1184+ public void bfloat16StorageType () {
1185+ assertOK (client .ftCreate (index ,
1186+ VectorField .builder ().fieldName ("v" )
1187+ .algorithm (VectorField .VectorAlgorithm .HNSW )
1188+ .addAttribute ("TYPE" , "BFLOAT16" )
1189+ .addAttribute ("DIM" , 4 )
1190+ .addAttribute ("DISTANCE_METRIC" , "L2" )
1191+ .build ()));
1192+ }
1193+
11721194 @ Test
11731195 public void searchProfile () {
11741196 assertOK (client .ftCreate (index , TextField .of ("t1" ), TextField .of ("t2" )));
You can’t perform that action at this time.
0 commit comments