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:
5555 return [
5656 batch_pb2 .BatchObject (
5757 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- ),
6358 uuid = str (obj .uuid ) if obj .uuid is not None else str (uuid_package .uuid4 ()),
6459 properties = (
6560 self .__translate_properties_from_python_to_grpc (
@@ -70,6 +65,11 @@ def pack_vector(vector: Any) -> bytes:
7065 else None
7166 ),
7267 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+ ),
7373 vectors = (
7474 _pack_named_vectors (obj .vector )
7575 if obj .vector is not None and isinstance (obj .vector , dict )
You can’t perform that action at this time.
0 commit comments