From 282ccc4a41f9dc9791c1f811439572d1563d0238 Mon Sep 17 00:00:00 2001 From: Vladimir Blagojevic Date: Wed, 24 Jul 2024 10:45:44 +0200 Subject: [PATCH] Use collections.list_all instead of collections._get_all (#921) --- .../document_stores/weaviate/document_store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/weaviate/src/haystack_integrations/document_stores/weaviate/document_store.py b/integrations/weaviate/src/haystack_integrations/document_stores/weaviate/document_store.py index a332d0bf9..82088dd89 100644 --- a/integrations/weaviate/src/haystack_integrations/document_stores/weaviate/document_store.py +++ b/integrations/weaviate/src/haystack_integrations/document_stores/weaviate/document_store.py @@ -203,7 +203,7 @@ def client(self): self._client.connect() # Test connection, it will raise an exception if it fails. - self._client.collections._get_all(simple=True) + self._client.collections.list_all(simple=True) if not self._client.collections.exists(self._collection_settings["class"]): self._client.collections.create_from_dict(self._collection_settings)