diff --git a/src/test/java/redis/clients/jedis/modules/search/SearchWithParamsTest.java b/src/test/java/redis/clients/jedis/modules/search/SearchWithParamsTest.java index dff74f8465..e972124143 100644 --- a/src/test/java/redis/clients/jedis/modules/search/SearchWithParamsTest.java +++ b/src/test/java/redis/clients/jedis/modules/search/SearchWithParamsTest.java @@ -1071,6 +1071,28 @@ public void testFlatVectorSimilarity() { assertEquals("0", doc1.get("__v_score")); } + @Test + public void float16StorageType() { + assertOK(client.ftCreate(index, + VectorField.builder().fieldName("v") + .algorithm(VectorField.VectorAlgorithm.HNSW) + .addAttribute("TYPE", "FLOAT16") + .addAttribute("DIM", 4) + .addAttribute("DISTANCE_METRIC", "L2") + .build())); + } + + @Test + public void bfloat16StorageType() { + assertOK(client.ftCreate(index, + VectorField.builder().fieldName("v") + .algorithm(VectorField.VectorAlgorithm.HNSW) + .addAttribute("TYPE", "BFLOAT16") + .addAttribute("DIM", 4) + .addAttribute("DISTANCE_METRIC", "L2") + .build())); + } + @Test public void searchProfile() { assertOK(client.ftCreate(index, TextField.of("t1"), TextField.of("t2")));