Skip to content

Releases: weaviate/weaviate-python-client

v3.10.0

21 Dec 14:18
Compare
Choose a tag to compare

What's Changed

  • Improve error message for error "413: Payload Too Large" by @dirkkul in #159
  • Add client credential OIDC flow method by @dirkkul in #164
client_credentials_config = weaviate.AuthClientCredentials(
  client_secret = "client_secret", 
  scope = "scope1 scope2" # optional, depends on the configuration of your identity provider
)
client = weaviate.Client("https://localhost:8080", auth_client_secret=client_credentials_config)

New Contributors

Full Changelog: v3.9.0...v3.10.0

v3.10.0b0

15 Dec 15:51
Compare
Choose a tag to compare
v3.10.0b0 Pre-release
Pre-release

What's Changed

  • Improve error message for error "413: Payload Too Large" by @dirkkul in #159
  • Add client credential OIDC flow method by @dirkkul in #164
client_credentials_config = weaviate.AuthClientCredentials(
  client_secret = "client_secret", 
  scope = "scope1 scope2" # optional, depends on the configuration of your identity provider
)
client = weaviate.Client("https://localhost:8080", auth_client_secret=client_credentials_config)
  • Improve size of batches on dynamic batching by @dirkkul in #172
  • Add limit parameter to client.data_object.get() REST query by @dirkkul in #181

Full Changelog: v3.9.0...v3.10.0b0

v3.9.0

09 Nov 19:50
82a531f
Compare
Choose a tag to compare

What's Changed

This minor version includes:

  • Authentication using Bearer token, by adding additional_headers to the class Client initialization:

        client = weaviate.Client(
            url='http://localhost:8080',
            additional_headers={
                {"authorization": "Bearer <MY_TOKEN>"}
            }
        )
  • Multi-threading class Batch import:

    • Now it is possible to import data using multi-threading. The number of threads can be set using the new argument num_workers in method Batch.configure and method Batch.__call__, defaults to 1 ( Use with care to not overload your weaviate instance.).
    • New argument connection_error_retries to retry on ConnectionError that can be set in method Batch.configure and method Batch.__call__ or using the property getter/setter: client.batch.connection_error_retries to get the value and client.batch.connection_error_retries = 5 to set the value.
    • New method method Batch.start to create a BatchExecutor (ThreadExecutor). This method does NOT need to be called if using the class Batch in a context manager (with). Also it is idempotent.
    • New method method Batch.shutdown to shutdown the existing BatchExecutor (ThreadExecutor) to release any resources that it is holding once the batch import is done. This method does NOT need to be called if using the class Batch in a context manager (with). Also it is idempotent.
  • New class Client attribute cluster (class Cluster) to check the status of the cluster nodes.

    • The method method Cluster.get_nodes_status returns the status of each node as a list of dictionaries.
          client.cluster.get_nodes_status()
  • Fix for method DataObject.replace and method DataObject.update when using with Weaviate server >=v1.14.0.

  • New default timeout_config: (10, 60).

Contributions

New Contributors

Full Changelog: v3.8.0...v3.9.0

v3.8.0

07 Sep 16:06
4fa9e0f
Compare
Choose a tag to compare

This minor version includes:

  • Backup functionalities (Backup class):

    • Backup.create method to create backups (all/subset of classes).
    • Backup.get_create_status method to get the status of the created backup.
    • Backup.restore method to restore Weaviate from a backup (all/subset of classes).
    • Backup.get_restore_status method to get the status of the restored backup.
  • New Client attribute: backup to create, restore and get status of the backups. All backup operations MUST be done through Client.backup.

  • Added return value for Batch.add_data_object, it now returns the UUID of the added object, if one was not set then an UUIDv4 will be generated.

v3.7.0

29 Jul 15:14
38737cf
Compare
Choose a tag to compare

This minor version includes:

  • Adds rolling average (last 5 batches) for batch creation time used by Dynamic Batching method.
  • Adds ability to use client.query.get() without specifying any properties IF Additional Properties (client.query.get(...).with_additional()) are set before executing the query.
  • Adds base Weaviate Exception WeaviateBaseError.
  • Adds ability to set proxies. Can be set at Client initialization by using the new proxies or trust_env arguments.
  • Batch creates UUIDs (UUIDv4) for all added objects that do not have one at client side (fixes data duplication on Batch retries).
  • Adds new methods for WCS for instances that have authentication enabled:
    • get_users_of_cluster() to get users (emails) for all the users that have access to the created Weaviate instance.
    • add_user_to_cluster() to add users (email) to the created Weaviate instance.
    • remove_user_from_cluster() to remove user (email) from the created Weaviate instance.

v3.6.0

06 Jul 20:41
63ee3c8
Compare
Choose a tag to compare

This minor version includes:

  • New function weaviate.util.check_batch_result used to print errors from batch creation.

  • New function argument class_name for function weaviate.util.generate_local_beacon, used ONLY with Weaviate Server version >= 1.14.0 (defaults to None for backwards compatibility).

  • Function weaviate.util.check_batch_result is the default callback function for class weaviate.batch.Batch
    (methods weaviate.batch.Batch.configure and weaviate.batch.Batch.__call__) (instead of None).

  • New method argument to_object_class_name for method weaviate.batch.Batch.add_reference, used ONLY with Weaviate Server version >= 1.14.0
    (defaults to None for backwards compatibility).

  • Support for distance in GraphQL filters (only with Weaviate server >= 1.14.0).

  • For class weaviate.data.DataObject:

    • | New method argument class_name for method weaviate.data.DataObject.get_by_id, method weaviate.data.DataObject.get, method weaviate.data.DataObject.delete
      method weaviate.data.DataObject.exists, used ONLY with Weaviate Server version >= 1.14.0 (defaults to None for backwards compatibility).
    • Deprecation Warning if Weaviate Server version >= 1.14.0 and class_name is None OR if Weaviate Server version < 1.14.0 and class_name is NOT None.
  • For class weaviate.data.references.Reference:

    • | New method arguments from_class_name and to_class_name (to_class_names for method weaviate.data.references.Reference.update) for
      method weaviate.data.references.Reference.add, method weaviate.data.references.Reference.delete,
      method weaviate.data.references.Reference.update, used ONLY with Weaviate Server version >= 1.14.0 (defaults to None for backwards compatibility).
    • Deprecation Warning if Weaviate Server version >= 1.14.0 and class_name is None OR if Weaviate Server version < 1.14.0 and class_name is NOT None.

v3.5.1

18 May 10:25
aed91df
Compare
Choose a tag to compare

This patch version fixes:

  • the rerank not being set bug in client.query.get().with_ask().
  • the bug when using double quotes(") in question field in client.query.get().with_ask().
  • the bug where nearText filter checks for objects in moveXXX clause but never sets it.

v3.5.0

08 May 14:11
2d51804
Compare
Choose a tag to compare

This minor version contains functionality for the new features introduced in Weaviate v1.13.0.

  • New Batch method .delete_objects(...) to delete all objects that match a particular expression (where filter).

  • New GetBuilder method .with_sort(...) that allows sorting data on a particular field/s.

  • New AggregateBuilder method .with_near_text(...) that allows to aggregate data that is matching nearText filter.

  • New AggregateBuilder method .with_near_object(...) that allows to aggregate data that is matching nearObject filter.

  • New AggregateBuilder method .with_near_vector(...) that allows to aggregate data that is matching nearVector filter.

v3.4.2

12 Apr 14:55
75ca461
Compare
Choose a tag to compare

Another bug fix in DataObject.exists.

v3.4.1

06 Apr 09:38
036886b
Compare
Choose a tag to compare

bug fix in DataObject.exists.