From 893683405b712dad81ee8c50b48f03df54547787 Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Tue, 22 Aug 2023 13:48:08 +0100 Subject: [PATCH 1/9] fix docstring --- weaviate/schema/crud_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaviate/schema/crud_schema.py b/weaviate/schema/crud_schema.py index 23563f86e..615096994 100644 --- a/weaviate/schema/crud_schema.py +++ b/weaviate/schema/crud_schema.py @@ -936,7 +936,7 @@ def update_class_tenants(self, class_name: str, tenants: List[Tenant]) -> None: Tenant(name="Tenant3") ] ) - >>> client.schema.update_class_tenant_activities( + >>> client.schema.update_class_tenant( "class_name", [ Tenant(activity_status=TenantActivityStatus.COLD, name="Tenant1")), From 324f361d93691206eba449f0dde939c4fb29f0b1 Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Tue, 22 Aug 2023 13:48:14 +0100 Subject: [PATCH 2/9] ignore local dir --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index fc8f89d9e..07694cbf8 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ coverage.xml image.png .vscode/ +scratch/ \ No newline at end of file From 8106a474e92db6feec114181757aad5d5834d42c Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Tue, 22 Aug 2023 13:48:18 +0100 Subject: [PATCH 3/9] update changelog --- docs/changelog.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index ba07a55cb..ecddfa951 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,24 @@ Changelog ========= +Version 3.23.0 +-------------- +This minor version updates the client to work with Weaviate's 1.21 version and includes: + +- Adds support for `near` filters when using the new `multi2vec-bind` module for neural searching on different media types. + - :meth:`~client.gql.get.with_near_audio` + - :meth:`~client.gql.get.with_near_depth` + - :meth:`~client.gql.get.with_near_image` (unchanged from previous versions but usable by the module) + - :meth:`~client.gql.get.with_near_imu` + - :meth:`~client.gql.get.with_near_thermal` + - :meth:`~client.gql.get.with_near_video` +- Adds support for updating individual tenants within a multi-tenancy class configuration. + - :meth:`~client.schema.update_class_tenants` +- Adds support for new `ContainsAny` and `ContainsAll` filters when using `.with_where`. +- Deprecates configuring `client.batch` using `client.batch()` in favour of using `client.batch.configure()`. +- Improves `client.batch` algorithm to choose batch size dynamically maximising throughput. +- Fixes bugs associateed when using `.with_where` with `valueText`, `valueString`, and `valueGeoRange` types. + Version 3.22.1 -------------- This patch version includes: From 396c60653587b96e2f8408d18619e96105c533c9 Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Tue, 22 Aug 2023 13:49:12 +0100 Subject: [PATCH 4/9] fix docstring --- weaviate/schema/crud_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaviate/schema/crud_schema.py b/weaviate/schema/crud_schema.py index 615096994..61bc85d1f 100644 --- a/weaviate/schema/crud_schema.py +++ b/weaviate/schema/crud_schema.py @@ -936,7 +936,7 @@ def update_class_tenants(self, class_name: str, tenants: List[Tenant]) -> None: Tenant(name="Tenant3") ] ) - >>> client.schema.update_class_tenant( + >>> client.schema.update_class_tenants( "class_name", [ Tenant(activity_status=TenantActivityStatus.COLD, name="Tenant1")), From 0bce99b0fe2cd1f60a1494d3d910e4c4d84561e3 Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Tue, 22 Aug 2023 15:47:42 +0100 Subject: [PATCH 5/9] update changelog --- docs/changelog.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index ecddfa951..ea7ea26a3 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -17,7 +17,8 @@ This minor version updates the client to work with Weaviate's 1.21 version and i - Adds support for new `ContainsAny` and `ContainsAll` filters when using `.with_where`. - Deprecates configuring `client.batch` using `client.batch()` in favour of using `client.batch.configure()`. - Improves `client.batch` algorithm to choose batch size dynamically maximising throughput. -- Fixes bugs associateed when using `.with_where` with `valueText`, `valueString`, and `valueGeoRange` types. +- Provides sensible defaults to `client.batch` that do not cause unexpected damaging consequences like infinite batch sizes. +- Fixes bugs when using `.with_where` with `valueText`, `valueString`, and `valueGeoRange` types. Version 3.22.1 -------------- From b7c0f074deccef3a7af1e09c865ab560fb89bf4d Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Tue, 22 Aug 2023 15:53:06 +0100 Subject: [PATCH 6/9] update changelog --- docs/changelog.rst | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index ea7ea26a3..b80951410 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,27 +5,30 @@ Version 3.23.0 -------------- This minor version updates the client to work with Weaviate's 1.21 version and includes: -- Adds support for `near` filters when using the new `multi2vec-bind` module for neural searching on different media types. - - :meth:`~client.gql.get.with_near_audio` - - :meth:`~client.gql.get.with_near_depth` - - :meth:`~client.gql.get.with_near_image` (unchanged from previous versions but usable by the module) - - :meth:`~client.gql.get.with_near_imu` - - :meth:`~client.gql.get.with_near_thermal` - - :meth:`~client.gql.get.with_near_video` +- Adds support for ``near`` filters when using the new ``multi2vec-bind`` module for neural searching on different media types. + - ``client.query.get().with_near_audio()`` + - ``client.query.get().with_near_depth()`` + - ``client.query.get().with_near_image()`` (unchanged from previous versions but usable by the module) + - ``client.query.get().with_near_imu()`` + - ``client.query.get().with_near_thermal()`` + - ``client.query.get().with_near_video()`` - Adds support for updating individual tenants within a multi-tenancy class configuration. - - :meth:`~client.schema.update_class_tenants` -- Adds support for new `ContainsAny` and `ContainsAll` filters when using `.with_where`. -- Deprecates configuring `client.batch` using `client.batch()` in favour of using `client.batch.configure()`. -- Improves `client.batch` algorithm to choose batch size dynamically maximising throughput. -- Provides sensible defaults to `client.batch` that do not cause unexpected damaging consequences like infinite batch sizes. -- Fixes bugs when using `.with_where` with `valueText`, `valueString`, and `valueGeoRange` types. + - ``client.schema.update_class_tenants`` +- Adds support for new ``ContainsAny`` and ``ContainsAll`` filters when using ``.with_where``. +- Deprecates configuring ``client.batch`` using ``client.batch()`` in favour of using ``client.batch.configure()``. + - ``client.batch()`` will be removed in a future version. + - ``client.batch.configure()`` will return ``None`` in a future version. + - ``with client.batch as batch`` should be the standard way to initiate a batch. +- Improves ``client.batch`` algorithm to choose batch size dynamically maximising throughput. +- Provides sensible defaults to ``client.batch`` that do not cause unexpected damaging consequences like infinite batch sizes. +- Fixes bugs when using ``.with_where`` with ``valueText``, ``valueString``, and ``valueGeoRange`` types. Version 3.22.1 -------------- This patch version includes: - Fix "is client outdated"-check in air-gaped environments -- Add `tenant` to batch delete +- Add ``tenant`` to batch delete Version 3.22.0 -------------- @@ -57,7 +60,7 @@ Version 3.20.0 This minor version includes: -- Increase maximum version of request library to `2.31.0`. This also updates to urllib 2.0. This may contain minor breaking changes if you use urllib in other projects in the same virtual environment. +- Increase maximum version of request library to ``2.31.0``. This also updates to urllib 2.0. This may contain minor breaking changes if you use urllib in other projects in the same virtual environment. - Add licensing information to pypi package - Increase default embedded version to 1.19.7 @@ -73,7 +76,7 @@ Version 3.19.1 -------------- This patch version includes: -- Fixes imports of of `weaviate_pb2`. +- Fixes imports of of ``weaviate_pb2``. Version 3.19.0 -------------- From 83ec26fe377e8b0f4b11c0264d462c73af12ec12 Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Tue, 22 Aug 2023 15:53:40 +0100 Subject: [PATCH 7/9] update changelog --- docs/changelog.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index b80951410..da02fcaf4 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -12,8 +12,7 @@ This minor version updates the client to work with Weaviate's 1.21 version and i - ``client.query.get().with_near_imu()`` - ``client.query.get().with_near_thermal()`` - ``client.query.get().with_near_video()`` -- Adds support for updating individual tenants within a multi-tenancy class configuration. - - ``client.schema.update_class_tenants`` +- Adds support for updating individual tenants within a multi-tenancy class configuration: ``client.schema.update_class_tenants``. - Adds support for new ``ContainsAny`` and ``ContainsAll`` filters when using ``.with_where``. - Deprecates configuring ``client.batch`` using ``client.batch()`` in favour of using ``client.batch.configure()``. - ``client.batch()`` will be removed in a future version. From 2f00d71a03c9c849b915a3c13129aae6dbbec78e Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Tue, 22 Aug 2023 15:54:11 +0100 Subject: [PATCH 8/9] update changelog --- docs/changelog.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index da02fcaf4..2adf5e15d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -12,12 +12,12 @@ This minor version updates the client to work with Weaviate's 1.21 version and i - ``client.query.get().with_near_imu()`` - ``client.query.get().with_near_thermal()`` - ``client.query.get().with_near_video()`` -- Adds support for updating individual tenants within a multi-tenancy class configuration: ``client.schema.update_class_tenants``. -- Adds support for new ``ContainsAny`` and ``ContainsAll`` filters when using ``.with_where``. - Deprecates configuring ``client.batch`` using ``client.batch()`` in favour of using ``client.batch.configure()``. - ``client.batch()`` will be removed in a future version. - ``client.batch.configure()`` will return ``None`` in a future version. - ``with client.batch as batch`` should be the standard way to initiate a batch. +- Adds support for new ``ContainsAny`` and ``ContainsAll`` filters when using ``.with_where``. +- Adds support for updating individual tenants within a multi-tenancy class configuration: ``client.schema.update_class_tenants``. - Improves ``client.batch`` algorithm to choose batch size dynamically maximising throughput. - Provides sensible defaults to ``client.batch`` that do not cause unexpected damaging consequences like infinite batch sizes. - Fixes bugs when using ``.with_where`` with ``valueText``, ``valueString``, and ``valueGeoRange`` types. From 8a8172f75c0025f7ebaa4cf11ad178039d0cf838 Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Tue, 22 Aug 2023 15:55:38 +0100 Subject: [PATCH 9/9] update changelog --- docs/changelog.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 2adf5e15d..e682fc390 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,22 +5,22 @@ Version 3.23.0 -------------- This minor version updates the client to work with Weaviate's 1.21 version and includes: -- Adds support for ``near`` filters when using the new ``multi2vec-bind`` module for neural searching on different media types. +- Adds support for ``near`` filters when using the new ``multi2vec-bind`` module for neural searching on different media types - ``client.query.get().with_near_audio()`` - ``client.query.get().with_near_depth()`` - ``client.query.get().with_near_image()`` (unchanged from previous versions but usable by the module) - ``client.query.get().with_near_imu()`` - ``client.query.get().with_near_thermal()`` - ``client.query.get().with_near_video()`` -- Deprecates configuring ``client.batch`` using ``client.batch()`` in favour of using ``client.batch.configure()``. - - ``client.batch()`` will be removed in a future version. - - ``client.batch.configure()`` will return ``None`` in a future version. - - ``with client.batch as batch`` should be the standard way to initiate a batch. -- Adds support for new ``ContainsAny`` and ``ContainsAll`` filters when using ``.with_where``. -- Adds support for updating individual tenants within a multi-tenancy class configuration: ``client.schema.update_class_tenants``. -- Improves ``client.batch`` algorithm to choose batch size dynamically maximising throughput. -- Provides sensible defaults to ``client.batch`` that do not cause unexpected damaging consequences like infinite batch sizes. -- Fixes bugs when using ``.with_where`` with ``valueText``, ``valueString``, and ``valueGeoRange`` types. +- Deprecates configuring ``client.batch`` using ``client.batch()`` in favour of using ``client.batch.configure()`` + - ``client.batch()`` will be removed in a future version + - ``client.batch.configure()`` will return ``None`` in a future version + - ``with client.batch as batch`` should be the standard way to initiate a batch +- Adds support for new ``ContainsAny`` and ``ContainsAll`` filters when using ``.with_where`` +- Adds support for updating individual tenants within a multi-tenancy class configuration: ``client.schema.update_class_tenants`` +- Improves ``client.batch`` algorithm to choose batch size dynamically maximising throughput +- Provides sensible defaults to ``client.batch`` that do not cause unexpected damaging consequences like infinite batch sizes +- Fixes bugs when using ``.with_where`` with ``valueText``, ``valueString``, and ``valueGeoRange`` types Version 3.22.1 --------------