huaweicloudsdkdwr 3.1.156__py2.py3-none-any.whl → 3.1.157__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkdwr might be problematic. Click here for more details.
- huaweicloudsdkdwr/v1/model/create_collection_body.py +3 -3
- huaweicloudsdkdwr/v1/model/create_store_body.py +3 -3
- huaweicloudsdkdwr/v1/model/decribe_collection_data.py +65 -36
- huaweicloudsdkdwr/v1/model/describe_index_data.py +5 -9
- huaweicloudsdkdwr/v1/model/field_data.py +12 -12
- huaweicloudsdkdwr/v1/model/hybrid_search_body.py +6 -6
- huaweicloudsdkdwr/v1/model/index_desc.py +3 -3
- huaweicloudsdkdwr/v1/model/search_entities_body.py +3 -3
- huaweicloudsdkdwr/v1/model/sub_search.py +9 -9
- huaweicloudsdkdwr/v1/region/dwr_region.py +6 -0
- huaweicloudsdkdwr/v3/region/dwr_region.py +6 -0
- {huaweicloudsdkdwr-3.1.156.dist-info → huaweicloudsdkdwr-3.1.157.dist-info}/METADATA +2 -2
- {huaweicloudsdkdwr-3.1.156.dist-info → huaweicloudsdkdwr-3.1.157.dist-info}/RECORD +16 -16
- {huaweicloudsdkdwr-3.1.156.dist-info → huaweicloudsdkdwr-3.1.157.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdwr-3.1.156.dist-info → huaweicloudsdkdwr-3.1.157.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdwr-3.1.156.dist-info → huaweicloudsdkdwr-3.1.157.dist-info}/top_level.txt +0 -0
|
@@ -49,7 +49,7 @@ class CreateCollectionBody:
|
|
|
49
49
|
:type primary_field: :class:`huaweicloudsdkdwr.v1.PrimaryField`
|
|
50
50
|
:param fields: **参数解释:** 集合中通用字段,创建列的schema。 **约束限制:** 不涉及。
|
|
51
51
|
:type fields: list[:class:`huaweicloudsdkdwr.v1.Field`]
|
|
52
|
-
:param description: **参数解释:** 指定 Collection 的描述信息。 **约束限制:**
|
|
52
|
+
:param description: **参数解释:** 指定 Collection 的描述信息。 **约束限制:** 有效长度0-255字节。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
53
53
|
:type description: str
|
|
54
54
|
:param index_params: **参数解释:** 索引的配置信息。 **约束限制:** 不涉及。
|
|
55
55
|
:type index_params: list[:class:`huaweicloudsdkdwr.v1.IndexParams`]
|
|
@@ -167,7 +167,7 @@ class CreateCollectionBody:
|
|
|
167
167
|
def description(self):
|
|
168
168
|
r"""Gets the description of this CreateCollectionBody.
|
|
169
169
|
|
|
170
|
-
**参数解释:** 指定 Collection 的描述信息。 **约束限制:**
|
|
170
|
+
**参数解释:** 指定 Collection 的描述信息。 **约束限制:** 有效长度0-255字节。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
171
171
|
|
|
172
172
|
:return: The description of this CreateCollectionBody.
|
|
173
173
|
:rtype: str
|
|
@@ -178,7 +178,7 @@ class CreateCollectionBody:
|
|
|
178
178
|
def description(self, description):
|
|
179
179
|
r"""Sets the description of this CreateCollectionBody.
|
|
180
180
|
|
|
181
|
-
**参数解释:** 指定 Collection 的描述信息。 **约束限制:**
|
|
181
|
+
**参数解释:** 指定 Collection 的描述信息。 **约束限制:** 有效长度0-255字节。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
182
182
|
|
|
183
183
|
:param description: The description of this CreateCollectionBody.
|
|
184
184
|
:type description: str
|
|
@@ -49,7 +49,7 @@ class CreateStoreBody:
|
|
|
49
49
|
:type flavor: :class:`huaweicloudsdkdwr.v1.Flavor`
|
|
50
50
|
:param charge_info:
|
|
51
51
|
:type charge_info: :class:`huaweicloudsdkdwr.v1.ChargeInfo`
|
|
52
|
-
:param description: **参数解释:** 知识仓实例描述信息。 **约束限制:** 有效长度0-255
|
|
52
|
+
:param description: **参数解释:** 知识仓实例描述信息。 **约束限制:** 有效长度0-255字节。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
53
53
|
:type description: str
|
|
54
54
|
"""
|
|
55
55
|
|
|
@@ -178,7 +178,7 @@ class CreateStoreBody:
|
|
|
178
178
|
def description(self):
|
|
179
179
|
r"""Gets the description of this CreateStoreBody.
|
|
180
180
|
|
|
181
|
-
**参数解释:** 知识仓实例描述信息。 **约束限制:** 有效长度0-255
|
|
181
|
+
**参数解释:** 知识仓实例描述信息。 **约束限制:** 有效长度0-255字节。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
182
182
|
|
|
183
183
|
:return: The description of this CreateStoreBody.
|
|
184
184
|
:rtype: str
|
|
@@ -189,7 +189,7 @@ class CreateStoreBody:
|
|
|
189
189
|
def description(self, description):
|
|
190
190
|
r"""Sets the description of this CreateStoreBody.
|
|
191
191
|
|
|
192
|
-
**参数解释:** 知识仓实例描述信息。 **约束限制:** 有效长度0-255
|
|
192
|
+
**参数解释:** 知识仓实例描述信息。 **约束限制:** 有效长度0-255字节。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
193
193
|
|
|
194
194
|
:param description: The description of this CreateStoreBody.
|
|
195
195
|
:type description: str
|
|
@@ -22,9 +22,10 @@ class DecribeCollectionData:
|
|
|
22
22
|
'fields': 'list[FieldData]',
|
|
23
23
|
'load_state': 'str',
|
|
24
24
|
'description': 'str',
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
25
|
+
'indexes': 'list[IndexDesc]',
|
|
26
|
+
'entity_num': 'int',
|
|
27
|
+
'partitions_num': 'int',
|
|
28
|
+
'shards_num': 'int'
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
attribute_map = {
|
|
@@ -33,12 +34,13 @@ class DecribeCollectionData:
|
|
|
33
34
|
'fields': 'fields',
|
|
34
35
|
'load_state': 'load_state',
|
|
35
36
|
'description': 'description',
|
|
36
|
-
'params': 'params',
|
|
37
37
|
'indexes': 'indexes',
|
|
38
|
-
'entity_num': 'entity_num'
|
|
38
|
+
'entity_num': 'entity_num',
|
|
39
|
+
'partitions_num': 'partitions_num',
|
|
40
|
+
'shards_num': 'shards_num'
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
def __init__(self, store_name=None, collection_name=None, fields=None, load_state=None, description=None,
|
|
43
|
+
def __init__(self, store_name=None, collection_name=None, fields=None, load_state=None, description=None, indexes=None, entity_num=None, partitions_num=None, shards_num=None):
|
|
42
44
|
r"""DecribeCollectionData
|
|
43
45
|
|
|
44
46
|
The model defined in huaweicloud sdk
|
|
@@ -53,12 +55,14 @@ class DecribeCollectionData:
|
|
|
53
55
|
:type load_state: str
|
|
54
56
|
:param description: **参数解释:** Collection 的描述信息。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
55
57
|
:type description: str
|
|
56
|
-
:param params: **参数解释:** collection常用参数。 **约束限制:** shards_num: 默认2,取值范围[1, 16] partitions_num: 默认4,取值范围[1, 1024],若所有field的partition_key为false,则partitions_num固定为1。 max_length: 默认256,取值范围[1, 65535],当primary_field.type为String时,指示String的最大长度。
|
|
57
|
-
:type params: dict(str, object)
|
|
58
58
|
:param indexes: **参数解释:** 索引的配置信息。 **约束限制:** 不涉及。
|
|
59
|
-
:type indexes: list[:class:`huaweicloudsdkdwr.v1.
|
|
59
|
+
:type indexes: list[:class:`huaweicloudsdkdwr.v1.IndexDesc`]
|
|
60
60
|
:param entity_num: **参数解释:** collection中的entity数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
61
61
|
:type entity_num: int
|
|
62
|
+
:param partitions_num: **参数解释:** collection中的partition数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
63
|
+
:type partitions_num: int
|
|
64
|
+
:param shards_num: **参数解释:** collection中的shard数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
65
|
+
:type shards_num: int
|
|
62
66
|
"""
|
|
63
67
|
|
|
64
68
|
|
|
@@ -68,9 +72,10 @@ class DecribeCollectionData:
|
|
|
68
72
|
self._fields = None
|
|
69
73
|
self._load_state = None
|
|
70
74
|
self._description = None
|
|
71
|
-
self._params = None
|
|
72
75
|
self._indexes = None
|
|
73
76
|
self._entity_num = None
|
|
77
|
+
self._partitions_num = None
|
|
78
|
+
self._shards_num = None
|
|
74
79
|
self.discriminator = None
|
|
75
80
|
|
|
76
81
|
self.store_name = store_name
|
|
@@ -80,12 +85,14 @@ class DecribeCollectionData:
|
|
|
80
85
|
self.load_state = load_state
|
|
81
86
|
if description is not None:
|
|
82
87
|
self.description = description
|
|
83
|
-
if params is not None:
|
|
84
|
-
self.params = params
|
|
85
88
|
if indexes is not None:
|
|
86
89
|
self.indexes = indexes
|
|
87
90
|
if entity_num is not None:
|
|
88
91
|
self.entity_num = entity_num
|
|
92
|
+
if partitions_num is not None:
|
|
93
|
+
self.partitions_num = partitions_num
|
|
94
|
+
if shards_num is not None:
|
|
95
|
+
self.shards_num = shards_num
|
|
89
96
|
|
|
90
97
|
@property
|
|
91
98
|
def store_name(self):
|
|
@@ -197,28 +204,6 @@ class DecribeCollectionData:
|
|
|
197
204
|
"""
|
|
198
205
|
self._description = description
|
|
199
206
|
|
|
200
|
-
@property
|
|
201
|
-
def params(self):
|
|
202
|
-
r"""Gets the params of this DecribeCollectionData.
|
|
203
|
-
|
|
204
|
-
**参数解释:** collection常用参数。 **约束限制:** shards_num: 默认2,取值范围[1, 16] partitions_num: 默认4,取值范围[1, 1024],若所有field的partition_key为false,则partitions_num固定为1。 max_length: 默认256,取值范围[1, 65535],当primary_field.type为String时,指示String的最大长度。
|
|
205
|
-
|
|
206
|
-
:return: The params of this DecribeCollectionData.
|
|
207
|
-
:rtype: dict(str, object)
|
|
208
|
-
"""
|
|
209
|
-
return self._params
|
|
210
|
-
|
|
211
|
-
@params.setter
|
|
212
|
-
def params(self, params):
|
|
213
|
-
r"""Sets the params of this DecribeCollectionData.
|
|
214
|
-
|
|
215
|
-
**参数解释:** collection常用参数。 **约束限制:** shards_num: 默认2,取值范围[1, 16] partitions_num: 默认4,取值范围[1, 1024],若所有field的partition_key为false,则partitions_num固定为1。 max_length: 默认256,取值范围[1, 65535],当primary_field.type为String时,指示String的最大长度。
|
|
216
|
-
|
|
217
|
-
:param params: The params of this DecribeCollectionData.
|
|
218
|
-
:type params: dict(str, object)
|
|
219
|
-
"""
|
|
220
|
-
self._params = params
|
|
221
|
-
|
|
222
207
|
@property
|
|
223
208
|
def indexes(self):
|
|
224
209
|
r"""Gets the indexes of this DecribeCollectionData.
|
|
@@ -226,7 +211,7 @@ class DecribeCollectionData:
|
|
|
226
211
|
**参数解释:** 索引的配置信息。 **约束限制:** 不涉及。
|
|
227
212
|
|
|
228
213
|
:return: The indexes of this DecribeCollectionData.
|
|
229
|
-
:rtype: list[:class:`huaweicloudsdkdwr.v1.
|
|
214
|
+
:rtype: list[:class:`huaweicloudsdkdwr.v1.IndexDesc`]
|
|
230
215
|
"""
|
|
231
216
|
return self._indexes
|
|
232
217
|
|
|
@@ -237,7 +222,7 @@ class DecribeCollectionData:
|
|
|
237
222
|
**参数解释:** 索引的配置信息。 **约束限制:** 不涉及。
|
|
238
223
|
|
|
239
224
|
:param indexes: The indexes of this DecribeCollectionData.
|
|
240
|
-
:type indexes: list[:class:`huaweicloudsdkdwr.v1.
|
|
225
|
+
:type indexes: list[:class:`huaweicloudsdkdwr.v1.IndexDesc`]
|
|
241
226
|
"""
|
|
242
227
|
self._indexes = indexes
|
|
243
228
|
|
|
@@ -263,6 +248,50 @@ class DecribeCollectionData:
|
|
|
263
248
|
"""
|
|
264
249
|
self._entity_num = entity_num
|
|
265
250
|
|
|
251
|
+
@property
|
|
252
|
+
def partitions_num(self):
|
|
253
|
+
r"""Gets the partitions_num of this DecribeCollectionData.
|
|
254
|
+
|
|
255
|
+
**参数解释:** collection中的partition数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
256
|
+
|
|
257
|
+
:return: The partitions_num of this DecribeCollectionData.
|
|
258
|
+
:rtype: int
|
|
259
|
+
"""
|
|
260
|
+
return self._partitions_num
|
|
261
|
+
|
|
262
|
+
@partitions_num.setter
|
|
263
|
+
def partitions_num(self, partitions_num):
|
|
264
|
+
r"""Sets the partitions_num of this DecribeCollectionData.
|
|
265
|
+
|
|
266
|
+
**参数解释:** collection中的partition数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
267
|
+
|
|
268
|
+
:param partitions_num: The partitions_num of this DecribeCollectionData.
|
|
269
|
+
:type partitions_num: int
|
|
270
|
+
"""
|
|
271
|
+
self._partitions_num = partitions_num
|
|
272
|
+
|
|
273
|
+
@property
|
|
274
|
+
def shards_num(self):
|
|
275
|
+
r"""Gets the shards_num of this DecribeCollectionData.
|
|
276
|
+
|
|
277
|
+
**参数解释:** collection中的shard数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
278
|
+
|
|
279
|
+
:return: The shards_num of this DecribeCollectionData.
|
|
280
|
+
:rtype: int
|
|
281
|
+
"""
|
|
282
|
+
return self._shards_num
|
|
283
|
+
|
|
284
|
+
@shards_num.setter
|
|
285
|
+
def shards_num(self, shards_num):
|
|
286
|
+
r"""Sets the shards_num of this DecribeCollectionData.
|
|
287
|
+
|
|
288
|
+
**参数解释:** collection中的shard数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
289
|
+
|
|
290
|
+
:param shards_num: The shards_num of this DecribeCollectionData.
|
|
291
|
+
:type shards_num: int
|
|
292
|
+
"""
|
|
293
|
+
self._shards_num = shards_num
|
|
294
|
+
|
|
266
295
|
def to_dict(self):
|
|
267
296
|
"""Returns the model properties as a dict"""
|
|
268
297
|
result = {}
|
|
@@ -19,7 +19,7 @@ class DescribeIndexData:
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'store_name': 'str',
|
|
21
21
|
'collection_name': 'str',
|
|
22
|
-
'index_desc': '
|
|
22
|
+
'index_desc': 'IndexDesc'
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
attribute_map = {
|
|
@@ -37,8 +37,8 @@ class DescribeIndexData:
|
|
|
37
37
|
:type store_name: str
|
|
38
38
|
:param collection_name: **参数解释:** collection名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
39
39
|
:type collection_name: str
|
|
40
|
-
:param index_desc:
|
|
41
|
-
:type index_desc:
|
|
40
|
+
:param index_desc:
|
|
41
|
+
:type index_desc: :class:`huaweicloudsdkdwr.v1.IndexDesc`
|
|
42
42
|
"""
|
|
43
43
|
|
|
44
44
|
|
|
@@ -100,10 +100,8 @@ class DescribeIndexData:
|
|
|
100
100
|
def index_desc(self):
|
|
101
101
|
r"""Gets the index_desc of this DescribeIndexData.
|
|
102
102
|
|
|
103
|
-
**参数解释:** 索引描述信息。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
104
|
-
|
|
105
103
|
:return: The index_desc of this DescribeIndexData.
|
|
106
|
-
:rtype:
|
|
104
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.IndexDesc`
|
|
107
105
|
"""
|
|
108
106
|
return self._index_desc
|
|
109
107
|
|
|
@@ -111,10 +109,8 @@ class DescribeIndexData:
|
|
|
111
109
|
def index_desc(self, index_desc):
|
|
112
110
|
r"""Sets the index_desc of this DescribeIndexData.
|
|
113
111
|
|
|
114
|
-
**参数解释:** 索引描述信息。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
115
|
-
|
|
116
112
|
:param index_desc: The index_desc of this DescribeIndexData.
|
|
117
|
-
:type index_desc:
|
|
113
|
+
:type index_desc: :class:`huaweicloudsdkdwr.v1.IndexDesc`
|
|
118
114
|
"""
|
|
119
115
|
self._index_desc = index_desc
|
|
120
116
|
|
|
@@ -21,9 +21,9 @@ class FieldData:
|
|
|
21
21
|
'data_type': 'str',
|
|
22
22
|
'primary_key': 'bool',
|
|
23
23
|
'partition_key': 'bool',
|
|
24
|
-
'dim': '
|
|
25
|
-
'max_length': '
|
|
26
|
-
'max_capacity': '
|
|
24
|
+
'dim': 'str',
|
|
25
|
+
'max_length': 'str',
|
|
26
|
+
'max_capacity': 'str'
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
attribute_map = {
|
|
@@ -50,11 +50,11 @@ class FieldData:
|
|
|
50
50
|
:param partition_key: **参数解释:** 是否是partition key。 **约束限制:** 不涉及。 **取值范围:** true,false。 **默认取值:** 不涉及。
|
|
51
51
|
:type partition_key: bool
|
|
52
52
|
:param dim: **参数解释:** 向量列的维度值。 **约束限制:** field的数据类型是FloatVector, SparseFloatVector时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
53
|
-
:type dim:
|
|
53
|
+
:type dim: str
|
|
54
54
|
:param max_length: **参数解释:** 字符串列设置的最大长度值。 **约束限制:** field的数据类型是String或者 Array 元素类型为String类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
55
|
-
:type max_length:
|
|
55
|
+
:type max_length: str
|
|
56
56
|
:param max_capacity: **参数解释:** 数组列设置的最大容量值。 **约束限制:** field的数据类型是 Array 类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
57
|
-
:type max_capacity:
|
|
57
|
+
:type max_capacity: str
|
|
58
58
|
"""
|
|
59
59
|
|
|
60
60
|
|
|
@@ -174,7 +174,7 @@ class FieldData:
|
|
|
174
174
|
**参数解释:** 向量列的维度值。 **约束限制:** field的数据类型是FloatVector, SparseFloatVector时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
175
175
|
|
|
176
176
|
:return: The dim of this FieldData.
|
|
177
|
-
:rtype:
|
|
177
|
+
:rtype: str
|
|
178
178
|
"""
|
|
179
179
|
return self._dim
|
|
180
180
|
|
|
@@ -185,7 +185,7 @@ class FieldData:
|
|
|
185
185
|
**参数解释:** 向量列的维度值。 **约束限制:** field的数据类型是FloatVector, SparseFloatVector时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
186
186
|
|
|
187
187
|
:param dim: The dim of this FieldData.
|
|
188
|
-
:type dim:
|
|
188
|
+
:type dim: str
|
|
189
189
|
"""
|
|
190
190
|
self._dim = dim
|
|
191
191
|
|
|
@@ -196,7 +196,7 @@ class FieldData:
|
|
|
196
196
|
**参数解释:** 字符串列设置的最大长度值。 **约束限制:** field的数据类型是String或者 Array 元素类型为String类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
197
197
|
|
|
198
198
|
:return: The max_length of this FieldData.
|
|
199
|
-
:rtype:
|
|
199
|
+
:rtype: str
|
|
200
200
|
"""
|
|
201
201
|
return self._max_length
|
|
202
202
|
|
|
@@ -207,7 +207,7 @@ class FieldData:
|
|
|
207
207
|
**参数解释:** 字符串列设置的最大长度值。 **约束限制:** field的数据类型是String或者 Array 元素类型为String类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
208
208
|
|
|
209
209
|
:param max_length: The max_length of this FieldData.
|
|
210
|
-
:type max_length:
|
|
210
|
+
:type max_length: str
|
|
211
211
|
"""
|
|
212
212
|
self._max_length = max_length
|
|
213
213
|
|
|
@@ -218,7 +218,7 @@ class FieldData:
|
|
|
218
218
|
**参数解释:** 数组列设置的最大容量值。 **约束限制:** field的数据类型是 Array 类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
219
219
|
|
|
220
220
|
:return: The max_capacity of this FieldData.
|
|
221
|
-
:rtype:
|
|
221
|
+
:rtype: str
|
|
222
222
|
"""
|
|
223
223
|
return self._max_capacity
|
|
224
224
|
|
|
@@ -229,7 +229,7 @@ class FieldData:
|
|
|
229
229
|
**参数解释:** 数组列设置的最大容量值。 **约束限制:** field的数据类型是 Array 类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
230
230
|
|
|
231
231
|
:param max_capacity: The max_capacity of this FieldData.
|
|
232
|
-
:type max_capacity:
|
|
232
|
+
:type max_capacity: str
|
|
233
233
|
"""
|
|
234
234
|
self._max_capacity = max_capacity
|
|
235
235
|
|
|
@@ -47,9 +47,9 @@ class HybridSearchBody:
|
|
|
47
47
|
:type collection_name: str
|
|
48
48
|
:param output_fields: **参数解释:** field名称列表,配置需与搜索结果一起返回的字段。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** `[ ]`,不返回任何额外的字段数据。
|
|
49
49
|
:type output_fields: list[str]
|
|
50
|
-
:param top_k: **参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:**
|
|
50
|
+
:param top_k: **参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 1.与offset取值的总和应小于16384。 2.当sub_search数量为1时,以sub_search中的top_k和offset为准。 **取值范围:** `[1, 16384]` **默认取值:** 10
|
|
51
51
|
:type top_k: int
|
|
52
|
-
:param offset: **参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:**
|
|
52
|
+
:param offset: **参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:** 1.与top_k取值的总和应小于16384。 2.当sub_search数量为1时,以sub_search中的top_k和offset为准。 **取值范围:** 大于等于0 **默认取值:** 0
|
|
53
53
|
:type offset: int
|
|
54
54
|
:param sub_search: **参数解释:** rerank策略。 **约束限制:** 不涉及 **取值范围:** 不涉及。 **默认取值:** 默认使用rrf算法。
|
|
55
55
|
:type sub_search: list[:class:`huaweicloudsdkdwr.v1.SubSearch`]
|
|
@@ -150,7 +150,7 @@ class HybridSearchBody:
|
|
|
150
150
|
def top_k(self):
|
|
151
151
|
r"""Gets the top_k of this HybridSearchBody.
|
|
152
152
|
|
|
153
|
-
**参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:**
|
|
153
|
+
**参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 1.与offset取值的总和应小于16384。 2.当sub_search数量为1时,以sub_search中的top_k和offset为准。 **取值范围:** `[1, 16384]` **默认取值:** 10
|
|
154
154
|
|
|
155
155
|
:return: The top_k of this HybridSearchBody.
|
|
156
156
|
:rtype: int
|
|
@@ -161,7 +161,7 @@ class HybridSearchBody:
|
|
|
161
161
|
def top_k(self, top_k):
|
|
162
162
|
r"""Sets the top_k of this HybridSearchBody.
|
|
163
163
|
|
|
164
|
-
**参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:**
|
|
164
|
+
**参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 1.与offset取值的总和应小于16384。 2.当sub_search数量为1时,以sub_search中的top_k和offset为准。 **取值范围:** `[1, 16384]` **默认取值:** 10
|
|
165
165
|
|
|
166
166
|
:param top_k: The top_k of this HybridSearchBody.
|
|
167
167
|
:type top_k: int
|
|
@@ -172,7 +172,7 @@ class HybridSearchBody:
|
|
|
172
172
|
def offset(self):
|
|
173
173
|
r"""Gets the offset of this HybridSearchBody.
|
|
174
174
|
|
|
175
|
-
**参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:**
|
|
175
|
+
**参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:** 1.与top_k取值的总和应小于16384。 2.当sub_search数量为1时,以sub_search中的top_k和offset为准。 **取值范围:** 大于等于0 **默认取值:** 0
|
|
176
176
|
|
|
177
177
|
:return: The offset of this HybridSearchBody.
|
|
178
178
|
:rtype: int
|
|
@@ -183,7 +183,7 @@ class HybridSearchBody:
|
|
|
183
183
|
def offset(self, offset):
|
|
184
184
|
r"""Sets the offset of this HybridSearchBody.
|
|
185
185
|
|
|
186
|
-
**参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:**
|
|
186
|
+
**参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:** 1.与top_k取值的总和应小于16384。 2.当sub_search数量为1时,以sub_search中的top_k和offset为准。 **取值范围:** 大于等于0 **默认取值:** 0
|
|
187
187
|
|
|
188
188
|
:param offset: The offset of this HybridSearchBody.
|
|
189
189
|
:type offset: int
|
|
@@ -39,7 +39,7 @@ class IndexDesc:
|
|
|
39
39
|
:type index_name: str
|
|
40
40
|
:param field_name: **参数解释:** 索引对应的字段名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
41
41
|
:type field_name: str
|
|
42
|
-
:param index_params: **参数解释:** 索引的参数信息。详情请查阅
|
|
42
|
+
:param index_params: **参数解释:** 索引的参数信息。详情请查阅CreateIndex接口中 index_params结构中params字段的描述。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
43
43
|
:type index_params: dict(str, object)
|
|
44
44
|
:param index_state: **参数解释:** 索引状态。 **约束限制:** 不涉及。 **取值范围:** -\"InProgress\":索引正在构建中或还未开始构建。 -\"Finished\":索引构建完成。 -\"Failed\":索引构建失败。 **默认取值:** 不涉及。
|
|
45
45
|
:type index_state: str
|
|
@@ -106,7 +106,7 @@ class IndexDesc:
|
|
|
106
106
|
def index_params(self):
|
|
107
107
|
r"""Gets the index_params of this IndexDesc.
|
|
108
108
|
|
|
109
|
-
**参数解释:** 索引的参数信息。详情请查阅
|
|
109
|
+
**参数解释:** 索引的参数信息。详情请查阅CreateIndex接口中 index_params结构中params字段的描述。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
110
110
|
|
|
111
111
|
:return: The index_params of this IndexDesc.
|
|
112
112
|
:rtype: dict(str, object)
|
|
@@ -117,7 +117,7 @@ class IndexDesc:
|
|
|
117
117
|
def index_params(self, index_params):
|
|
118
118
|
r"""Sets the index_params of this IndexDesc.
|
|
119
119
|
|
|
120
|
-
**参数解释:** 索引的参数信息。详情请查阅
|
|
120
|
+
**参数解释:** 索引的参数信息。详情请查阅CreateIndex接口中 index_params结构中params字段的描述。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
121
121
|
|
|
122
122
|
:param index_params: The index_params of this IndexDesc.
|
|
123
123
|
:type index_params: dict(str, object)
|
|
@@ -61,7 +61,7 @@ class SearchEntitiesBody:
|
|
|
61
61
|
:type vector: list[float]
|
|
62
62
|
:param vector_field: **参数解释:** 要搜索的向量字段名称。 **约束限制:** 必须是collection field schema中存在的向量字段名称。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
63
63
|
:type vector_field: str
|
|
64
|
-
:param params: **参数解释:** 额外的搜索参数配置。 可以配置的参数: - ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) - radius:查询范围的半径,若指定则进行range查询。 **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] radius: [0, 1.0] **默认取值:** ef: top_k search_list:
|
|
64
|
+
:param params: **参数解释:** 额外的搜索参数配置。 可以配置的参数: - ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) - radius:查询范围的半径,若指定则进行range查询。 **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] radius: [0, 1.0] **默认取值:** ef: top_k + offset search_list: topk_k + offset
|
|
65
65
|
:type params: dict(str, object)
|
|
66
66
|
"""
|
|
67
67
|
|
|
@@ -273,7 +273,7 @@ class SearchEntitiesBody:
|
|
|
273
273
|
def params(self):
|
|
274
274
|
r"""Gets the params of this SearchEntitiesBody.
|
|
275
275
|
|
|
276
|
-
**参数解释:** 额外的搜索参数配置。 可以配置的参数: - ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) - radius:查询范围的半径,若指定则进行range查询。 **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] radius: [0, 1.0] **默认取值:** ef: top_k search_list:
|
|
276
|
+
**参数解释:** 额外的搜索参数配置。 可以配置的参数: - ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) - radius:查询范围的半径,若指定则进行range查询。 **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] radius: [0, 1.0] **默认取值:** ef: top_k + offset search_list: topk_k + offset
|
|
277
277
|
|
|
278
278
|
:return: The params of this SearchEntitiesBody.
|
|
279
279
|
:rtype: dict(str, object)
|
|
@@ -284,7 +284,7 @@ class SearchEntitiesBody:
|
|
|
284
284
|
def params(self, params):
|
|
285
285
|
r"""Sets the params of this SearchEntitiesBody.
|
|
286
286
|
|
|
287
|
-
**参数解释:** 额外的搜索参数配置。 可以配置的参数: - ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) - radius:查询范围的半径,若指定则进行range查询。 **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] radius: [0, 1.0] **默认取值:** ef: top_k search_list:
|
|
287
|
+
**参数解释:** 额外的搜索参数配置。 可以配置的参数: - ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) - radius:查询范围的半径,若指定则进行range查询。 **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] radius: [0, 1.0] **默认取值:** ef: top_k + offset search_list: topk_k + offset
|
|
288
288
|
|
|
289
289
|
:param params: The params of this SearchEntitiesBody.
|
|
290
290
|
:type params: dict(str, object)
|
|
@@ -43,13 +43,13 @@ class SubSearch:
|
|
|
43
43
|
:type vector_field: str
|
|
44
44
|
:param vector: **参数解释:** 要搜索的向量字段数据。 **约束限制:** 与collection field schema中定义的对应向量字段的类型和维度一致。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
45
45
|
:type vector: list[object]
|
|
46
|
-
:param top_k: **参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 与offset取值的总和应小于16384。 **取值范围:** `[1, 16384]` **默认取值:** 10
|
|
46
|
+
:param top_k: **参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 当sub_search数量为1时,top_k与offset取值的总和应小于16384。 **取值范围:** `[1, 16384]` **默认取值:** 10
|
|
47
47
|
:type top_k: int
|
|
48
|
-
:param offset: **参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:**
|
|
48
|
+
:param offset: **参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:** 1.与top_k取值的总和应小于16384。 2.当sub_search数量为1时才生效。 **取值范围:** 大于等于0 **默认取值:** 0
|
|
49
49
|
:type offset: int
|
|
50
50
|
:param filter: **参数解释:** 用于过滤匹配entity的标量过滤条件。可以将此设置为空字符串以跳过标量过滤。 **约束限制:** 要构建标量过滤条件,请参阅filter表达式规则。 **取值范围:** 不涉及。 **默认取值:** 空字符串,不就行标量过滤。
|
|
51
51
|
:type filter: str
|
|
52
|
-
:param params: **参数解释:** 额外的搜索参数配置。 可以配置的参数: * ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) * search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) * cut_off_frequency: 通过停用词出现频率决定是否作为查询结果。(仅对稀疏向量搜索生效) **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] cut_off_frequency:[0, 1.0] **默认取值:**
|
|
52
|
+
:param params: **参数解释:** 额外的搜索参数配置。 可以配置的参数: * ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) * search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) * cut_off_frequency: 通过停用词出现频率决定是否作为查询结果。(仅对稀疏向量搜索生效) **约束限制:** 不涉及。 **取值范围:** 当sub_search数量为1时: ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] cut_off_frequency:[0, 1.0] 当sub_search数量大于1时: ef: [top_k, int32_max] search_list: [top_k, int32_max] cut_off_frequency:[0, 1.0] **默认取值:** 当sub_search数量为1时: ef: top_k + offset search_list: top_k + offset cut_off_frequency: 0 当sub_search数量大于1时: ef: top_k search_list: top_k cut_off_frequency: 0
|
|
53
53
|
:type params: dict(str, object)
|
|
54
54
|
"""
|
|
55
55
|
|
|
@@ -122,7 +122,7 @@ class SubSearch:
|
|
|
122
122
|
def top_k(self):
|
|
123
123
|
r"""Gets the top_k of this SubSearch.
|
|
124
124
|
|
|
125
|
-
**参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 与offset取值的总和应小于16384。 **取值范围:** `[1, 16384]` **默认取值:** 10
|
|
125
|
+
**参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 当sub_search数量为1时,top_k与offset取值的总和应小于16384。 **取值范围:** `[1, 16384]` **默认取值:** 10
|
|
126
126
|
|
|
127
127
|
:return: The top_k of this SubSearch.
|
|
128
128
|
:rtype: int
|
|
@@ -133,7 +133,7 @@ class SubSearch:
|
|
|
133
133
|
def top_k(self, top_k):
|
|
134
134
|
r"""Sets the top_k of this SubSearch.
|
|
135
135
|
|
|
136
|
-
**参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 与offset取值的总和应小于16384。 **取值范围:** `[1, 16384]` **默认取值:** 10
|
|
136
|
+
**参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 当sub_search数量为1时,top_k与offset取值的总和应小于16384。 **取值范围:** `[1, 16384]` **默认取值:** 10
|
|
137
137
|
|
|
138
138
|
:param top_k: The top_k of this SubSearch.
|
|
139
139
|
:type top_k: int
|
|
@@ -144,7 +144,7 @@ class SubSearch:
|
|
|
144
144
|
def offset(self):
|
|
145
145
|
r"""Gets the offset of this SubSearch.
|
|
146
146
|
|
|
147
|
-
**参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:**
|
|
147
|
+
**参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:** 1.与top_k取值的总和应小于16384。 2.当sub_search数量为1时才生效。 **取值范围:** 大于等于0 **默认取值:** 0
|
|
148
148
|
|
|
149
149
|
:return: The offset of this SubSearch.
|
|
150
150
|
:rtype: int
|
|
@@ -155,7 +155,7 @@ class SubSearch:
|
|
|
155
155
|
def offset(self, offset):
|
|
156
156
|
r"""Sets the offset of this SubSearch.
|
|
157
157
|
|
|
158
|
-
**参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:**
|
|
158
|
+
**参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:** 1.与top_k取值的总和应小于16384。 2.当sub_search数量为1时才生效。 **取值范围:** 大于等于0 **默认取值:** 0
|
|
159
159
|
|
|
160
160
|
:param offset: The offset of this SubSearch.
|
|
161
161
|
:type offset: int
|
|
@@ -188,7 +188,7 @@ class SubSearch:
|
|
|
188
188
|
def params(self):
|
|
189
189
|
r"""Gets the params of this SubSearch.
|
|
190
190
|
|
|
191
|
-
**参数解释:** 额外的搜索参数配置。 可以配置的参数: * ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) * search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) * cut_off_frequency: 通过停用词出现频率决定是否作为查询结果。(仅对稀疏向量搜索生效) **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] cut_off_frequency:[0, 1.0] **默认取值:**
|
|
191
|
+
**参数解释:** 额外的搜索参数配置。 可以配置的参数: * ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) * search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) * cut_off_frequency: 通过停用词出现频率决定是否作为查询结果。(仅对稀疏向量搜索生效) **约束限制:** 不涉及。 **取值范围:** 当sub_search数量为1时: ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] cut_off_frequency:[0, 1.0] 当sub_search数量大于1时: ef: [top_k, int32_max] search_list: [top_k, int32_max] cut_off_frequency:[0, 1.0] **默认取值:** 当sub_search数量为1时: ef: top_k + offset search_list: top_k + offset cut_off_frequency: 0 当sub_search数量大于1时: ef: top_k search_list: top_k cut_off_frequency: 0
|
|
192
192
|
|
|
193
193
|
:return: The params of this SubSearch.
|
|
194
194
|
:rtype: dict(str, object)
|
|
@@ -199,7 +199,7 @@ class SubSearch:
|
|
|
199
199
|
def params(self, params):
|
|
200
200
|
r"""Sets the params of this SubSearch.
|
|
201
201
|
|
|
202
|
-
**参数解释:** 额外的搜索参数配置。 可以配置的参数: * ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) * search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) * cut_off_frequency: 通过停用词出现频率决定是否作为查询结果。(仅对稀疏向量搜索生效) **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] cut_off_frequency:[0, 1.0] **默认取值:**
|
|
202
|
+
**参数解释:** 额外的搜索参数配置。 可以配置的参数: * ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) * search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) * cut_off_frequency: 通过停用词出现频率决定是否作为查询结果。(仅对稀疏向量搜索生效) **约束限制:** 不涉及。 **取值范围:** 当sub_search数量为1时: ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] cut_off_frequency:[0, 1.0] 当sub_search数量大于1时: ef: [top_k, int32_max] search_list: [top_k, int32_max] cut_off_frequency:[0, 1.0] **默认取值:** 当sub_search数量为1时: ef: top_k + offset search_list: top_k + offset cut_off_frequency: 0 当sub_search数量大于1时: ef: top_k search_list: top_k cut_off_frequency: 0
|
|
203
203
|
|
|
204
204
|
:param params: The params of this SubSearch.
|
|
205
205
|
:type params: dict(str, object)
|
|
@@ -12,11 +12,17 @@ class DwrRegion:
|
|
|
12
12
|
"https://dwr-lms.cn-southwest-2.myhuaweicloud.com")
|
|
13
13
|
CN_NORTH_11 = Region("cn-north-11",
|
|
14
14
|
"https://dwr-lms.cn-north-11.myhuaweicloud.com")
|
|
15
|
+
CN_NORTH_9 = Region("cn-north-9",
|
|
16
|
+
"https://dwr-lms.cn-north-9.myhuaweicloud.com")
|
|
17
|
+
CN_EAST_3 = Region("cn-east-3",
|
|
18
|
+
"https://dwr-lms.cn-east-3.myhuaweicloud.com")
|
|
15
19
|
|
|
16
20
|
static_fields = {
|
|
17
21
|
"cn-south-1": CN_SOUTH_1,
|
|
18
22
|
"cn-southwest-2": CN_SOUTHWEST_2,
|
|
19
23
|
"cn-north-11": CN_NORTH_11,
|
|
24
|
+
"cn-north-9": CN_NORTH_9,
|
|
25
|
+
"cn-east-3": CN_EAST_3,
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
@classmethod
|
|
@@ -12,11 +12,17 @@ class DwrRegion:
|
|
|
12
12
|
"https://dwr-lms.cn-southwest-2.myhuaweicloud.com")
|
|
13
13
|
CN_NORTH_11 = Region("cn-north-11",
|
|
14
14
|
"https://dwr-lms.cn-north-11.myhuaweicloud.com")
|
|
15
|
+
CN_NORTH_9 = Region("cn-north-9",
|
|
16
|
+
"https://dwr-lms.cn-north-9.myhuaweicloud.com")
|
|
17
|
+
CN_EAST_3 = Region("cn-east-3",
|
|
18
|
+
"https://dwr-lms.cn-east-3.myhuaweicloud.com")
|
|
15
19
|
|
|
16
20
|
static_fields = {
|
|
17
21
|
"cn-south-1": CN_SOUTH_1,
|
|
18
22
|
"cn-southwest-2": CN_SOUTHWEST_2,
|
|
19
23
|
"cn-north-11": CN_NORTH_11,
|
|
24
|
+
"cn-north-9": CN_NORTH_9,
|
|
25
|
+
"cn-east-3": CN_EAST_3,
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
@classmethod
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkdwr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.157
|
|
4
4
|
Summary: DWR
|
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
6
|
Author: HuaweiCloud SDK
|
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.
|
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.157
|
|
26
26
|
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
|
@@ -6,17 +6,17 @@ huaweicloudsdkdwr/v1/model/__init__.py,sha256=6Zh5wvRO0j78T1KGOfPAav9i93sBUob_5b
|
|
|
6
6
|
huaweicloudsdkdwr/v1/model/build_progress.py,sha256=_aIK-_HwbdTI5acwc4U2pKu78yXRktJGLD7Y6KGjdX0,8343
|
|
7
7
|
huaweicloudsdkdwr/v1/model/charge_info.py,sha256=EiesPa83WktW3esR4-SfNdH3n8gcTPCh3Dl2whdfONU,9724
|
|
8
8
|
huaweicloudsdkdwr/v1/model/collection_base_info.py,sha256=FVJRN7CU5kijsvtfDdypo5b4_SkE82yn2wA4Scdnvfk,5565
|
|
9
|
-
huaweicloudsdkdwr/v1/model/create_collection_body.py,sha256=
|
|
9
|
+
huaweicloudsdkdwr/v1/model/create_collection_body.py,sha256=OYXtHgW-7tJIfvYaHnDDN7QhCdTzwVzjl8PTNWwW2lM,11812
|
|
10
10
|
huaweicloudsdkdwr/v1/model/create_collection_request.py,sha256=qjaYSStLGGmpuUv-HeWD04a1Cxs8hYjQKqyRF403GiM,3150
|
|
11
11
|
huaweicloudsdkdwr/v1/model/create_collection_response.py,sha256=WOXIfFizBwa_ojDAXWQzvKGwrETW9qFgpxBiu0iu3Yk,4678
|
|
12
12
|
huaweicloudsdkdwr/v1/model/create_index_body.py,sha256=yAZMhT66y6bHscSfcKa9XmSmkzg54ct6L6lfUm99M9I,6745
|
|
13
13
|
huaweicloudsdkdwr/v1/model/create_index_request.py,sha256=ggmuTVcDtIT55evu8wzWwqvZZxkt8m37tXwX_s4N6s4,3090
|
|
14
14
|
huaweicloudsdkdwr/v1/model/create_index_response.py,sha256=8T-JLUube4bSO1KrfBdIi__cMF9uwTs1hDth6eoROps,4618
|
|
15
|
-
huaweicloudsdkdwr/v1/model/create_store_body.py,sha256=
|
|
15
|
+
huaweicloudsdkdwr/v1/model/create_store_body.py,sha256=yx1r4yc1wJbg6tmIW48ea5ygEa5x-_SGsfHTrrR4P-8,9124
|
|
16
16
|
huaweicloudsdkdwr/v1/model/create_store_data.py,sha256=al8L70XfpPxplmi7ObPBnQU2VGZeIzL7L1EhnrHHEf8,12843
|
|
17
17
|
huaweicloudsdkdwr/v1/model/create_store_request.py,sha256=oMfEMepTCIXmcLUcnPn-Ta_GCsZUuSrx8_tff_ZjMjs,3090
|
|
18
18
|
huaweicloudsdkdwr/v1/model/create_store_response.py,sha256=4VocJGz7rsdFqLMGG8SVXeDgjJ4DF4eJzy7iecTLFR8,5369
|
|
19
|
-
huaweicloudsdkdwr/v1/model/decribe_collection_data.py,sha256=
|
|
19
|
+
huaweicloudsdkdwr/v1/model/decribe_collection_data.py,sha256=hJtsz5xjqACovzo2lkhDt9QykQcDYUX1h2cF0Hwj4Iw,14501
|
|
20
20
|
huaweicloudsdkdwr/v1/model/delete_collection_request.py,sha256=sdZFVyx31wXZrlTIEu7cJgljUvRuKZC-MBXCAGVVsAo,3142
|
|
21
21
|
huaweicloudsdkdwr/v1/model/delete_collection_response.py,sha256=-G4IAUX6PCuZZ8BvR8pHPpxef5mRYyIcLH3W4tKq_dY,4678
|
|
22
22
|
huaweicloudsdkdwr/v1/model/delete_entities_body.py,sha256=lHFIUf0lfkoLeTXwvon8qVC4DSRb0DS8R396Vh6_ngk,7192
|
|
@@ -31,7 +31,7 @@ huaweicloudsdkdwr/v1/model/delete_store_response.py,sha256=yT30HsrO07uSykQCiMvcw
|
|
|
31
31
|
huaweicloudsdkdwr/v1/model/describe_collection_request.py,sha256=OHoh-9rOsPCwxpdgjVT9WCNLmxKNQuxKbwY3p-LAR2o,3158
|
|
32
32
|
huaweicloudsdkdwr/v1/model/describe_collection_response.py,sha256=F3VE5TmYp-yUSKBBgO5VNitHKA9Xp7Ssi3TXs9KAsi4,5505
|
|
33
33
|
huaweicloudsdkdwr/v1/model/describe_index_body.py,sha256=YI-DW8m7UpmrT8q51FREjuuVKY9N0tuQe_TBOISd0Ks,7730
|
|
34
|
-
huaweicloudsdkdwr/v1/model/describe_index_data.py,sha256=
|
|
34
|
+
huaweicloudsdkdwr/v1/model/describe_index_data.py,sha256=vRVJ7Hlx_8PiNTHI53Sm6Y3p-2CVIsSz-XgS0ZK5nKs,5529
|
|
35
35
|
huaweicloudsdkdwr/v1/model/describe_index_request.py,sha256=fl_RHBFT7wRfiml5lHNiEq1IMxgUm4g4o_vxPwJcva0,3114
|
|
36
36
|
huaweicloudsdkdwr/v1/model/describe_index_response.py,sha256=4e0TA4CDT4XR6yfRhvWW2AsCB5NV0aiILGzDb-GuZYs,5400
|
|
37
37
|
huaweicloudsdkdwr/v1/model/describe_job_body.py,sha256=eyxRj2IqFgIaornx-WZJZSWDT0MjdTxxTO0D92NmA50,3388
|
|
@@ -41,16 +41,16 @@ huaweicloudsdkdwr/v1/model/describe_store_request.py,sha256=W2PJn5hQNuBFauDpYo0D
|
|
|
41
41
|
huaweicloudsdkdwr/v1/model/describe_store_response.py,sha256=y6FfmiOxFQVIxpa60S7VUIOf15zIQIBpANYtkdd0raY,5368
|
|
42
42
|
huaweicloudsdkdwr/v1/model/entities_data.py,sha256=JD3MGSF50dzVcfLdQG2q0IQJEdd0gEOlq6pCv7nBlFs,3257
|
|
43
43
|
huaweicloudsdkdwr/v1/model/field.py,sha256=dBbEhnYgeHCxlO3SE8RIQn7_S41-duLFsIDTnlcG9OQ,11657
|
|
44
|
-
huaweicloudsdkdwr/v1/model/field_data.py,sha256=
|
|
44
|
+
huaweicloudsdkdwr/v1/model/field_data.py,sha256=UoFakyLnG7ijnxlZGjPce-PCVeIocHMtEVcyBmq0oNc,11213
|
|
45
45
|
huaweicloudsdkdwr/v1/model/flavor.py,sha256=nU_W8217TPq4ZDAnnsMPkyJxZmbfMTzXsJmGTuJ4HU0,4381
|
|
46
46
|
huaweicloudsdkdwr/v1/model/get_index_progress_body.py,sha256=hMVLUWQUsGodSf9NbIlIWgstYkqDgi0hPMBZscROiWI,7775
|
|
47
47
|
huaweicloudsdkdwr/v1/model/get_progress_data.py,sha256=bnnyRenug8izVHQ79jnmKYEJcnaZLxz0efjxjTO_OFY,5637
|
|
48
48
|
huaweicloudsdkdwr/v1/model/get_progress_request.py,sha256=5Nf9tnFm0Ai3nqTpd8vvc0DXIjCN4DysQCARghsfbV8,3110
|
|
49
49
|
huaweicloudsdkdwr/v1/model/get_progress_response.py,sha256=wm8jKs0xuu7na3S_9D__7oA7AH-Cut551LhLL2LuVKM,5360
|
|
50
|
-
huaweicloudsdkdwr/v1/model/hybrid_search_body.py,sha256=
|
|
50
|
+
huaweicloudsdkdwr/v1/model/hybrid_search_body.py,sha256=FmqZ3KRTeZoRjCSmkuGYUBlld1avMV98woey64pB61c,12612
|
|
51
51
|
huaweicloudsdkdwr/v1/model/hybrid_search_request.py,sha256=thqBQK0XoNjaIhQp7MeQZxAUUerfislMXOs5iXVBRkk,3102
|
|
52
52
|
huaweicloudsdkdwr/v1/model/hybrid_search_response.py,sha256=xsgheqcAxjJVieLoS66p2l0acwlsFH7pIOq0Bfb90tM,5364
|
|
53
|
-
huaweicloudsdkdwr/v1/model/index_desc.py,sha256=
|
|
53
|
+
huaweicloudsdkdwr/v1/model/index_desc.py,sha256=kTCy0CHkyJp8IHviCTqWIgrtefNj3TELVOkaK0PiBKI,7519
|
|
54
54
|
huaweicloudsdkdwr/v1/model/index_params.py,sha256=3hVkGG13jb-PfAsOBTik_VKiz5yGfqlKzKCad8P7y9g,14168
|
|
55
55
|
huaweicloudsdkdwr/v1/model/insert_entities_body.py,sha256=yJ4kcp7Tx3AP7Ve2-hsRe05VQiPbyDPLR9MmVjGKbXw,7105
|
|
56
56
|
huaweicloudsdkdwr/v1/model/insert_entities_data.py,sha256=LYSDVi42s8QDwttAz_0FoZM0yASTMjHz4Jstc5NYHlw,4776
|
|
@@ -78,18 +78,18 @@ huaweicloudsdkdwr/v1/model/query_entities_response.py,sha256=dDsLfIYZgZIw1t9-fRC
|
|
|
78
78
|
huaweicloudsdkdwr/v1/model/release_collection_request.py,sha256=7yg7XgNa7t-xTXRk9H5-X8DvyUIOXdIhmTs2kF5VMkE,3150
|
|
79
79
|
huaweicloudsdkdwr/v1/model/release_collection_response.py,sha256=s5Lus6bmPrczNk3wD0s1Ufc0xYm56SO5kL6hIO3UE3A,4690
|
|
80
80
|
huaweicloudsdkdwr/v1/model/rerank.py,sha256=JFwdkyV4XY6aEcmO5N3XuLBrpq8XQZRSQa8ayFaJ0CY,5247
|
|
81
|
-
huaweicloudsdkdwr/v1/model/search_entities_body.py,sha256=
|
|
81
|
+
huaweicloudsdkdwr/v1/model/search_entities_body.py,sha256=IvG0fhspeQGonS6NZNtEAh2mM3hf3go-E6NCPUCJYwA,17092
|
|
82
82
|
huaweicloudsdkdwr/v1/model/search_entities_request.py,sha256=KUVDMG4yMUfKFXjnn0oU3FPZRuKd4MZGMETAknp8iRI,3126
|
|
83
83
|
huaweicloudsdkdwr/v1/model/search_entities_response.py,sha256=aJNCo1MXdDglhCZIAdGlCX6S8vG9kWD1a_OdPKEJYss,5396
|
|
84
84
|
huaweicloudsdkdwr/v1/model/store_data.py,sha256=e5U4yP1Cp0YFp6hzk9HcHPgtecbDU2jSwLpEOZ2OQGs,14210
|
|
85
85
|
huaweicloudsdkdwr/v1/model/store_info.py,sha256=lKnt7e79p0uxJeiToFa8XpQIvOLmBd4mEk1SQb5sclI,3914
|
|
86
|
-
huaweicloudsdkdwr/v1/model/sub_search.py,sha256=
|
|
86
|
+
huaweicloudsdkdwr/v1/model/sub_search.py,sha256=RxxNYynpRA6i09bq5tmCbjSWoaQsuK3BVki_9ktEaYo,13035
|
|
87
87
|
huaweicloudsdkdwr/v1/model/upsert_entities_body.py,sha256=DDOsiq9QyPpMrYYKpzd7JQjM9yIGyaNl9zxns4ddPwM,7135
|
|
88
88
|
huaweicloudsdkdwr/v1/model/upsert_entities_data.py,sha256=aIAjbL7YRbS1H2brC8PWBrUVPUQDG5YsaHwUa215rJ4,4695
|
|
89
89
|
huaweicloudsdkdwr/v1/model/upsert_entities_request.py,sha256=LElaHmtMqapa-QyyiM_vgTPynw7BAL6Mvah2TVU-nIo,3126
|
|
90
90
|
huaweicloudsdkdwr/v1/model/upsert_entities_response.py,sha256=HfyX5Q2Af0Xab7nIqgmO5efcNVFeQTXahZOR7LIY3EU,5420
|
|
91
91
|
huaweicloudsdkdwr/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
92
|
-
huaweicloudsdkdwr/v1/region/dwr_region.py,sha256=
|
|
92
|
+
huaweicloudsdkdwr/v1/region/dwr_region.py,sha256=Qgzoaj_xkxBDPDdTYAXR0CTjba3KLihp3IgaQ0Diy6Q,1557
|
|
93
93
|
huaweicloudsdkdwr/v3/__init__.py,sha256=JWDMouvgCWKtze75IEVuecdVh0rlKek5qVedQM-H8IQ,6395
|
|
94
94
|
huaweicloudsdkdwr/v3/dwr_async_client.py,sha256=Fi4_wtkuT4Bx97fyw3wVarSCV666SuytP7d-ELMJLLE,57313
|
|
95
95
|
huaweicloudsdkdwr/v3/dwr_client.py,sha256=5VPrjoYJJL-TJa6IIWIpITjUWjxlgahik-bKFpHen5o,57254
|
|
@@ -163,9 +163,9 @@ huaweicloudsdkdwr/v3/model/update_workflow_body.py,sha256=MX3STW4V1vnwlTVrsnHxQO
|
|
|
163
163
|
huaweicloudsdkdwr/v3/model/update_workflow_request.py,sha256=5qLrIXkOMGfO_ve4Ar0IhflXCEL7hn_5lCjt6BEsFyQ,3920
|
|
164
164
|
huaweicloudsdkdwr/v3/model/update_workflow_response.py,sha256=Kq3RUoIg7B4hJyZNBR_q95DkwFARc-IXI31cIlhefGU,8076
|
|
165
165
|
huaweicloudsdkdwr/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
166
|
-
huaweicloudsdkdwr/v3/region/dwr_region.py,sha256=
|
|
167
|
-
huaweicloudsdkdwr-3.1.
|
|
168
|
-
huaweicloudsdkdwr-3.1.
|
|
169
|
-
huaweicloudsdkdwr-3.1.
|
|
170
|
-
huaweicloudsdkdwr-3.1.
|
|
171
|
-
huaweicloudsdkdwr-3.1.
|
|
166
|
+
huaweicloudsdkdwr/v3/region/dwr_region.py,sha256=Qgzoaj_xkxBDPDdTYAXR0CTjba3KLihp3IgaQ0Diy6Q,1557
|
|
167
|
+
huaweicloudsdkdwr-3.1.157.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
168
|
+
huaweicloudsdkdwr-3.1.157.dist-info/METADATA,sha256=jeDKUxQY8AceRG-Syu8qXHuIf_eiDHjujyGOX0J0zdw,1135
|
|
169
|
+
huaweicloudsdkdwr-3.1.157.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
|
|
170
|
+
huaweicloudsdkdwr-3.1.157.dist-info/top_level.txt,sha256=xMGwAS-ksuneFkC3xra4boZqBHyZ-9GwNpVzcuCmVQM,18
|
|
171
|
+
huaweicloudsdkdwr-3.1.157.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|