Skip to content

Commit cdf9b67

Browse files
chore: Bump weaviate-client to latest v3 version (langgenius#25096)
1 parent d5aaee6 commit cdf9b67

3 files changed

Lines changed: 5 additions & 12 deletions

File tree

api/core/rag/datasource/vdb/weaviate/weaviate_vector.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ def _init_client(self, config: WeaviateConfig) -> weaviate.Client:
4141

4242
weaviate.connect.connection.has_grpc = False # ty: ignore [unresolved-attribute]
4343

44-
# Fix to minimize the performance impact of the deprecation check in weaviate-client 3.24.0,
45-
# by changing the connection timeout to pypi.org from 1 second to 0.001 seconds.
46-
# TODO: This can be removed once weaviate-client is updated to 3.26.7 or higher,
47-
# which does not contain the deprecation check.
48-
if hasattr(weaviate.connect.connection, "PYPI_TIMEOUT"): # ty: ignore [unresolved-attribute]
49-
weaviate.connect.connection.PYPI_TIMEOUT = 0.001 # ty: ignore [unresolved-attribute]
50-
5144
try:
5245
client = weaviate.Client(
5346
url=config.endpoint, auth_client_secret=auth_config, timeout_config=(5, 60), startup_period=None

api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ vdb = [
214214
"tidb-vector==0.0.9",
215215
"upstash-vector==0.6.0",
216216
"volcengine-compat~=1.0.0",
217-
"weaviate-client~=3.24.0",
217+
"weaviate-client~=3.26.7",
218218
"xinference-client~=1.2.2",
219219
"mo-vector~=0.1.13",
220220
]

api/uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)