i inserted the data in format of
{
"class": "vector",
"properties": {
"vector": [0.1,0.2,0.3]
}
}
on my weaviate database when i performing graphql query to perfrom vector search i am getting blank response .
here the my query
{
Get {
Vector(nearVector: {vector: [0.1,0.2,0.3]}, limit: 1) {
iD
vector
_additional {
certainty
}
}
}
}
Hi @Hritik_Pandey !
The issue with your payload is that you are adding, in fact, a property called vector
, with 3 floats on it
According to our doc:
Your vector
attribute needs to be at the same level of your properties
.
for example:
{
"class": "vector",
"properties": {
"name": "Hritik_Pandey"
},
"vector": [0.1,0.2,0.3]
}
Let me know if this helps
while i using this getting error like {
“class”: “Vector”,
“schema”: {
“title”: “An Interesting Article”,
“content”: “This is the content of the article.”,
“datePublished”: “2022-04-01T12:00:00Z”
},
“vector”: [0.1, 0.2, 0.3,0.0] // Optional: Only include if you’re manually setting the vector
}
getting error {“error”:“Server error: POST https:\/\/sample-1yz4v648.weaviate.network\/v1\/objects
resulted in a 500 Internal Server Error
response:\n{"error":[{"message":"put object: import into index vector: put local object: shard=\"738M2EOcBtUS\": Validate vector in (truncated…)\n”}
Can you share the code that you are running?
Or and end to end example to reproduce this error?
This helps a lot.
Thanks!