diff --git a/docarray/index/backends/weaviate.py b/docarray/index/backends/weaviate.py index 604d4d25e83..20b1c649c3b 100644 --- a/docarray/index/backends/weaviate.py +++ b/docarray/index/backends/weaviate.py @@ -225,9 +225,7 @@ def _create_schema(self) -> None: schema["properties"] = properties schema["class"] = self.index_name - # TODO: Use exists() instead of contains() when available - # see https://github.com/weaviate/weaviate-python-client/issues/232 - if self._client.schema.contains(schema): + if self._client.schema.exists(self.index_name): logging.warning( f"Found index {self.index_name} with schema {schema}. Will reuse existing schema." )
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: