File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
weaviate/collections/batch Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,6 @@ def pack_vector(vector: Any) -> bytes:
55
55
return [
56
56
batch_pb2 .BatchObject (
57
57
collection = obj .collection ,
58
- vector_bytes = (
59
- pack_vector (obj .vector )
60
- if obj .vector is not None and not isinstance (obj .vector , dict )
61
- else None
62
- ),
63
58
uuid = str (obj .uuid ) if obj .uuid is not None else str (uuid_package .uuid4 ()),
64
59
properties = (
65
60
self .__translate_properties_from_python_to_grpc (
@@ -70,6 +65,11 @@ def pack_vector(vector: Any) -> bytes:
70
65
else None
71
66
),
72
67
tenant = obj .tenant ,
68
+ vector_bytes = (
69
+ pack_vector (obj .vector )
70
+ if obj .vector is not None and not isinstance (obj .vector , dict )
71
+ else None
72
+ ),
73
73
vectors = (
74
74
_pack_named_vectors (obj .vector )
75
75
if obj .vector is not None and isinstance (obj .vector , dict )
You can’t perform that action at this time.
0 commit comments