From 28a1ea8f7004a97a1dfc0ce3daf72f3306b566b6 Mon Sep 17 00:00:00 2001 From: neatguycoding <15627489+NeatGuyCoding@users.noreply.github.com> Date: Thu, 19 Jun 2025 08:48:05 +0800 Subject: [PATCH] feat: improve weaviate parameters for removing, fix format --- api/core/rag/datasource/vdb/weaviate/weaviate_vector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/rag/datasource/vdb/weaviate/weaviate_vector.py b/api/core/rag/datasource/vdb/weaviate/weaviate_vector.py index d5975d28e9..7a8efb4068 100644 --- a/api/core/rag/datasource/vdb/weaviate/weaviate_vector.py +++ b/api/core/rag/datasource/vdb/weaviate/weaviate_vector.py @@ -45,8 +45,8 @@ class WeaviateVector(BaseVector): # by changing the connection timeout to pypi.org from 1 second to 0.001 seconds. # TODO: This can be removed once weaviate-client is updated to 3.26.7 or higher, # which does not contain the deprecation check. - if hasattr(weaviate.connect.connection, 'PYPI_TIMEOUT'): - weaviate.connect.connection.PYPI_TIMEOUT = 0.001 + if hasattr(weaviate.connect.connection, "PYPI_TIMEOUT"): + weaviate.connect.connection.PYPI_TIMEOUT = 0.001 try: client = weaviate.Client(