diff --git a/README.md b/README.md index f45a8d1..ec64504 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ This project contains a java client for the [Qdrant vector database](https://qdr io.metaloom.qdrant qdrant-java-grpc-client - 0.13.0-SNAPSHOT + 0.13.0 ``` @@ -46,7 +46,7 @@ or for the HTTP client io.metaloom.qdrant qdrant-java-http-client - 0.13.0-SNAPSHOT + 0.13.0 ``` @@ -74,8 +74,14 @@ try (QDrantGRPCClient client = QDrantGRPCClient.builder() .setDistance(Distance.Euclid) .build(); + // Add the params to a map + VectorParamsMap paramsMap = VectorParamsMap.newBuilder() + .putMap("firstVector", params) + .putMap("secondVector", params) + .build(); + // Create new collections - blocking - client.createCollection("test1", params).sync(); + client.createCollection("test1", paramsMap).sync(); // .. or via Future API client.createCollection("test2", params).async().get(); // .. or via RxJava API @@ -92,7 +98,7 @@ try (QDrantGRPCClient client = QDrantGRPCClient.builder() payload.put("color", ModelHelper.value("blue")); // Now construct the point - PointStruct point = ModelHelper.point(42L + i, vector, payload); + PointStruct point = ModelHelper.namedPoint(42L + i, "firstVector", vector, payload); // .. and insert it client.upsertPoint("test1", point, true).sync(); } @@ -102,7 +108,7 @@ try (QDrantGRPCClient client = QDrantGRPCClient.builder() // Now run KNN search float[] searchVector = new float[] { 0.43f, 0.09f, 0.41f, 1.35f }; - List searchResults = client.searchPoints("test1", searchVector, 2, null).sync().getResultList(); + List searchResults = client.searchPoints("test1", "firstVector", searchVector, 2, null).sync().getResultList(); for (ScoredPoint result : searchResults) { System.out.println("Found: [" + result.getId().getNum() + "] " + result.getScore()); } diff --git a/common/pom.xml b/common/pom.xml index 7a5e70a..93d23a7 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -9,7 +9,7 @@ io.metaloom.qdrant qdrant-java-client - 0.13.0-SNAPSHOT + 0.13.0 Qdrant Java Client :: common diff --git a/grpc/pom.xml b/grpc/pom.xml index 982cc72..36bf46f 100644 --- a/grpc/pom.xml +++ b/grpc/pom.xml @@ -7,7 +7,7 @@ io.metaloom.qdrant qdrant-java-client - 0.13.0-SNAPSHOT + 0.13.0 Qdrant Java Client :: grpc diff --git a/http/pom.xml b/http/pom.xml index 66dd03a..66aa681 100644 --- a/http/pom.xml +++ b/http/pom.xml @@ -9,7 +9,7 @@ io.metaloom.qdrant qdrant-java-client - 0.13.0-SNAPSHOT + 0.13.0 Qdrant Java Client :: http diff --git a/pom.xml b/pom.xml index 196ae66..6d123b0 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 io.metaloom.qdrant qdrant-java-client - 0.13.0-SNAPSHOT + 0.13.0 io.metaloom diff --git a/report/pom.xml b/report/pom.xml index 2bff69d..da7d8f3 100644 --- a/report/pom.xml +++ b/report/pom.xml @@ -8,7 +8,7 @@ io.metaloom.qdrant qdrant-java-client - 0.13.0-SNAPSHOT + 0.13.0 Qdrant Java Client :: report