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 3c4e68bb8..a332d0bf9 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 @@ -173,6 +173,9 @@ def client(self): return self._client if self._url and self._url.startswith("http") and self._url.endswith(".weaviate.network"): + # We use this utility function instead of using WeaviateClient directly like in other cases + # otherwise we'd have to parse the URL to get some information about the connection. + # This utility function does all that for us. self._client = weaviate.connect_to_wcs( self._url, auth_credentials=self._auth_client_secret.resolve_value() if self._auth_client_secret else None,