Skip to content

Commit 9932060

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent eb56dba commit 9932060

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
### Change log
22

3+
2025-12-23 Bumped to version v1.0.211
4+
- Updated apis for viking_db
5+
36
2025-12-22 Bumped to version v1.0.210
47
- Updated apis for tls
58

volcengine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# coding:utf-8
2-
VERSION='v1.0.210'
2+
VERSION='v1.0.211'

volcengine/viking_db/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,11 @@ def primary_key_not_exist(self):
376376
return self._primary_key_not_exist
377377

378378
class VectorIndexParams(object):
379-
def __init__(self, distance=DistanceType.IP, index_type=IndexType.HNSW, quant=QuantType.Int8, **kwargs):
379+
def __init__(self, distance, index_type=IndexType.HNSW, quant=QuantType.Int8, **kwargs):
380380
self._index_type = index_type
381+
# 强感知distance参数
382+
if not distance:
383+
raise ValueError("distance is required")
381384
self._distance = distance
382385
self._quant = quant
383386
self._hnsw_m = kwargs.get("hnsw_m", 20)

0 commit comments

Comments
 (0)