From 010bc9f928952f86bf38c738e78b9b4b48689489 Mon Sep 17 00:00:00 2001 From: Madhavan Sridharan Date: Fri, 19 Jul 2024 11:33:21 -0400 Subject: [PATCH] fix up copyright to get away from RAT build errors --- .../WeaviateBaseOpDispenser.java | 17 ++++++++++++++ .../activities/weaviate_vector_live.yaml | 23 +++++++------------ 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/nb-adapters/adapter-weaviate/src/main/java/io/nosqlbench/adapter/weaviate/opsdispensers/WeaviateBaseOpDispenser.java b/nb-adapters/adapter-weaviate/src/main/java/io/nosqlbench/adapter/weaviate/opsdispensers/WeaviateBaseOpDispenser.java index 955ef228b..e2f220bd4 100644 --- a/nb-adapters/adapter-weaviate/src/main/java/io/nosqlbench/adapter/weaviate/opsdispensers/WeaviateBaseOpDispenser.java +++ b/nb-adapters/adapter-weaviate/src/main/java/io/nosqlbench/adapter/weaviate/opsdispensers/WeaviateBaseOpDispenser.java @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2020-2024 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package io.nosqlbench.adapter.weaviate.opsdispensers; import java.util.function.LongFunction; diff --git a/nb-adapters/adapter-weaviate/src/main/resources/activities/weaviate_vector_live.yaml b/nb-adapters/adapter-weaviate/src/main/resources/activities/weaviate_vector_live.yaml index 43c193990..fc7e61963 100644 --- a/nb-adapters/adapter-weaviate/src/main/resources/activities/weaviate_vector_live.yaml +++ b/nb-adapters/adapter-weaviate/src/main/resources/activities/weaviate_vector_live.yaml @@ -51,6 +51,7 @@ params: bindings: id_val: Identity(); + id_val_uuid: ToHashedUUID() -> java.util.UUID row_key: ToString() row_key_batch: Mul(TEMPLATE(batch_size)L); ListSizedStepped(TEMPLATE(batch_size),long->ToString()); # filetype=hdf5 for TEMPLATE(filetype,hdf5) @@ -167,22 +168,14 @@ blocks: ops: create_objects_op: create_objects: "TEMPLATE(collection)" - wait: TEMPLATE(upsert_point_wait,true) - # https://github.com/weaviate/weaviate/blob/v1.9.0/lib/api/src/grpc/proto/points.proto#L11-L15 - # 0 - Weak, 1 - Medium, 2 - Strong - ordering: TEMPLATE(upsert_point_ordering,1) - #shard_key: "{row_key}" - points: - - id: "{id_val}" - payload: - key: "{row_key}" - vector: - # For dense vectors, use the below format + objects: + - id: "{id_val_uuid}" + #properties: + # key: "{row_key}" + vectors: + # Only named vectors are supported at this time value: "{train_floatlist_TEMPLATE(filetype)}" - # For sparse vectors, use the below format - #value_sv: - # indices: your array of numbers - # values: your array of floats + #tenant: "" search_points: ops: