Bulk Update Objects in Weaviate Using Python Client

Description

I need to perform a bulk update in Weaviate using Python. Specifically, I have objects where a property currently has the value 0. After pre-processing, I want to update this property to 1 for multiple objects at once. How can I achieve this bulk update efficiently?

Good morning @Rushiraj_Asodariya,

Welcome to our community and it’s lovely to have you here.

Weaviate doesn’t currently support true bulk or partial updates in a single API call, each object must be updated individually by its UUID.

You have two option which both can work really great either:

  • Iterate through the objects you want to update and call the update method for each one.

  • Or If you use batch import for bulk update (can be faster than individual UUID) with the same UUID for each object, Weaviate will replace the existing objects with those UUIDs (No duplication will occur).

Best regards,

Mohamed Shahin
Weaviate Support Engineer
(Ireland, UTC±00:00/+01:00)