Skip to content

Commit

Permalink
fix: compatibility with Weaviate 4.9.0 (#1143)
Browse files Browse the repository at this point in the history
* compatibiliti with weaviate 4.9.0

* extend from_dict test
  • Loading branch information
anakin87 authored Oct 18, 2024
1 parent 863ace0 commit a73355e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/weaviate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions integrations/weaviate/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "weaviate-haystack"
dynamic = ["version"]
description = "An integration of Weaviate vector database with Haystack"
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = "Apache-2.0"
keywords = []
authors = [{ name = "deepset GmbH", email = "[email protected]" }]
Expand All @@ -25,7 +25,7 @@ classifiers = [
]
dependencies = [
"haystack-ai",
"weaviate-client>=4.0",
"weaviate-client>=4.9",
"haystack-pydoc-tools",
"python-dateutil",
]
Expand Down
3 changes: 3 additions & 0 deletions integrations/weaviate/tests/test_document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def test_to_dict(self, _mock_weaviate, monkeypatch):
"session_pool_connections": 20,
"session_pool_maxsize": 100,
"session_pool_max_retries": 3,
"session_pool_timeout": 5,
},
"proxies": {"http": "http://proxy:1234", "https": None, "grpc": None},
"timeout": [30, 90],
Expand Down Expand Up @@ -302,6 +303,7 @@ def test_from_dict(self, _mock_weaviate, monkeypatch):
"connection": {
"session_pool_connections": 20,
"session_pool_maxsize": 20,
"session_pool_timeout": 5,
},
"proxies": {"http": "http://proxy:1234"},
"timeout": [10, 60],
Expand Down Expand Up @@ -338,6 +340,7 @@ def test_from_dict(self, _mock_weaviate, monkeypatch):
assert document_store._embedded_options.grpc_port == DEFAULT_GRPC_PORT
assert document_store._additional_config.connection.session_pool_connections == 20
assert document_store._additional_config.connection.session_pool_maxsize == 20
assert document_store._additional_config.connection.session_pool_timeout == 5

def test_to_data_object(self, document_store, test_files_path):
doc = Document(content="test doc")
Expand Down

0 comments on commit a73355e

Please sign in to comment.