Error when use or operator to combine more than certain number of filters

Description

If use or operator to combine filter for many times there will be a error like below happens:

weaviate/collections/grpc/query.py", line 572, in __create_request
    return search_get_pb2.SearchRequest(
google.protobuf.message.DecodeError: Error parsing message

code to reproduce is kinda like below:

    filters = Filter.by_property("code").contains_any("1")
    count = 1

    for code in range(500):
        count += 1
        filters |= Filter.by_property("code").contains_any(str(code))

Server Setup Information

  • Weaviate Server Version: 1.24.1
  • Deployment Method: docker
  • Multi Node? Number of Running Nodes: 1
  • Client Language and Version: python 4.5.1

Any additional Information

none

Hi!

This is interesting.

I will try to come up with a notebook as it will be interesting to explore on dynamic filter building with the new pyv4.

Thanks for pointing out. I will get back to you soon.