You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried inserting ["0.4", "0.2"...] instead of [0.4, 0.2].. again silly but Weaviate accepted this but was then unable to query the vectors it seemed.
The text was updated successfully, but these errors were encountered:
I tried to reproduce it, but I Weaviate rejected both of my attempts:
Example 1
qt=client.collections.get("QuickTest")
qt.data.insert(
properties={
"title": "Try Array of strings as a vector"
},
vector=["0.1", "0.2"]
)
Throws the following error:
UnexpectedStatusCodeError: Object was not added! Unexpected status code: 400, with response body: {'code': 400, 'message': 'parsing body body from "" failed, because json: cannot unmarshal string into Go struct field Object.vector of type float32'}.
Example 2
qt=client.collections.get("QuickTest")
qt.data.insert(
properties={
"title": "Try a string with an array text inside"
},
vector="[0.1, 0.2]"
)
Throws the following error:
WeaviateInvalidInputError: Invalid input provided: The vector you supplied was malformatted! Vector: [0.1, 0.2].
From a user report:
The text was updated successfully, but these errors were encountered: