Description
I’m trying to run a hybrid aggregate query that groups results by a tags property (an array) so I can get aggregates per tag. I’m passing a named vector (via targetVector) but the query fails with an error that looks like the named vector is empty.
What I expect
Group aggregated results by each tag while using hybrid search (named vector + alpha).
Code (JS client v3.8.x)
const results = await Article.aggregate.groupBy.hybrid(q, {
groupBy: { property: 'tags' },
vector: embedding,
objectLimit: 250,
targetVector: 'embedding_text_vector', // named vector defined on the class
alpha: 0.8
});
Actual error
WeaviateQueryError: Query call with protocol gRPC failed with message: /weaviate.v1.Weaviate/Aggregate UNKNOWN: aggregate: shard Nh4bhyq0ZBX0: no vector index for target vector “”
The error suggests the target vector name is empty (i.e. "") even though I passed targetVector: 'embedding_text_vector'.
Server Setup Information
- Weaviate Server Version: 1.31
- Deployment Method: Local
- Multi Node? Number of Running Nodes: 1
- Client Language and Version: JS Client, 3.8.1
- Multitenancy?: No
Additional context / notes
-
The
Articleclass has atagsproperty (array) and a named vector propertyembedding_text_vector(indexed). -
I’m using a hybrid aggregate
groupBycall (not a simplegraphqlquery); my aim is to get aggregated results grouped by each tag while leveraging hybrid scoring (alpha + named target vector).
Question / help needed
-
Is
targetVectorsupported byaggregate.groupBy.hybrid()for named vectors? -
Could this be a client-side usage bug, or am I missing a server/schema configuration step (e.g., enabling the named vector index on the class/property)?
-
Any suggestions for debugging steps to confirm whether the named vector index exists and is accessible to the aggregate call?
Thanks in advance — happy to share the class schema or additional logs if that helps.