Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4d56ca0
chore(deps): raise the grpcio upper bound to <2.0.0
ColtonRobak Oct 28, 2026
a5f9aab
ci: pin protobuf per integration matrix entry
ColtonRobak Oct 28, 2026
17bd0b8
Add rescore_factor to quantizer configs and rescore_limit to PQ
trengrj Nov 11, 2026
4de608b
Add integration test for rescore_factor and run CI against 1.41
trengrj Nov 11, 2026
0f30737
Raise minimum supported version to 1.32.0
g-despot Nov 11, 2026
d8146e5
Merge pull request #2250 from weaviate/min-weaviate-version-1.32
dirkkul Nov 11, 2026
4700e6b
Merge pull request #2248 from weaviate/feat/rescore-factor
dirkkul Nov 11, 2026
6873e16
Merge branch 'main' into dev/1.41
dirkkul Nov 13, 2026
cd60277
Merge branch 'main' into chore/raise-grpcio-upper-bound
dirkkul Nov 13, 2026
b0c1982
Merge branch 'dev/1.41' into chore/raise-grpcio-upper-bound
dirkkul Nov 13, 2026
41ff1bc
Merge pull request #2227 from weaviate/chore/raise-grpcio-upper-bound
dirkkul Nov 13, 2026
7cfa12e
Add support for protobuf7
dirkkul Nov 13, 2026
47124d0
Comment fixes
dirkkul Nov 13, 2026
ed9773f
Merge pull request #2254 from weaviate/protoubuf7
dirkkul Nov 13, 2026
dd9956d
Merge branch 'main' into dev/1.41
dirkkul Nov 13, 2026
662777d
Drop pre-3.9 typing fallback and fix documented Python floor
dirkkul Nov 13, 2026
bd287e7
Drop support for Python 3.10
dirkkul Nov 13, 2026
7f06dee
Cleanup more old code
dirkkul Nov 13, 2026
ad74c7f
Support Python 3.15
dirkkul Nov 13, 2026
536e1de
Run the tests with the correct python version
dirkkul Nov 13, 2026
e9c6ca8
Merge pull request #2258 from weaviate/python_315
dirkkul Nov 13, 2026
b0e8297
Merge branch 'main' into dev/1.41
dirkkul Nov 17, 2026
57ad3f2
Add API key expiration for DB users on Weaviate 1.41+
dirkkul Nov 10, 2026
0693fed
Add more integration tests for get functions
dirkkul Nov 11, 2026
fceb5fa
Docstring fixes
dirkkul Nov 18, 2026
e82c196
Rename expires_at to user_expires_at
dirkkul Nov 18, 2026
0367692
Merge pull request #2249 from weaviate/user_ttl
dirkkul Nov 19, 2026
1793f74
Merge branch 'main' into dev/1.41
dirkkul Nov 19, 2026
4ff2b74
Add `Configure.Reranker.typesafeai` and `Configure.Reranker.openai` (…
jfrancoa Nov 24, 2026
9b76bf9
Test against Weaviate 1.41.0 (#2274)
jfrancoa Nov 25, 2026
38e8a42
Merge branch 'main' into dev/1.41
databyjp Nov 25, 2026
5f2a416
Merge branch 'main' into dev/1.41
databyjp Nov 26, 2026
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
56 changes: 28 additions & 28 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ concurrency:
cancel-in-progress: true

env:
WEAVIATE_127: 1.27.27
WEAVIATE_128: 1.28.16
WEAVIATE_129: 1.29.11
WEAVIATE_130: 1.30.23
WEAVIATE_131: 1.31.22
WEAVIATE_132: 1.32.27
WEAVIATE_133: 1.33.18
WEAVIATE_134: 1.34.20
Expand All @@ -32,6 +27,7 @@ env:
WEAVIATE_138: 1.38.22
WEAVIATE_139: 1.39.13
WEAVIATE_140: 1.40.2
WEAVIATE_141: 1.41.0

jobs:
lint-and-format:
Expand Down Expand Up @@ -67,7 +63,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
folder: ["weaviate", "integration", "integration_embedded"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand All @@ -88,7 +84,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
folder: ["test", "mock_tests"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand All @@ -100,7 +96,7 @@ jobs:
- name: Run unittests
run: pytest --cov -v --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-${{ matrix.folder }}.xml ${{ matrix.folder }}
- name: Archive code coverage results
if: matrix.version == '3.10' && (github.ref_name != 'main')
if: matrix.version == '3.11' && (github.ref_name != 'main')
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: coverage-report-${{ matrix.folder }}
Expand Down Expand Up @@ -172,8 +168,8 @@ jobs:
strategy:
fail-fast: false
matrix:
grpc: ["1.59.5", "1.63.0", "1.65.0", "1.66.0", "1.68.0", "1.72.1", "1.73.0", "1.74.0"]
protobuf: ["4.25.8", "5.26.0", "5.27.4", "5.28.3", "5.29.0", "6.30.0", "6.31.1", "6.32.0"]
grpc: ["1.59.5", "1.63.0", "1.65.0", "1.66.0", "1.68.0", "1.72.1", "1.73.0", "1.74.0", "1.83.0", "1.85.0"]
protobuf: ["4.25.8", "5.26.0", "5.27.4", "5.28.3", "5.29.0", "6.30.0", "6.31.1", "6.32.0", "6.33.6", "7.34.0", "7.36.2"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
Expand All @@ -192,7 +188,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
optional_dependencies: [false]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand All @@ -210,7 +206,7 @@ jobs:
if: ${{ !github.event.pull_request.head.repo.fork }}
run: pytest -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration-embedded.xml integration_embedded
- name: Archive code coverage results
if: matrix.version == '3.10' && (github.ref_name != 'main') && !github.event.pull_request.head.repo.fork
if: matrix.version == '3.11' && (github.ref_name != 'main') && !github.event.pull_request.head.repo.fork
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: coverage-report-integration-embedded
Expand All @@ -224,11 +220,13 @@ jobs:
fail-fast: false
matrix:
versions: [
{ py: "3.10", weaviate: $WEAVIATE_140, grpc: "1.59.0"},
{ py: "3.11", weaviate: $WEAVIATE_140, grpc: "1.66.0"},
{ py: "3.12", weaviate: $WEAVIATE_140, grpc: "1.70.0"},
{ py: "3.13", weaviate: $WEAVIATE_140, grpc: "1.72.1"},
{ py: "3.14", weaviate: $WEAVIATE_140, grpc: "1.76.0"}
{ py: "3.11", weaviate: $WEAVIATE_140, grpc: "1.59.5", protobuf: "4.25.9"},
{ py: "3.12", weaviate: $WEAVIATE_140, grpc: "1.70.0", protobuf: "5.29.6"},
{ py: "3.13", weaviate: $WEAVIATE_140, grpc: "1.72.1", protobuf: "6.33.6"},
{ py: "3.14", weaviate: $WEAVIATE_140, grpc: "1.76.0", protobuf: "6.33.6"},
{ py: "3.14", weaviate: $WEAVIATE_140, grpc: "1.85.0", protobuf: "6.33.6"},
{ py: "3.14", weaviate: $WEAVIATE_140, grpc: "1.85.0", protobuf: "7.36.2"},
{ py: "3.15", weaviate: $WEAVIATE_140, grpc: "1.85.0", protobuf: "7.36.2"}
]
optional_dependencies: [false]
steps:
Expand All @@ -248,7 +246,7 @@ jobs:
password: ${{secrets.DOCKER_PASSWORD}}
- run: |
pip install -r requirements-test.txt
pip install grpcio==${{ matrix.versions.grpc }} grpcio-tools==${{ matrix.versions.grpc }} grpcio-health-checking==${{ matrix.versions.grpc }}
pip install grpcio==${{ matrix.versions.grpc }} protobuf==${{ matrix.versions.protobuf }}
pip install .
- name: start weaviate
run: /bin/bash ci/start_weaviate.sh ${{ matrix.versions.weaviate }}
Expand All @@ -263,7 +261,7 @@ jobs:
if: ${{ github.event.pull_request.head.repo.fork || github.triggering_actor == 'dependabot[bot]' }}
run: pytest -n auto --dist loadgroup -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration.xml integration
- name: Archive code coverage results
if: matrix.versions.py == '3.10' && (github.ref_name != 'main')
if: matrix.versions.py == '3.11' && (github.ref_name != 'main')
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: coverage-report-integration
Expand All @@ -279,18 +277,18 @@ jobs:
fail-fast: false
matrix:
versions: [
{ py: "3.10", weaviate: $WEAVIATE_140},
{ py: "3.11", weaviate: $WEAVIATE_140},
{ py: "3.12", weaviate: $WEAVIATE_140},
{ py: "3.13", weaviate: $WEAVIATE_140},
{ py: "3.14", weaviate: $WEAVIATE_140}
{ py: "3.14", weaviate: $WEAVIATE_140},
{ py: "3.15", weaviate: $WEAVIATE_140}
]
optional_dependencies: [false]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.11"
python-version: ${{ matrix.versions.py }}
cache: 'pip' # caching pip dependencies
- name: Login to Docker Hub
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
Expand Down Expand Up @@ -373,11 +371,6 @@ jobs:
fail-fast: false
matrix:
version: [
$WEAVIATE_127,
$WEAVIATE_128,
$WEAVIATE_129,
$WEAVIATE_130,
$WEAVIATE_131,
$WEAVIATE_132,
$WEAVIATE_133,
$WEAVIATE_134,
Expand All @@ -386,7 +379,8 @@ jobs:
$WEAVIATE_137,
$WEAVIATE_138,
$WEAVIATE_139,
$WEAVIATE_140
$WEAVIATE_140,
$WEAVIATE_141
]
steps:
- name: Checkout
Expand All @@ -412,8 +406,14 @@ jobs:
pip install weaviate_client-*.whl
- run: rm -r weaviate
- name: start weaviate
env:
# ci/docker-compose-rbac.yml passes it to Weaviate as LICENSE_KEY.
WEAVIATE_LICENSE_KEY: ${{ secrets.WEAVIATE_LICENSE_KEY }}
run: /bin/bash ci/start_weaviate.sh ${{ matrix.version }}
- name: Run integration tests without auth secrets (auth tests ran in previous job)
env:
# The DB user expiration tests skip where it is empty, as on forks.
WEAVIATE_LICENSE_KEY: ${{ secrets.WEAVIATE_LICENSE_KEY }}
run: pytest -v -n auto --dist loadgroup integration

build-and-publish:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Weaviate python client

A python native client for easy interaction with a Weaviate instance.

The client is tested for python 3.9 and higher.
The client is tested for python 3.11 and higher.

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

Expand Down
1 change: 1 addition & 0 deletions ci/docker-compose-rbac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ services:
RAFT_BOOTSTRAP_EXPECT: "1"
AUTHORIZATION_ENABLE_RBAC: "true"
AUTHENTICATION_DB_USERS_ENABLED: "true"
LICENSE_KEY: ${WEAVIATE_LICENSE_KEY:-}
AUTHENTICATION_OIDC_ENABLED: 'true'
AUTHENTICATION_OIDC_CLIENT_ID: 'mock-oidc-test'
AUTHENTICATION_OIDC_ISSUER: 'http://mock-oidc:48001/oidc'
Expand Down
9 changes: 9 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

Version 4.25.0
--------------
This minor version includes:
- Remove support for Weaviate versions < 1.32.0. Connecting to an older server now raises ``WeaviateStartUpError`` even with ``skip_init_checks=True``. Please update your Weaviate instances
- Support ``protobuf`` 7
- Remove support for Python 3.10, which reached its end of life in October 2026. The client now requires Python 3.11 or newer
- Support Python 3.15
- Remove the legacy GraphQL aggregation path together with the ``weaviate.gql`` and ``weaviate.error_msgs`` modules, ``weaviate.util.is_weaviate_too_old`` and ``weaviate.util.MINIMUM_NO_WARNING_VERSION``, and the ``weaviate.AdditionalProperties`` and ``weaviate.LinkTo`` attributes (which already pointed at names that did not exist). Aggregations always use gRPC now. ``client.graphql_raw_query()`` is unchanged

Version 4.24.1
--------------
This patch version includes:
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Welcome to Weaviate Python Client's documentation!

|build-status| |pypi-version|

The Weaviate Python client makes it easy to work with `Weaviate <https://weaviate.io/>`_, an AI Native vector database. The client is tested for Python 3.8 and higher.
The Weaviate Python client makes it easy to work with `Weaviate <https://weaviate.io/>`_, an AI Native vector database. The client is tested for Python 3.11 and higher.

The current major version is **v4** while the older **v3** client is deprecated and should be avoided. You can find further documentation for both versions:

Expand Down
26 changes: 0 additions & 26 deletions docs/weaviate.gql.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/weaviate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Subpackages
weaviate.collections
weaviate.connect
weaviate.debug
weaviate.gql
weaviate.outputs
weaviate.rbac
weaviate.users
Expand Down
11 changes: 0 additions & 11 deletions integration/test_alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ def client(client_factory: ClientFactory) -> Generator[weaviate.WeaviateClient,


def test_alias_creation_and_deletion(client: weaviate.WeaviateClient, request: SubRequest) -> None:
if client._connection._weaviate_version.is_lower_than(1, 32, 0):
pytest.skip("Aliases are not supported in Weaviate versions < 1.32.0")
name = _sanitize_collection_name(request.node.name)
name2 = _sanitize_collection_name(request.node.name + "_2")
alias1: str = "Alias" + _sanitize_collection_name(request.node.name)
Expand Down Expand Up @@ -98,9 +96,6 @@ def test_alias_creation_and_deletion(client: weaviate.WeaviateClient, request: S


def test_alias_creation_and_update(client: weaviate.WeaviateClient, request: SubRequest) -> None:
if client._connection._weaviate_version.is_lower_than(1, 32, 0):
pytest.skip("Aliases are not supported in Weaviate versions < 1.32.0")

name = _sanitize_collection_name(request.node.name)
name2 = _sanitize_collection_name(request.node.name + "_2")
alias1: str = "Alias" + _sanitize_collection_name(request.node.name)
Expand Down Expand Up @@ -138,9 +133,6 @@ def test_alias_creation_and_update(client: weaviate.WeaviateClient, request: Sub


def test_alias_get(client: weaviate.WeaviateClient, request: SubRequest) -> None:
if client._connection._weaviate_version.is_lower_than(1, 32, 0):
pytest.skip("Aliases are not supported in Weaviate versions < 1.32.0")

name = _sanitize_collection_name(request.node.name)
alias1: str = "Alias" + _sanitize_collection_name(request.node.name)

Expand All @@ -162,9 +154,6 @@ def test_alias_get(client: weaviate.WeaviateClient, request: SubRequest) -> None


def test_alias_exists(client: weaviate.WeaviateClient, request: SubRequest) -> None:
if client._connection._weaviate_version.is_lower_than(1, 32, 0):
pytest.skip("Aliases are not supported in Weaviate versions < 1.32.0")

name = _sanitize_collection_name(request.node.name)
alias1: str = "Alias" + _sanitize_collection_name(request.node.name)

Expand Down
18 changes: 0 additions & 18 deletions integration/test_backup_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,6 @@ def test_backup_and_restore_with_dynamic_location(
conf_restore: Optional[wvc.backup.BackupConfigRestore] = None
backup_location: Optional[wvc.backup.BackupLocationType] = None
if dynamic_backup_location:
if client._connection._weaviate_version.is_lower_than(1, 27, 2):
pytest.skip("Cancel backups is only supported from 1.27.2")

backup_location = wvc.backup.BackupLocation.FileSystem(path=str(tmp_path))

article = client.collections.use("Article")
Expand Down Expand Up @@ -451,9 +448,6 @@ def test_backup_and_restore_with_dynamic_location(
def test_backup_and_restore_with_collection_and_config_1_24_x(
client: weaviate.WeaviateClient, request: SubRequest
) -> None:
if client._connection._weaviate_version.is_lower_than(1, 25, 0):
pytest.skip("Backup config is only supported from Weaviate 1.25.0")

backup_id = unique_backup_id(request.node.name)

article = client.collections.use("Article")
Expand Down Expand Up @@ -505,14 +499,9 @@ def test_cancel_backup_create(
) -> None:
"""Cancel backup create without waiting."""
backup_id = unique_backup_id(request.node.name)
if client._connection._weaviate_version.is_lower_than(1, 24, 25):
pytest.skip("Cancel backups is only supported from 1.24.25")

backup_location: Optional[wvc.backup.BackupLocationType] = None
if dynamic_backup_location:
if client._connection._weaviate_version.is_lower_than(1, 27, 2):
pytest.skip("Cancel backups is only supported from 1.27.2")

backup_location = wvc.backup.BackupLocation.FileSystem(path=str(tmp_path))

resp = client.backup.create(
Expand Down Expand Up @@ -609,8 +598,6 @@ def test_backup_and_restore_with_roles_and_users(
) -> None:
backup_id = unique_backup_id(request.node.name)
client = client_factory(ports=RBAC_PORTS, auth_credentials=RBAC_AUTH_CREDS)
if client._connection._weaviate_version.is_lower_than(1, 30, 10):
pytest.skip("User and roles are only supported from Weaviate 1.30.10")

name = _sanitize_collection_name(request.node.fspath.basename + "_" + request.node.name)
client.collections.delete(name)
Expand Down Expand Up @@ -654,8 +641,6 @@ def test_backup_and_restore_with_roles_and_users(
def test_list_backup(client: weaviate.WeaviateClient, request: SubRequest) -> None:
"""List all backups."""
backup_id = unique_backup_id(request.node.name)
if client._connection._weaviate_version.is_lower_than(1, 30, 0):
pytest.skip("List backups is only supported from 1.30.0")

resp = client.backup.create(backup_id=backup_id, backend=BACKEND)
assert resp.status == BackupStatus.STARTED
Expand Down Expand Up @@ -709,9 +694,6 @@ def test_list_backup_ascending_order(client: weaviate.WeaviateClient, request: S

@pytest.fixture
def artist_alias(client: weaviate.WeaviateClient) -> Generator[str, None, None]:
if client._connection._weaviate_version.is_lower_than(1, 32, 0):
pytest.skip("overwriteAlias is only supported from 1.33.0 onwards")

client.alias.create(target_collection="Article", alias_name="Literature")
yield "Literature"
client.alias.delete(alias_name="Literature")
Expand Down
14 changes: 1 addition & 13 deletions integration/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,7 @@ def test_replace_overwrites_vector(collection_factory: CollectionFactory) -> Non
collection.data.replace(properties={"name": "other name"}, uuid=uuid)
obj = collection.query.fetch_object_by_id(uuid, include_vector=True)
assert obj.properties["name"] == "other name"
if collection._connection._weaviate_version.is_lower_than(1, 27, 0):
assert len(obj.vector["default"]) == 0
else:
assert "default" not in obj.vector
assert "default" not in obj.vector

collection.data.replace(properties={"name": "real name"}, uuid=uuid, vector=[2, 3, 4])
obj = collection.query.fetch_object_by_id(uuid, include_vector=True)
Expand Down Expand Up @@ -1167,12 +1164,6 @@ def test_near_text_error(collection_factory: CollectionFactory) -> None:


def test_near_text_group_by_argument(collection_factory: CollectionFactory) -> None:
dummy = collection_factory("dummy")
if dummy._connection._weaviate_version.is_lower_than(1, 27, 0):
pytest.skip(
'Vectors not passed to GroupByHit in servers for versions < 1.27.0. Therefore `assert "default" in ret.objects[i].vector` fails always.'
)

collection = collection_factory(
vector_config=Configure.Vectors.text2vec_contextionary(vectorize_collection_name=False),
properties=[Property(name="value", data_type=DataType.TEXT)],
Expand Down Expand Up @@ -1745,9 +1736,6 @@ def test_bm25_operators(collection_factory: CollectionFactory) -> None:
vectorizer_config=Configure.Vectorizer.none(),
)

if collection._connection._weaviate_version.is_lower_than(1, 31, 0):
pytest.skip("bm25 operators are only supported in versions higher than 1.31.0")

uuid1 = collection.data.insert({"name": "banana one"})
uuid2 = collection.data.insert({"name": "banana two"})
uuid3 = collection.data.insert({"name": "banana three"})
Expand Down
Loading
Loading