Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate v3 in v4 #1239

Merged
merged 7 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ The client is tested for python 3.8 and higher.

Visit the official `Weaviate <https://weaviate.io/>`_ website for more information about the Weaviate and how to use it in production.

Client Versions
--------
We currently support the following versions client versions:

- 4.X: actively supported
- 3.X: deprecated, receives only critical bug fixes and dependency updates
- copy of the 3.X branch in v4 releases: Will be removed at 30.11.2024
dirkkul marked this conversation as resolved.
Show resolved Hide resolved


Articles
--------

Expand All @@ -32,7 +41,6 @@ Here are some articles on Weaviate:
- `Getting Started with Weaviate Python Library <https://towardsdatascience.com/getting-started-with-weaviate-python-client-e85d14f19e4f>`_
- `A sub-50ms neural search with DistilBERT and Weaviate <https://towardsdatascience.com/a-sub-50ms-neural-search-with-distilbert-and-weaviate-4857ae390154>`_


Documentation
-------------

Expand Down
14 changes: 8 additions & 6 deletions weaviate/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,14 @@ def root_module_import(name: str, loc: str) -> None:
@staticmethod
def weaviate_v3_client_is_deprecated() -> None:
warnings.warn(
message="""Dep016: Python client v3 `weaviate.Client(...)` connections and methods are deprecated. Update
your code to use Python client v4 `weaviate.WeaviateClient` connections and methods.

For Python Client v4 usage, see: https://weaviate.io/developers/weaviate/client-libraries/python
For code migration, see: https://weaviate.io/developers/weaviate/client-libraries/python/v3_v4_migration
""",
message="""Dep016: Python client v3 `weaviate.Client(...)` connections and methods are deprecated and will
be removed by 30.11.2024.
dirkkul marked this conversation as resolved.
Show resolved Hide resolved

You can either:
a) upgrade your code to use Python client v4 `weaviate.WeaviateClient` connections and methods.
dirkkul marked this conversation as resolved.
Show resolved Hide resolved
- For Python Client v4 usage, see: https://weaviate.io/developers/weaviate/client-libraries/python
- For code migration, see: https://weaviate.io/developers/weaviate/client-libraries/python/v3_v4_migration
b) stay on v3 releases by installing `weaviate-client==3.26.X` and/or pin the dependency in your requirement file using `weaviate-client>=3.26.6;<4.0.0`""",
category=DeprecationWarning,
stacklevel=1,
)
Expand Down
Loading