Description
Hi!
I have been using the graphql api for iteracting with my weaviate db and currently I have included a colleciton with named vectors. However, I can not find anywhere on how can I get the named vector of an object in weaviate.
For example, to get the vector normally I would run:
{
Get{
Collection{
_additional{
vector
}
}
}
}
However, when I have named vector, this vector results in an empty list
hi @Marco_Vinicius_Nobre !!
When using named vectors, they will be exposed in vectors
while using graphql.
Considering you have two named vectors, v1 and v2, this is how you can get them:
{
Get{
Test{
_additional{
vectors{
v1 v2
}
}
}
}
}
Let me know if this helps!
Thanks!
Hi Duda! I guess this would be the ideal way, but when I run it says it doesn´t exists this “vectors” key. It only exists “vector” and it is a list of float, so you can´t have a subselection.
For example, with vector
{
Get{
LocalTest{
_additional{
vector{
v1
}
}
}
}
}
I get the following error
And with vectors
{
Get{
LocalTest{
_additional{
vectors{
v1
}
}
}
}
}
I get the following error
Cannot query field "vectors" on type "LocalTestAdditional". Did you mean "vector"?
I did was able to workaround with the api key to list objects, but it´s less perfomant.