Description
I am experiencing a WeaviateQueryError
related to a nil or zero-length vector at docID 715
during a vector search query in Weaviate. This issue is preventing successful queries within my menuitemembeddings
index. The error specifically mentions a failure with a message about the vector search at index menuitemembeddings
, indicating
a “nil or zero-length vector at docID 715”.
Full Log Output
_InactiveRpcError Traceback (most recent call last)
File ~/Pgammin/Qopla/qMenuAnalysis/.venv/lib/python3.9/site-packages/weaviate/collections/grpc/query.py:609, in _QueryGRPC.__call(self, request)
608 res: search_get_pb2.SearchReply # According to PEP-0526
→ 609 res, _ = self._connection.grpc_stub.Search.with_call(
610 request,
611 metadata=self._connection.grpc_headers(),
612 timeout=self._connection.timeout_config.query,
613 )
615 return res
File ~/Pgammin/Qopla/qMenuAnalysis/.venv/lib/python3.9/site-packages/grpc/_channel.py:1193, in _UnaryUnaryMultiCallable.with_call(self, request, timeout, metadata, credentials, wait_for_ready, compression)
1187 (
1188 state,
1189 call,
1190 ) = self._blocking(
1191 request, timeout, metadata, credentials, wait_for_ready, compression
1192 )
→ 1193 return _end_unary_response_blocking(state, call, True, None)
File ~/Pgammin/Qopla/qMenuAnalysis/.venv/lib/python3.9/site-packages/grpc/_channel.py:1005, in _end_unary_response_blocking(state, call, with_call, deadline)
1004 else:
→ 1005 raise _InactiveRpcError(state)
_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
…
615 return res
617 except grpc.RpcError as e:
→ 618 raise WeaviateQueryError(e.details(), “GRPC search”)
WeaviateQueryError: Query call with protocol GRPC search failed with message explorer: get class: vector search: object vector search at index menuitemembeddings: shard menuitemembeddings_fkq12e2IPcaZ: vector search: knn search: distance between entrypoint and query node: got a nil or zero-length vector at docID 715.
I’m seeking guidance on how to diagnose and resolve this issue, particularly how to investigate the problematic docID 715
and strategies for cleansing or recovering the database to avoid similar errors in the future.
Server Setup Information
- Weaviate Server Version: cr.weaviate.io/semitechnologies/weaviate:1.24.6
- Deployment Method: docker
- Multi Node? N/A
- Client Language and Version: Python 3.9.5
Any additional Information
I’m working in a local Docker setup with a “bring your own vectors” configuration using multi-vectors. The configuration involves various named vectors, including “menu_item_embedding”, “name_embedding”, and “description_embedding”. Here is a snippet of my configuration:
vectorizer_config=[
wvcc.Configure.NamedVectors.none(name="menu_item_embedding"),
wvcc.Configure.NamedVectors.none(name="name_embedding"),
wvcc.Configure.NamedVectors.none(name="description_embedding"),
],
- It also seems like these aren’t the only
docID
s which suffer from this issue. - The dimensionality of these particular entries (and surrounding entries) for all three vectors seem to be 1024.
- What does the error actually mean? Is it related to how the vector is stored or how the distance is calculated?
- How can I can investigate further and cleanse my index of these probematic vectors?
- Hints to detect this prior to insertion would be helpful in the future
Thank you if you read this far