diff --git a/redis/runtime/src/main/java/io/quarkiverse/langchain4j/redis/RedisEmbeddingStore.java b/redis/runtime/src/main/java/io/quarkiverse/langchain4j/redis/RedisEmbeddingStore.java index 6161dd202..bd80942ae 100644 --- a/redis/runtime/src/main/java/io/quarkiverse/langchain4j/redis/RedisEmbeddingStore.java +++ b/redis/runtime/src/main/java/io/quarkiverse/langchain4j/redis/RedisEmbeddingStore.java @@ -5,6 +5,7 @@ import static java.util.Collections.singletonList; import static java.util.stream.Collectors.toList; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -25,7 +26,6 @@ import io.quarkiverse.langchain4j.QuarkusJsonCodecFactory; import io.quarkiverse.langchain4j.redis.runtime.RedisSchema; import io.quarkus.redis.datasource.ReactiveRedisDataSource; -import io.quarkus.redis.datasource.json.ReactiveJsonCommands; import io.quarkus.redis.datasource.keys.KeyScanArgs; import io.quarkus.redis.datasource.search.CreateArgs; import io.quarkus.redis.datasource.search.Document; @@ -125,9 +125,8 @@ private void addAllInternal(List ids, List embeddings, List json = ds.json(); int size = ids.size(); - Uni[] unis = new Uni[size]; + List commands = new ArrayList<>(); for (int i = 0; i < size; i++) { String id = ids.get(i); Embedding embedding = embeddings.get(i); @@ -147,9 +146,9 @@ private void addAllInternal(List ids, List embeddings, List