From 5139936fcc272504e5044b76adbcdda9bbf00775 Mon Sep 17 00:00:00 2001 From: Anush008 Date: Sat, 30 Dec 2023 00:29:29 +0530 Subject: [PATCH] chore: upadate namedVectors() to accept Map --- src/main/java/io/qdrant/client/VectorsFactory.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/qdrant/client/VectorsFactory.java b/src/main/java/io/qdrant/client/VectorsFactory.java index 6fe9864..daf7489 100644 --- a/src/main/java/io/qdrant/client/VectorsFactory.java +++ b/src/main/java/io/qdrant/client/VectorsFactory.java @@ -7,6 +7,7 @@ import static io.qdrant.client.VectorFactory.vector; import static io.qdrant.client.grpc.Points.NamedVectors; +import io.qdrant.client.grpc.Points.Vector; import static io.qdrant.client.grpc.Points.Vectors; /** @@ -18,13 +19,13 @@ private VectorsFactory() { /** * Creates named vectors - * @param values A map of vector names to values + * @param values A map of vector names to {@link Vector} * @return a new instance of {@link Vectors} */ - public static Vectors namedVectors(Map> values) { + public static Vectors namedVectors(Map values) { return Vectors.newBuilder() .setVectors(NamedVectors.newBuilder() - .putAllVectors(Maps.transformValues(values, v -> vector(v))) + .putAllVectors(Maps.transformValues(values, v -> v)) ) .build(); }