I am in the process of migrating weaviate client from v3 to v4 and I am using haystack to integrate weaviate for my usecase. However when querying on collection using filters, I am getting the following grpc error
WeaviateQueryError: Query call with protocol GRPC search failed with message <AioRpcError of RPC that terminated with:
status = StatusCode.RESOURCE_EXHAUSTED
details = "grpc: trying to send message larger than max (486438681 vs. 104858000)"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"grpc: trying to send message larger than max (486438681 vs. 104858000)", grpc_status:8, created_time:"2024-08-15T18:22:12.13303888+00:00"}"
Here is the haystack link to query with filters. Haystack
I am filtering on a very small subset of documents in index and I see this error trying to get anything over 70-80 documents.
I also did increase my timeout config to 600 sec. With default timeout config, I can hardly query 5 docs.
On the flip side, When i extract ALL the documents in the index using
collection.iterator(include_vector=False, return_properties=properties) it returns the result. The index has document size about 9000 and return all of them without throwing an error.
It just with filtering, the underlying query.fecth_objects function is failing the request.
Sorry for delayed response. Realized one of the properties being queried from weaviate (using haystack) is a metadata field that is quite large. Excluding that solved this error.