Weaviate-client

Latest version: v4.6.3

Safety actively analyzes 631310 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 10 of 16

3.10.0

What's Changed
* Improve error message for error "413: Payload Too Large" by dirkkul in https://github.com/semi-technologies/weaviate-python-client/pull/159
* Add client credential OIDC flow method by dirkkul in https://github.com/semi-technologies/weaviate-python-client/pull/164
python
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 https://github.com/semi-technologies/weaviate-python-client/pull/172
* Add limit parameter to client.data_object.get() REST query by dirkkul in https://github.com/semi-technologies/weaviate-python-client/pull/181
* Bump minimum version of request by dirkkul in https://github.com/semi-technologies/weaviate-python-client/pull/186
* Add support for node_name and consistency_level get by id query params by parkerduckworth in https://github.com/semi-technologies/weaviate-python-client/pull/180
* Adds support for replication factor by aliszka in https://github.com/semi-technologies/weaviate-python-client/pull/192
* Add Bm25 and hybrid search by dirkkul in https://github.com/semi-technologies/weaviate-python-client/pull/191

New Contributors
* aliszka made their first contribution in https://github.com/semi-technologies/weaviate-python-client/pull/192

**Full Changelog**: https://github.com/semi-technologies/weaviate-python-client/compare/v3.9.0...v3.10.0

3.10.0b0

What's Changed
* Improve error message for error "413: Payload Too Large" by dirkkul in https://github.com/semi-technologies/weaviate-python-client/pull/159
* Add client credential OIDC flow method by dirkkul in https://github.com/semi-technologies/weaviate-python-client/pull/164
python
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 https://github.com/semi-technologies/weaviate-python-client/pull/172
* Add limit parameter to client.data_object.get() REST query by dirkkul in https://github.com/semi-technologies/weaviate-python-client/pull/181


**Full Changelog**: https://github.com/semi-technologies/weaviate-python-client/compare/v3.9.0...v3.10.0b0

3.9.0

What's Changed
This minor version includes:
- Authentication using Bearer token, by adding `additional_headers` to the class `Client` initialization:
python
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.
python
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

* Add support for nodes API by parkerduckworth in https://github.com/semi-technologies/weaviate-python-client/pull/136
* Introduce the cluster handler by parkerduckworth in https://github.com/semi-technologies/weaviate-python-client/pull/141
* Fix update and replace with version >=1.14 by dirkkul in https://github.com/semi-technologies/weaviate-python-client/pull/144
* Add authentication with Access Token by StefanBogdan in https://github.com/semi-technologies/weaviate-python-client/pull/149
* add multi-threading batch import by StefanBogdan in https://github.com/semi-technologies/weaviate-python-client/pull/138

New Contributors
* parkerduckworth made their first contribution in https://github.com/semi-technologies/weaviate-python-client/pull/134
* dirkkul made their first contribution in https://github.com/semi-technologies/weaviate-python-client/pull/135

**Full Changelog**: https://github.com/semi-technologies/weaviate-python-client/compare/v3.8.0...v3.9.0

3.8.0

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.

3.7.0

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.

3.6.0

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`.

Page 10 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.