Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write_documents failing for bigger messages #5

Open
akshaykarle opened this issue Oct 16, 2023 · 4 comments
Open

write_documents failing for bigger messages #5

akshaykarle opened this issue Oct 16, 2023 · 4 comments

Comments

@akshaykarle
Copy link

When running write_documents I get the following error:

grpc RpcError: [query], <_MultiThreadedRendezvous: StatusCode.RESOURCE_EXHAUSTED, grpc: trying to send message larger than max (69004574 vs. 67108864)>, <Time:{'RPC start': '2023-10-16 11:46:26.850932', 'gRPC error': '2023-10-16 11:46:38.551411'}>

I noticed in _create_collection we set the max_length. is there a reason we need to set that? Is that possibly causing this to fail? If so, can we remove and/or allow overriding it?

@xiaofan-luan
Copy link

the batch size is too large.

try to reduce the batch to less than 4M, currently it paased the default 64M setting

@akshaykarle
Copy link
Author

Okay, that's what I thought. Will try reducing the batch_size and see if it works. Thanks for your quick reply. Will get back to you once I've tested it and we can possibly close this of

@apohllo
Copy link

apohllo commented Nov 24, 2023

It's a pitty this is not a parametr I can change in the call. Changing the library's code is the only way to achieve that?

@apohllo
Copy link

apohllo commented Nov 30, 2023

Ok. So it is a parameter, my bad. But... get_all_documents does not use a batch size, so if the size of docs is larger than the message, there's the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants