Weaviate-client

Latest version: v4.10.2

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

Scan your dependencies

Page 7 of 21

4.4.rc0

--------------

This version is a release candidate for the python v4 client.

All backward compatibility code is being removed and _requires_ weaviate versions >= 1.23.5.

All deprecated code has been removed. Check the migration guide (https://www.weaviate.io/developers/weaviate/client-libraries/python#migration-guides) how to update your code.

Improvements include:
- Input validation
- Embedded weaviate shows an error when the chosen port(s) are already occupied

Fixes include:
- Filter chained references by reference count
- Various bug with filtered aggregation
- Aggregation with move to/away_from objects
- Timeouts also apply to GRPC calls

4.4.b9

--------------

This beta version has breaking changes, a migration guide is available at https://www.weaviate.io/developers/weaviate/client-libraries/python#migration-guides:

- The batching algorithm has been streamlined and improved in its implementation and API surface.
- There are now three types of batching that can be performed:
- ``client.batch.dynamic()`` where the algorithm will automatically determine the optimal batch size and number of concurrent requests.
- ``client.batch.fixed_size()`` where the user can specify the batch size and number of concurrent requests.
- ``client.batch.rate_limit()`` where the user specifies the number of requests per minute that their third-party vectorization API can support.
- If an exception is thrown in the background batching thread then this is surfaced to the main thread and re-raised in order to stop the batch.
- Previously, this would silently error.
- Enforces that all optional arguments to queries must be supplied as keyword arguments.
- Adds runtime validation to all queries.
- Renaming of ``prop`` to ``name`` in ``Filter.by_property``.
- Moving of the ``timeout`` argument in ``weaviate.connect_to_x`` methods into new argument ``additional_config: Optional[AdditionalConfig]``.

Improvements include:
- Introduction of the ``.by_ref_count()`` method on ``Filter`` to filter on the number of references present in a reference property of an object.
- This was previously achievable with ``Filter([refProp]).greater_than(0)`` but is now more explicit using the chaining syntax.
- The syntax for sorting now feels similar to the new filtering syntax.
- Supports method chaining like ``Sort.by_property(prop).by_creation_time()`` which will apply the sorting in the order they are chained, i.e., this chain
is equivalent to the previous syntax of ``[Sort(prop), Sort("_creationTimeUnix")]``.

Fixes include:
- The potential for deadlocks and data races when batching has been reduced.
- Fixes a number of missing properties and poor docstrings in ``weaviate.connect_to_x`` methods.
- Adds the missing ``offset`` parameter to all queries.

4.4.b8

--------------

This beta version has breaking changes, a migration guide is available at https://www.weaviate.io/developers/weaviate/client-libraries/python#migration-guides:

- Filters have been reworked and have a new syntax.
- Coming from <=4.4.b6 you can replace:
- ``Filter(path=property)`` with ``Filter.by_property(property)``
- ``Filter(path=["ref","target_class", "target_property"])`` with ``Filter.by_ref("ref").by_property("target_property")``
- ``FilterMetadata.ByXX``with ``Filter.by_id/creation_time/update_time()``
- Coming from =4.4b7 you can replace:
- ``Filter.by_ref().link_on("ref").by_property("target_property")`` with ``Filter.by_ref("ref").by_property("target_property")``

Bugfixes include:
- Error message when creating the client directly without calling ``connect_to_XXX``.
- Fix deadlock in new batching algorithm.
- Fix ``skip_init_checks=True`` resulting in compatibility with Weaviate 1.22 only.

4.4.b7

--------------

This beta version has breaking changes, a migration guide is available at https://www.weaviate.io/developers/weaviate/client-libraries/python#migration-guides:

- For ``client.batch`` the ``add_reference`` method was revised. The ``to_object_collection`` parameter was removed and the other parameters were harmonized with ``collection.batch``. Available parameters are now: ``from_uuid``, ``from_collection``, ``from_property``, ``to`` and ``tenant``.
- It is no longer possible to use ``client.batch`` directly, you must use it as a context manager (``with client.batch as batch``)
- Manual batch mode has been removed.
- Dynamic batching (for batch_size and number of concurrent requests) is now default. Fixed-size batching can be configured with ``batch.configure_fixed_size(..)``.
- Filters have been reworked and have a new syntax. You can replace:
- ``Filter(path=property)`` with ``Filter.by_property(property)``
- ``Filter(path=["ref","target_class", "target_property"])`` with ``Filter.by_ref().link_on("ref").by_property("target_property")``
- ``FilterMetadata.ByXX``with ``Filter.by_id/creation_time/update_time()``
- Importing directly from ``weaviate`` has been deprecated. Use ``import weaviate.classes as wvc`` instead and import from there.
- Multi-target references functions have been moved to:
- ``ReferenceProperty.MultiTarget``
- ``DataReference.MultiTarget``
- ``QueryReference.MultiTarget``
- Exception names are now compatible with PEP8, old names are still available but deprecated.
- References can now be provided directly as ``UUIDs``, ``str`` and ``Reference.XXX()`` has been deprecated. For multi-target references use ``ReferenceToMulti``.

New functionality includes:
- New batching algorithm that supports dynamic scaling of batch-size and number of concurrent requests.
- New filter syntax that also supports structured filtering on references for normal properties and metadata.
- All reference functions have unified input formats and now accept ``UUID``, ``str`` and (where applicable) ``List[str]``, ``List[UUID]``.
- Returned types are now available in ``weaviate.output``.
- Add missing classes to ``weaviate.classes``.
- Add missing parameters to ``connect_to_XXX``, all functions should support skipping of init checks and auth.
- The client can now be used in a context manager ``with connect_to_XX(..) as client`` and all connections will be closed when exiting the manager.
- New close function ``client.close()`` that needs to be called when not using a context manager to avoid stale connections and potential memory leaks.
- Support for ``Phonenumber`` datatype.
- Referenced objects now contain the name of their collection.
- Adds ``collection.config.update_shards()``.

Bugfixes include:
- object.reference is empty instead of None, if an object does not have a reference.
- Fixes creating backups on weaviate master.
- Add missing classes to ``wvc``.

New client usage:
- Client as a context manager:
.. code-block:: python
with weaviate.connect_to_local() as client:
Your code
- Client without a context manager:
.. code-block:: python
try:
client = weaviate.connect_to_local()
Your code
finally:
client.close()

4.4.b6

--------------

This beta version includes:

- A fix to the ``_Property`` dataclass returned within ``collection.config.get()`` to include any ``nested_properties`` of ``object`` and ``object[]`` type properties
- Fix batch inserts with empty lists

4.4.b5

--------------

This beta version includes:

- fetch_object_by_id with Weaviate 1.22 returned ``None`` for non-existing references
- empty strings in returned objects caused a panic with weaviate 1.22
- Support for nodes/cluster API
- Speed up client creation when connecting to WCS using ``connect_to_wcs``
- Checks GRPC availability of Weaviate instance and return an error if it is not supported yet
- Adds ``skip_init_checks`` to ``connect_to_wcs``

With the next Weaviate version (1.23.1) this beta version supports:
- Blob properties
- Reranker

Page 7 of 21

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.