huaweicloudsdkdwr 3.1.154__py2.py3-none-any.whl → 3.1.156__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/__init__.py +7 -5
- huaweicloudsdkdwr/v1/dwr_async_client.py +266 -266
- huaweicloudsdkdwr/v1/dwr_client.py +266 -266
- huaweicloudsdkdwr/v1/model/__init__.py +7 -5
- huaweicloudsdkdwr/v1/model/build_progress.py +15 -15
- huaweicloudsdkdwr/v1/model/charge_info.py +15 -15
- huaweicloudsdkdwr/v1/model/collection_base_info.py +6 -6
- huaweicloudsdkdwr/v1/model/create_collection_body.py +18 -18
- huaweicloudsdkdwr/v1/model/create_collection_response.py +6 -6
- huaweicloudsdkdwr/v1/model/create_index_body.py +6 -6
- huaweicloudsdkdwr/v1/model/create_index_response.py +6 -6
- huaweicloudsdkdwr/v1/model/create_store_body.py +12 -12
- huaweicloudsdkdwr/v1/model/create_store_data.py +21 -21
- huaweicloudsdkdwr/v1/model/create_store_response.py +6 -6
- huaweicloudsdkdwr/v1/model/decribe_collection_data.py +41 -41
- huaweicloudsdkdwr/v1/model/delete_collection_response.py +6 -6
- huaweicloudsdkdwr/v1/model/delete_entities_body.py +9 -9
- huaweicloudsdkdwr/v1/model/delete_entities_response.py +6 -6
- huaweicloudsdkdwr/v1/model/delete_index_body.py +9 -9
- huaweicloudsdkdwr/v1/model/delete_index_response.py +6 -6
- huaweicloudsdkdwr/v1/model/delete_store_data.py +3 -3
- huaweicloudsdkdwr/v1/model/delete_store_response.py +6 -6
- huaweicloudsdkdwr/v1/model/describe_collection_response.py +6 -6
- huaweicloudsdkdwr/v1/model/describe_index_body.py +9 -9
- huaweicloudsdkdwr/v1/model/{describe_index_respose_data.py → describe_index_data.py} +25 -26
- huaweicloudsdkdwr/v1/model/describe_index_response.py +10 -10
- huaweicloudsdkdwr/v1/model/describe_job_body.py +3 -3
- huaweicloudsdkdwr/v1/model/describe_job_response.py +6 -6
- huaweicloudsdkdwr/v1/model/describe_store_response.py +10 -10
- huaweicloudsdkdwr/v1/model/entities_data.py +114 -0
- huaweicloudsdkdwr/v1/model/field.py +15 -15
- huaweicloudsdkdwr/v1/model/field_data.py +102 -15
- huaweicloudsdkdwr/v1/model/flavor.py +6 -6
- huaweicloudsdkdwr/v1/model/get_index_progress_body.py +9 -9
- huaweicloudsdkdwr/v1/model/{get_index_progress_response_data.py → get_progress_data.py} +21 -21
- huaweicloudsdkdwr/v1/model/get_progress_response.py +10 -10
- huaweicloudsdkdwr/v1/model/hybrid_search_body.py +20 -16
- huaweicloudsdkdwr/v1/model/hybrid_search_response.py +11 -15
- huaweicloudsdkdwr/v1/model/index_desc.py +14 -16
- huaweicloudsdkdwr/v1/model/index_params.py +9 -9
- huaweicloudsdkdwr/v1/model/insert_entities_body.py +9 -9
- huaweicloudsdkdwr/v1/model/{insert_entities_response_data.py → insert_entities_data.py} +17 -17
- huaweicloudsdkdwr/v1/model/insert_entities_response.py +10 -10
- huaweicloudsdkdwr/v1/model/job_data.py +24 -24
- huaweicloudsdkdwr/v1/model/list_collection_data.py +6 -6
- huaweicloudsdkdwr/v1/model/list_collection_details.py +18 -18
- huaweicloudsdkdwr/v1/model/list_collections_body.py +6 -6
- huaweicloudsdkdwr/v1/model/list_collections_response.py +6 -6
- huaweicloudsdkdwr/v1/model/list_jobs_data.py +3 -3
- huaweicloudsdkdwr/v1/model/list_jobs_request.py +15 -15
- huaweicloudsdkdwr/v1/model/list_jobs_response.py +6 -6
- huaweicloudsdkdwr/v1/model/list_store_data.py +114 -0
- huaweicloudsdkdwr/v1/model/list_stores_response.py +11 -15
- huaweicloudsdkdwr/v1/model/load_collection_body.py +6 -6
- huaweicloudsdkdwr/v1/model/load_collection_response.py +6 -6
- huaweicloudsdkdwr/v1/model/primary_field.py +6 -6
- huaweicloudsdkdwr/v1/model/query_entities_body.py +18 -18
- huaweicloudsdkdwr/v1/model/query_entities_response.py +11 -15
- huaweicloudsdkdwr/v1/model/release_collection_response.py +6 -6
- huaweicloudsdkdwr/v1/model/rerank.py +6 -6
- huaweicloudsdkdwr/v1/model/search_entities_body.py +27 -27
- huaweicloudsdkdwr/v1/model/search_entities_response.py +11 -15
- huaweicloudsdkdwr/v1/model/store_data.py +364 -0
- huaweicloudsdkdwr/v1/model/store_info.py +3 -3
- huaweicloudsdkdwr/v1/model/sub_search.py +18 -18
- huaweicloudsdkdwr/v1/model/upsert_entities_body.py +9 -9
- huaweicloudsdkdwr/v1/model/{upsert_entities_response_data.py → upsert_entities_data.py} +18 -19
- huaweicloudsdkdwr/v1/model/upsert_entities_response.py +10 -10
- {huaweicloudsdkdwr-3.1.154.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/METADATA +2 -2
- {huaweicloudsdkdwr-3.1.154.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/RECORD +73 -71
- huaweicloudsdkdwr/v1/model/describe_store_data.py +0 -364
- {huaweicloudsdkdwr-3.1.154.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdwr-3.1.154.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdwr-3.1.154.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/top_level.txt +0 -0
|
@@ -98,31 +98,31 @@ class DwrAsyncClient(Client):
|
|
|
98
98
|
|
|
99
99
|
return http_info
|
|
100
100
|
|
|
101
|
-
def
|
|
102
|
-
r"""
|
|
101
|
+
def create_index_async(self, request):
|
|
102
|
+
r"""创建索引
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
在指定的collection中,按照参数创建索引。
|
|
105
105
|
|
|
106
106
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
:param request: Request instance for
|
|
110
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
111
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
109
|
+
:param request: Request instance for CreateIndex
|
|
110
|
+
:type request: :class:`huaweicloudsdkdwr.v1.CreateIndexRequest`
|
|
111
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.CreateIndexResponse`
|
|
112
112
|
"""
|
|
113
|
-
http_info = self.
|
|
113
|
+
http_info = self._create_index_http_info(request)
|
|
114
114
|
return self._call_api(**http_info)
|
|
115
115
|
|
|
116
|
-
def
|
|
117
|
-
http_info = self.
|
|
116
|
+
def create_index_async_invoker(self, request):
|
|
117
|
+
http_info = self._create_index_http_info(request)
|
|
118
118
|
return AsyncInvoker(self, http_info)
|
|
119
119
|
|
|
120
|
-
def
|
|
120
|
+
def _create_index_http_info(self, request):
|
|
121
121
|
http_info = {
|
|
122
122
|
"method": "POST",
|
|
123
|
-
"resource_path": "/v1/
|
|
123
|
+
"resource_path": "/v1/indexes/create",
|
|
124
124
|
"request_type": request.__class__.__name__,
|
|
125
|
-
"response_type": "
|
|
125
|
+
"response_type": "CreateIndexResponse"
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -163,31 +163,31 @@ class DwrAsyncClient(Client):
|
|
|
163
163
|
|
|
164
164
|
return http_info
|
|
165
165
|
|
|
166
|
-
def
|
|
167
|
-
r"""
|
|
166
|
+
def create_store_async(self, request):
|
|
167
|
+
r"""创建知识仓实例
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
创建知识仓实例。知识仓实例名称region内唯一。
|
|
170
170
|
|
|
171
171
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
172
172
|
|
|
173
173
|
|
|
174
|
-
:param request: Request instance for
|
|
175
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
176
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
174
|
+
:param request: Request instance for CreateStore
|
|
175
|
+
:type request: :class:`huaweicloudsdkdwr.v1.CreateStoreRequest`
|
|
176
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.CreateStoreResponse`
|
|
177
177
|
"""
|
|
178
|
-
http_info = self.
|
|
178
|
+
http_info = self._create_store_http_info(request)
|
|
179
179
|
return self._call_api(**http_info)
|
|
180
180
|
|
|
181
|
-
def
|
|
182
|
-
http_info = self.
|
|
181
|
+
def create_store_async_invoker(self, request):
|
|
182
|
+
http_info = self._create_store_http_info(request)
|
|
183
183
|
return AsyncInvoker(self, http_info)
|
|
184
184
|
|
|
185
|
-
def
|
|
185
|
+
def _create_store_http_info(self, request):
|
|
186
186
|
http_info = {
|
|
187
187
|
"method": "POST",
|
|
188
|
-
"resource_path": "/v1/
|
|
188
|
+
"resource_path": "/v1/stores/create",
|
|
189
189
|
"request_type": request.__class__.__name__,
|
|
190
|
-
"response_type": "
|
|
190
|
+
"response_type": "CreateStoreResponse"
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -228,31 +228,31 @@ class DwrAsyncClient(Client):
|
|
|
228
228
|
|
|
229
229
|
return http_info
|
|
230
230
|
|
|
231
|
-
def
|
|
232
|
-
r"""
|
|
231
|
+
def delete_collection_async(self, request):
|
|
232
|
+
r"""删除collection
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
在知识仓实例下删除指定的collection。
|
|
235
235
|
|
|
236
236
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
237
237
|
|
|
238
238
|
|
|
239
|
-
:param request: Request instance for
|
|
240
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
241
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
239
|
+
:param request: Request instance for DeleteCollection
|
|
240
|
+
:type request: :class:`huaweicloudsdkdwr.v1.DeleteCollectionRequest`
|
|
241
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.DeleteCollectionResponse`
|
|
242
242
|
"""
|
|
243
|
-
http_info = self.
|
|
243
|
+
http_info = self._delete_collection_http_info(request)
|
|
244
244
|
return self._call_api(**http_info)
|
|
245
245
|
|
|
246
|
-
def
|
|
247
|
-
http_info = self.
|
|
246
|
+
def delete_collection_async_invoker(self, request):
|
|
247
|
+
http_info = self._delete_collection_http_info(request)
|
|
248
248
|
return AsyncInvoker(self, http_info)
|
|
249
249
|
|
|
250
|
-
def
|
|
250
|
+
def _delete_collection_http_info(self, request):
|
|
251
251
|
http_info = {
|
|
252
252
|
"method": "POST",
|
|
253
|
-
"resource_path": "/v1/collections/
|
|
253
|
+
"resource_path": "/v1/collections/delete",
|
|
254
254
|
"request_type": request.__class__.__name__,
|
|
255
|
-
"response_type": "
|
|
255
|
+
"response_type": "DeleteCollectionResponse"
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -293,31 +293,31 @@ class DwrAsyncClient(Client):
|
|
|
293
293
|
|
|
294
294
|
return http_info
|
|
295
295
|
|
|
296
|
-
def
|
|
297
|
-
r"""
|
|
296
|
+
def delete_index_async(self, request):
|
|
297
|
+
r"""删除索引
|
|
298
298
|
|
|
299
|
-
|
|
299
|
+
删除指定索引。
|
|
300
300
|
|
|
301
301
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
302
302
|
|
|
303
303
|
|
|
304
|
-
:param request: Request instance for
|
|
305
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
306
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
304
|
+
:param request: Request instance for DeleteIndex
|
|
305
|
+
:type request: :class:`huaweicloudsdkdwr.v1.DeleteIndexRequest`
|
|
306
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.DeleteIndexResponse`
|
|
307
307
|
"""
|
|
308
|
-
http_info = self.
|
|
308
|
+
http_info = self._delete_index_http_info(request)
|
|
309
309
|
return self._call_api(**http_info)
|
|
310
310
|
|
|
311
|
-
def
|
|
312
|
-
http_info = self.
|
|
311
|
+
def delete_index_async_invoker(self, request):
|
|
312
|
+
http_info = self._delete_index_http_info(request)
|
|
313
313
|
return AsyncInvoker(self, http_info)
|
|
314
314
|
|
|
315
|
-
def
|
|
315
|
+
def _delete_index_http_info(self, request):
|
|
316
316
|
http_info = {
|
|
317
317
|
"method": "POST",
|
|
318
|
-
"resource_path": "/v1/
|
|
318
|
+
"resource_path": "/v1/indexes/delete",
|
|
319
319
|
"request_type": request.__class__.__name__,
|
|
320
|
-
"response_type": "
|
|
320
|
+
"response_type": "DeleteIndexResponse"
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -358,31 +358,31 @@ class DwrAsyncClient(Client):
|
|
|
358
358
|
|
|
359
359
|
return http_info
|
|
360
360
|
|
|
361
|
-
def
|
|
362
|
-
r"""
|
|
361
|
+
def delete_store_async(self, request):
|
|
362
|
+
r"""删除知识仓实例
|
|
363
363
|
|
|
364
|
-
|
|
364
|
+
删除指定的知识仓实例。
|
|
365
365
|
|
|
366
366
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
367
367
|
|
|
368
368
|
|
|
369
|
-
:param request: Request instance for
|
|
370
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
371
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
369
|
+
:param request: Request instance for DeleteStore
|
|
370
|
+
:type request: :class:`huaweicloudsdkdwr.v1.DeleteStoreRequest`
|
|
371
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.DeleteStoreResponse`
|
|
372
372
|
"""
|
|
373
|
-
http_info = self.
|
|
373
|
+
http_info = self._delete_store_http_info(request)
|
|
374
374
|
return self._call_api(**http_info)
|
|
375
375
|
|
|
376
|
-
def
|
|
377
|
-
http_info = self.
|
|
376
|
+
def delete_store_async_invoker(self, request):
|
|
377
|
+
http_info = self._delete_store_http_info(request)
|
|
378
378
|
return AsyncInvoker(self, http_info)
|
|
379
379
|
|
|
380
|
-
def
|
|
380
|
+
def _delete_store_http_info(self, request):
|
|
381
381
|
http_info = {
|
|
382
382
|
"method": "POST",
|
|
383
|
-
"resource_path": "/v1/
|
|
383
|
+
"resource_path": "/v1/stores/delete",
|
|
384
384
|
"request_type": request.__class__.__name__,
|
|
385
|
-
"response_type": "
|
|
385
|
+
"response_type": "DeleteStoreResponse"
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -423,31 +423,31 @@ class DwrAsyncClient(Client):
|
|
|
423
423
|
|
|
424
424
|
return http_info
|
|
425
425
|
|
|
426
|
-
def
|
|
427
|
-
r"""
|
|
426
|
+
def describe_collection_async(self, request):
|
|
427
|
+
r"""查询collection
|
|
428
428
|
|
|
429
|
-
|
|
429
|
+
在知识仓实例下查询指定的collection的信息。
|
|
430
430
|
|
|
431
431
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
432
432
|
|
|
433
433
|
|
|
434
|
-
:param request: Request instance for
|
|
435
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
436
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
434
|
+
:param request: Request instance for DescribeCollection
|
|
435
|
+
:type request: :class:`huaweicloudsdkdwr.v1.DescribeCollectionRequest`
|
|
436
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.DescribeCollectionResponse`
|
|
437
437
|
"""
|
|
438
|
-
http_info = self.
|
|
438
|
+
http_info = self._describe_collection_http_info(request)
|
|
439
439
|
return self._call_api(**http_info)
|
|
440
440
|
|
|
441
|
-
def
|
|
442
|
-
http_info = self.
|
|
441
|
+
def describe_collection_async_invoker(self, request):
|
|
442
|
+
http_info = self._describe_collection_http_info(request)
|
|
443
443
|
return AsyncInvoker(self, http_info)
|
|
444
444
|
|
|
445
|
-
def
|
|
445
|
+
def _describe_collection_http_info(self, request):
|
|
446
446
|
http_info = {
|
|
447
447
|
"method": "POST",
|
|
448
|
-
"resource_path": "/v1/
|
|
448
|
+
"resource_path": "/v1/collections/describe",
|
|
449
449
|
"request_type": request.__class__.__name__,
|
|
450
|
-
"response_type": "
|
|
450
|
+
"response_type": "DescribeCollectionResponse"
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -488,31 +488,31 @@ class DwrAsyncClient(Client):
|
|
|
488
488
|
|
|
489
489
|
return http_info
|
|
490
490
|
|
|
491
|
-
def
|
|
492
|
-
r"""
|
|
491
|
+
def describe_index_async(self, request):
|
|
492
|
+
r"""查询索引
|
|
493
493
|
|
|
494
|
-
|
|
494
|
+
查询指定索引的详细信息。
|
|
495
495
|
|
|
496
496
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
497
497
|
|
|
498
498
|
|
|
499
|
-
:param request: Request instance for
|
|
500
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
501
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
499
|
+
:param request: Request instance for DescribeIndex
|
|
500
|
+
:type request: :class:`huaweicloudsdkdwr.v1.DescribeIndexRequest`
|
|
501
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.DescribeIndexResponse`
|
|
502
502
|
"""
|
|
503
|
-
http_info = self.
|
|
503
|
+
http_info = self._describe_index_http_info(request)
|
|
504
504
|
return self._call_api(**http_info)
|
|
505
505
|
|
|
506
|
-
def
|
|
507
|
-
http_info = self.
|
|
506
|
+
def describe_index_async_invoker(self, request):
|
|
507
|
+
http_info = self._describe_index_http_info(request)
|
|
508
508
|
return AsyncInvoker(self, http_info)
|
|
509
509
|
|
|
510
|
-
def
|
|
510
|
+
def _describe_index_http_info(self, request):
|
|
511
511
|
http_info = {
|
|
512
512
|
"method": "POST",
|
|
513
|
-
"resource_path": "/v1/
|
|
513
|
+
"resource_path": "/v1/indexes/describe",
|
|
514
514
|
"request_type": request.__class__.__name__,
|
|
515
|
-
"response_type": "
|
|
515
|
+
"response_type": "DescribeIndexResponse"
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -553,31 +553,31 @@ class DwrAsyncClient(Client):
|
|
|
553
553
|
|
|
554
554
|
return http_info
|
|
555
555
|
|
|
556
|
-
def
|
|
557
|
-
r"""
|
|
556
|
+
def describe_job_async(self, request):
|
|
557
|
+
r"""获取指定ID任务信息
|
|
558
558
|
|
|
559
|
-
|
|
559
|
+
根据指定的jobid查询任务信息。用于在创建和删除知识仓实例操作执行成功后,通过响应中返回的job_id,来查询创建和删除知识仓实例执行的具体结果。
|
|
560
560
|
|
|
561
561
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
562
562
|
|
|
563
563
|
|
|
564
|
-
:param request: Request instance for
|
|
565
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
566
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
564
|
+
:param request: Request instance for DescribeJob
|
|
565
|
+
:type request: :class:`huaweicloudsdkdwr.v1.DescribeJobRequest`
|
|
566
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.DescribeJobResponse`
|
|
567
567
|
"""
|
|
568
|
-
http_info = self.
|
|
568
|
+
http_info = self._describe_job_http_info(request)
|
|
569
569
|
return self._call_api(**http_info)
|
|
570
570
|
|
|
571
|
-
def
|
|
572
|
-
http_info = self.
|
|
571
|
+
def describe_job_async_invoker(self, request):
|
|
572
|
+
http_info = self._describe_job_http_info(request)
|
|
573
573
|
return AsyncInvoker(self, http_info)
|
|
574
574
|
|
|
575
|
-
def
|
|
575
|
+
def _describe_job_http_info(self, request):
|
|
576
576
|
http_info = {
|
|
577
577
|
"method": "POST",
|
|
578
|
-
"resource_path": "/v1/
|
|
578
|
+
"resource_path": "/v1/jobs/describe",
|
|
579
579
|
"request_type": request.__class__.__name__,
|
|
580
|
-
"response_type": "
|
|
580
|
+
"response_type": "DescribeJobResponse"
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -618,31 +618,31 @@ class DwrAsyncClient(Client):
|
|
|
618
618
|
|
|
619
619
|
return http_info
|
|
620
620
|
|
|
621
|
-
def
|
|
622
|
-
r"""
|
|
621
|
+
def describe_store_async(self, request):
|
|
622
|
+
r"""查询知识仓实例
|
|
623
623
|
|
|
624
|
-
|
|
624
|
+
查询指定知识仓实例的详细信息。
|
|
625
625
|
|
|
626
626
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
627
627
|
|
|
628
628
|
|
|
629
|
-
:param request: Request instance for
|
|
630
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
631
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
629
|
+
:param request: Request instance for DescribeStore
|
|
630
|
+
:type request: :class:`huaweicloudsdkdwr.v1.DescribeStoreRequest`
|
|
631
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.DescribeStoreResponse`
|
|
632
632
|
"""
|
|
633
|
-
http_info = self.
|
|
633
|
+
http_info = self._describe_store_http_info(request)
|
|
634
634
|
return self._call_api(**http_info)
|
|
635
635
|
|
|
636
|
-
def
|
|
637
|
-
http_info = self.
|
|
636
|
+
def describe_store_async_invoker(self, request):
|
|
637
|
+
http_info = self._describe_store_http_info(request)
|
|
638
638
|
return AsyncInvoker(self, http_info)
|
|
639
639
|
|
|
640
|
-
def
|
|
640
|
+
def _describe_store_http_info(self, request):
|
|
641
641
|
http_info = {
|
|
642
642
|
"method": "POST",
|
|
643
|
-
"resource_path": "/v1/
|
|
643
|
+
"resource_path": "/v1/stores/describe",
|
|
644
644
|
"request_type": request.__class__.__name__,
|
|
645
|
-
"response_type": "
|
|
645
|
+
"response_type": "DescribeStoreResponse"
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -683,31 +683,31 @@ class DwrAsyncClient(Client):
|
|
|
683
683
|
|
|
684
684
|
return http_info
|
|
685
685
|
|
|
686
|
-
def
|
|
687
|
-
r"""
|
|
686
|
+
def get_progress_async(self, request):
|
|
687
|
+
r"""查询索引构建进度
|
|
688
688
|
|
|
689
|
-
|
|
689
|
+
查询指定索引的构建进度。
|
|
690
690
|
|
|
691
691
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
692
692
|
|
|
693
693
|
|
|
694
|
-
:param request: Request instance for
|
|
695
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
696
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
694
|
+
:param request: Request instance for GetProgress
|
|
695
|
+
:type request: :class:`huaweicloudsdkdwr.v1.GetProgressRequest`
|
|
696
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.GetProgressResponse`
|
|
697
697
|
"""
|
|
698
|
-
http_info = self.
|
|
698
|
+
http_info = self._get_progress_http_info(request)
|
|
699
699
|
return self._call_api(**http_info)
|
|
700
700
|
|
|
701
|
-
def
|
|
702
|
-
http_info = self.
|
|
701
|
+
def get_progress_async_invoker(self, request):
|
|
702
|
+
http_info = self._get_progress_http_info(request)
|
|
703
703
|
return AsyncInvoker(self, http_info)
|
|
704
704
|
|
|
705
|
-
def
|
|
705
|
+
def _get_progress_http_info(self, request):
|
|
706
706
|
http_info = {
|
|
707
707
|
"method": "POST",
|
|
708
|
-
"resource_path": "/v1/
|
|
708
|
+
"resource_path": "/v1/indexes/get-progress",
|
|
709
709
|
"request_type": request.__class__.__name__,
|
|
710
|
-
"response_type": "
|
|
710
|
+
"response_type": "GetProgressResponse"
|
|
711
711
|
}
|
|
712
712
|
|
|
713
713
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -748,31 +748,31 @@ class DwrAsyncClient(Client):
|
|
|
748
748
|
|
|
749
749
|
return http_info
|
|
750
750
|
|
|
751
|
-
def
|
|
752
|
-
r"""
|
|
751
|
+
def list_collections_async(self, request):
|
|
752
|
+
r"""列举collection
|
|
753
753
|
|
|
754
|
-
|
|
754
|
+
列举指定知识仓实例中所有的collections。
|
|
755
755
|
|
|
756
756
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
757
757
|
|
|
758
758
|
|
|
759
|
-
:param request: Request instance for
|
|
760
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
761
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
759
|
+
:param request: Request instance for ListCollections
|
|
760
|
+
:type request: :class:`huaweicloudsdkdwr.v1.ListCollectionsRequest`
|
|
761
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.ListCollectionsResponse`
|
|
762
762
|
"""
|
|
763
|
-
http_info = self.
|
|
763
|
+
http_info = self._list_collections_http_info(request)
|
|
764
764
|
return self._call_api(**http_info)
|
|
765
765
|
|
|
766
|
-
def
|
|
767
|
-
http_info = self.
|
|
766
|
+
def list_collections_async_invoker(self, request):
|
|
767
|
+
http_info = self._list_collections_http_info(request)
|
|
768
768
|
return AsyncInvoker(self, http_info)
|
|
769
769
|
|
|
770
|
-
def
|
|
770
|
+
def _list_collections_http_info(self, request):
|
|
771
771
|
http_info = {
|
|
772
772
|
"method": "POST",
|
|
773
|
-
"resource_path": "/v1/
|
|
773
|
+
"resource_path": "/v1/collections/list",
|
|
774
774
|
"request_type": request.__class__.__name__,
|
|
775
|
-
"response_type": "
|
|
775
|
+
"response_type": "ListCollectionsResponse"
|
|
776
776
|
}
|
|
777
777
|
|
|
778
778
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -813,31 +813,31 @@ class DwrAsyncClient(Client):
|
|
|
813
813
|
|
|
814
814
|
return http_info
|
|
815
815
|
|
|
816
|
-
def
|
|
817
|
-
r"""
|
|
816
|
+
def list_jobs_async(self, request):
|
|
817
|
+
r"""查询任务列表
|
|
818
818
|
|
|
819
|
-
|
|
819
|
+
根据指定条件查询列举任务的详情。
|
|
820
820
|
|
|
821
821
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
822
822
|
|
|
823
823
|
|
|
824
|
-
:param request: Request instance for
|
|
825
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
826
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
824
|
+
:param request: Request instance for ListJobs
|
|
825
|
+
:type request: :class:`huaweicloudsdkdwr.v1.ListJobsRequest`
|
|
826
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.ListJobsResponse`
|
|
827
827
|
"""
|
|
828
|
-
http_info = self.
|
|
828
|
+
http_info = self._list_jobs_http_info(request)
|
|
829
829
|
return self._call_api(**http_info)
|
|
830
830
|
|
|
831
|
-
def
|
|
832
|
-
http_info = self.
|
|
831
|
+
def list_jobs_async_invoker(self, request):
|
|
832
|
+
http_info = self._list_jobs_http_info(request)
|
|
833
833
|
return AsyncInvoker(self, http_info)
|
|
834
834
|
|
|
835
|
-
def
|
|
835
|
+
def _list_jobs_http_info(self, request):
|
|
836
836
|
http_info = {
|
|
837
837
|
"method": "POST",
|
|
838
|
-
"resource_path": "/v1/
|
|
838
|
+
"resource_path": "/v1/jobs/list",
|
|
839
839
|
"request_type": request.__class__.__name__,
|
|
840
|
-
"response_type": "
|
|
840
|
+
"response_type": "ListJobsResponse"
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -849,14 +849,22 @@ class DwrAsyncClient(Client):
|
|
|
849
849
|
path_params = {}
|
|
850
850
|
|
|
851
851
|
query_params = []
|
|
852
|
+
if 'start_time' in local_var_params:
|
|
853
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
|
854
|
+
if 'end_time' in local_var_params:
|
|
855
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
|
856
|
+
if 'status' in local_var_params:
|
|
857
|
+
query_params.append(('status', local_var_params['status']))
|
|
858
|
+
if 'offset' in local_var_params:
|
|
859
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
860
|
+
if 'limit' in local_var_params:
|
|
861
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
852
862
|
|
|
853
863
|
header_params = {}
|
|
854
864
|
|
|
855
865
|
form_params = {}
|
|
856
866
|
|
|
857
867
|
body = None
|
|
858
|
-
if 'body' in local_var_params:
|
|
859
|
-
body = local_var_params['body']
|
|
860
868
|
if isinstance(request, SdkStreamRequest):
|
|
861
869
|
body = request.get_file_stream()
|
|
862
870
|
|
|
@@ -878,31 +886,31 @@ class DwrAsyncClient(Client):
|
|
|
878
886
|
|
|
879
887
|
return http_info
|
|
880
888
|
|
|
881
|
-
def
|
|
882
|
-
r"""
|
|
889
|
+
def list_stores_async(self, request):
|
|
890
|
+
r"""列举知识仓实例
|
|
883
891
|
|
|
884
|
-
|
|
892
|
+
列举租户所有的知识仓实例。
|
|
885
893
|
|
|
886
894
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
887
895
|
|
|
888
896
|
|
|
889
|
-
:param request: Request instance for
|
|
890
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
891
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
897
|
+
:param request: Request instance for ListStores
|
|
898
|
+
:type request: :class:`huaweicloudsdkdwr.v1.ListStoresRequest`
|
|
899
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.ListStoresResponse`
|
|
892
900
|
"""
|
|
893
|
-
http_info = self.
|
|
901
|
+
http_info = self._list_stores_http_info(request)
|
|
894
902
|
return self._call_api(**http_info)
|
|
895
903
|
|
|
896
|
-
def
|
|
897
|
-
http_info = self.
|
|
904
|
+
def list_stores_async_invoker(self, request):
|
|
905
|
+
http_info = self._list_stores_http_info(request)
|
|
898
906
|
return AsyncInvoker(self, http_info)
|
|
899
907
|
|
|
900
|
-
def
|
|
908
|
+
def _list_stores_http_info(self, request):
|
|
901
909
|
http_info = {
|
|
902
910
|
"method": "POST",
|
|
903
|
-
"resource_path": "/v1/
|
|
911
|
+
"resource_path": "/v1/stores/list",
|
|
904
912
|
"request_type": request.__class__.__name__,
|
|
905
|
-
"response_type": "
|
|
913
|
+
"response_type": "ListStoresResponse"
|
|
906
914
|
}
|
|
907
915
|
|
|
908
916
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -920,8 +928,6 @@ class DwrAsyncClient(Client):
|
|
|
920
928
|
form_params = {}
|
|
921
929
|
|
|
922
930
|
body = None
|
|
923
|
-
if 'body' in local_var_params:
|
|
924
|
-
body = local_var_params['body']
|
|
925
931
|
if isinstance(request, SdkStreamRequest):
|
|
926
932
|
body = request.get_file_stream()
|
|
927
933
|
|
|
@@ -943,31 +949,31 @@ class DwrAsyncClient(Client):
|
|
|
943
949
|
|
|
944
950
|
return http_info
|
|
945
951
|
|
|
946
|
-
def
|
|
947
|
-
r"""
|
|
952
|
+
def load_collection_async(self, request):
|
|
953
|
+
r"""加载collection
|
|
948
954
|
|
|
949
|
-
|
|
955
|
+
加载指定collection的数据。加载成功后,才能执行查询操作。
|
|
950
956
|
|
|
951
957
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
952
958
|
|
|
953
959
|
|
|
954
|
-
:param request: Request instance for
|
|
955
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
956
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
960
|
+
:param request: Request instance for LoadCollection
|
|
961
|
+
:type request: :class:`huaweicloudsdkdwr.v1.LoadCollectionRequest`
|
|
962
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.LoadCollectionResponse`
|
|
957
963
|
"""
|
|
958
|
-
http_info = self.
|
|
964
|
+
http_info = self._load_collection_http_info(request)
|
|
959
965
|
return self._call_api(**http_info)
|
|
960
966
|
|
|
961
|
-
def
|
|
962
|
-
http_info = self.
|
|
967
|
+
def load_collection_async_invoker(self, request):
|
|
968
|
+
http_info = self._load_collection_http_info(request)
|
|
963
969
|
return AsyncInvoker(self, http_info)
|
|
964
970
|
|
|
965
|
-
def
|
|
971
|
+
def _load_collection_http_info(self, request):
|
|
966
972
|
http_info = {
|
|
967
973
|
"method": "POST",
|
|
968
|
-
"resource_path": "/v1/
|
|
974
|
+
"resource_path": "/v1/collections/load",
|
|
969
975
|
"request_type": request.__class__.__name__,
|
|
970
|
-
"response_type": "
|
|
976
|
+
"response_type": "LoadCollectionResponse"
|
|
971
977
|
}
|
|
972
978
|
|
|
973
979
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -1008,31 +1014,31 @@ class DwrAsyncClient(Client):
|
|
|
1008
1014
|
|
|
1009
1015
|
return http_info
|
|
1010
1016
|
|
|
1011
|
-
def
|
|
1012
|
-
r"""
|
|
1017
|
+
def release_collection_async(self, request):
|
|
1018
|
+
r"""卸载collection
|
|
1013
1019
|
|
|
1014
|
-
|
|
1020
|
+
卸载已加载collection的数据。
|
|
1015
1021
|
|
|
1016
1022
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
1017
1023
|
|
|
1018
1024
|
|
|
1019
|
-
:param request: Request instance for
|
|
1020
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
1021
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
1025
|
+
:param request: Request instance for ReleaseCollection
|
|
1026
|
+
:type request: :class:`huaweicloudsdkdwr.v1.ReleaseCollectionRequest`
|
|
1027
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.ReleaseCollectionResponse`
|
|
1022
1028
|
"""
|
|
1023
|
-
http_info = self.
|
|
1029
|
+
http_info = self._release_collection_http_info(request)
|
|
1024
1030
|
return self._call_api(**http_info)
|
|
1025
1031
|
|
|
1026
|
-
def
|
|
1027
|
-
http_info = self.
|
|
1032
|
+
def release_collection_async_invoker(self, request):
|
|
1033
|
+
http_info = self._release_collection_http_info(request)
|
|
1028
1034
|
return AsyncInvoker(self, http_info)
|
|
1029
1035
|
|
|
1030
|
-
def
|
|
1036
|
+
def _release_collection_http_info(self, request):
|
|
1031
1037
|
http_info = {
|
|
1032
1038
|
"method": "POST",
|
|
1033
|
-
"resource_path": "/v1/
|
|
1039
|
+
"resource_path": "/v1/collections/release",
|
|
1034
1040
|
"request_type": request.__class__.__name__,
|
|
1035
|
-
"response_type": "
|
|
1041
|
+
"response_type": "ReleaseCollectionResponse"
|
|
1036
1042
|
}
|
|
1037
1043
|
|
|
1038
1044
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -1073,31 +1079,31 @@ class DwrAsyncClient(Client):
|
|
|
1073
1079
|
|
|
1074
1080
|
return http_info
|
|
1075
1081
|
|
|
1076
|
-
def
|
|
1077
|
-
r"""
|
|
1082
|
+
def delete_entities_async(self, request):
|
|
1083
|
+
r"""删除向量
|
|
1078
1084
|
|
|
1079
|
-
|
|
1085
|
+
在指定的collection中删除一个或多个Entity。
|
|
1080
1086
|
|
|
1081
1087
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
1082
1088
|
|
|
1083
1089
|
|
|
1084
|
-
:param request: Request instance for
|
|
1085
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
1086
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
1090
|
+
:param request: Request instance for DeleteEntities
|
|
1091
|
+
:type request: :class:`huaweicloudsdkdwr.v1.DeleteEntitiesRequest`
|
|
1092
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.DeleteEntitiesResponse`
|
|
1087
1093
|
"""
|
|
1088
|
-
http_info = self.
|
|
1094
|
+
http_info = self._delete_entities_http_info(request)
|
|
1089
1095
|
return self._call_api(**http_info)
|
|
1090
1096
|
|
|
1091
|
-
def
|
|
1092
|
-
http_info = self.
|
|
1097
|
+
def delete_entities_async_invoker(self, request):
|
|
1098
|
+
http_info = self._delete_entities_http_info(request)
|
|
1093
1099
|
return AsyncInvoker(self, http_info)
|
|
1094
1100
|
|
|
1095
|
-
def
|
|
1101
|
+
def _delete_entities_http_info(self, request):
|
|
1096
1102
|
http_info = {
|
|
1097
1103
|
"method": "POST",
|
|
1098
|
-
"resource_path": "/v1/
|
|
1104
|
+
"resource_path": "/v1/entities/delete",
|
|
1099
1105
|
"request_type": request.__class__.__name__,
|
|
1100
|
-
"response_type": "
|
|
1106
|
+
"response_type": "DeleteEntitiesResponse"
|
|
1101
1107
|
}
|
|
1102
1108
|
|
|
1103
1109
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -1138,31 +1144,31 @@ class DwrAsyncClient(Client):
|
|
|
1138
1144
|
|
|
1139
1145
|
return http_info
|
|
1140
1146
|
|
|
1141
|
-
def
|
|
1142
|
-
r"""
|
|
1147
|
+
def hybrid_search_async(self, request):
|
|
1148
|
+
r"""混合搜索
|
|
1143
1149
|
|
|
1144
|
-
|
|
1150
|
+
基于相似度匹配的查询方式,用于查找与给定多个向量进行相似性搜索,支持密集向量,稀疏向量等多路召回,并对结果进行重排处理,最终返回指定的 Top K 个最相似的 Entity。
|
|
1145
1151
|
|
|
1146
1152
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
1147
1153
|
|
|
1148
1154
|
|
|
1149
|
-
:param request: Request instance for
|
|
1150
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
1151
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
1155
|
+
:param request: Request instance for HybridSearch
|
|
1156
|
+
:type request: :class:`huaweicloudsdkdwr.v1.HybridSearchRequest`
|
|
1157
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.HybridSearchResponse`
|
|
1152
1158
|
"""
|
|
1153
|
-
http_info = self.
|
|
1159
|
+
http_info = self._hybrid_search_http_info(request)
|
|
1154
1160
|
return self._call_api(**http_info)
|
|
1155
1161
|
|
|
1156
|
-
def
|
|
1157
|
-
http_info = self.
|
|
1162
|
+
def hybrid_search_async_invoker(self, request):
|
|
1163
|
+
http_info = self._hybrid_search_http_info(request)
|
|
1158
1164
|
return AsyncInvoker(self, http_info)
|
|
1159
1165
|
|
|
1160
|
-
def
|
|
1166
|
+
def _hybrid_search_http_info(self, request):
|
|
1161
1167
|
http_info = {
|
|
1162
1168
|
"method": "POST",
|
|
1163
|
-
"resource_path": "/v1/
|
|
1169
|
+
"resource_path": "/v1/entities/hybrid-search",
|
|
1164
1170
|
"request_type": request.__class__.__name__,
|
|
1165
|
-
"response_type": "
|
|
1171
|
+
"response_type": "HybridSearchResponse"
|
|
1166
1172
|
}
|
|
1167
1173
|
|
|
1168
1174
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -1174,22 +1180,14 @@ class DwrAsyncClient(Client):
|
|
|
1174
1180
|
path_params = {}
|
|
1175
1181
|
|
|
1176
1182
|
query_params = []
|
|
1177
|
-
if 'start_time' in local_var_params:
|
|
1178
|
-
query_params.append(('start_time', local_var_params['start_time']))
|
|
1179
|
-
if 'end_time' in local_var_params:
|
|
1180
|
-
query_params.append(('end_time', local_var_params['end_time']))
|
|
1181
|
-
if 'status' in local_var_params:
|
|
1182
|
-
query_params.append(('status', local_var_params['status']))
|
|
1183
|
-
if 'offset' in local_var_params:
|
|
1184
|
-
query_params.append(('offset', local_var_params['offset']))
|
|
1185
|
-
if 'limit' in local_var_params:
|
|
1186
|
-
query_params.append(('limit', local_var_params['limit']))
|
|
1187
1183
|
|
|
1188
1184
|
header_params = {}
|
|
1189
1185
|
|
|
1190
1186
|
form_params = {}
|
|
1191
1187
|
|
|
1192
1188
|
body = None
|
|
1189
|
+
if 'body' in local_var_params:
|
|
1190
|
+
body = local_var_params['body']
|
|
1193
1191
|
if isinstance(request, SdkStreamRequest):
|
|
1194
1192
|
body = request.get_file_stream()
|
|
1195
1193
|
|
|
@@ -1211,31 +1209,31 @@ class DwrAsyncClient(Client):
|
|
|
1211
1209
|
|
|
1212
1210
|
return http_info
|
|
1213
1211
|
|
|
1214
|
-
def
|
|
1215
|
-
r"""
|
|
1212
|
+
def insert_entities_async(self, request):
|
|
1213
|
+
r"""插入向量
|
|
1216
1214
|
|
|
1217
|
-
|
|
1215
|
+
在指定的collection中插入一个或多个Entity。
|
|
1218
1216
|
|
|
1219
1217
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
1220
1218
|
|
|
1221
1219
|
|
|
1222
|
-
:param request: Request instance for
|
|
1223
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
1224
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
1220
|
+
:param request: Request instance for InsertEntities
|
|
1221
|
+
:type request: :class:`huaweicloudsdkdwr.v1.InsertEntitiesRequest`
|
|
1222
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.InsertEntitiesResponse`
|
|
1225
1223
|
"""
|
|
1226
|
-
http_info = self.
|
|
1224
|
+
http_info = self._insert_entities_http_info(request)
|
|
1227
1225
|
return self._call_api(**http_info)
|
|
1228
1226
|
|
|
1229
|
-
def
|
|
1230
|
-
http_info = self.
|
|
1227
|
+
def insert_entities_async_invoker(self, request):
|
|
1228
|
+
http_info = self._insert_entities_http_info(request)
|
|
1231
1229
|
return AsyncInvoker(self, http_info)
|
|
1232
1230
|
|
|
1233
|
-
def
|
|
1231
|
+
def _insert_entities_http_info(self, request):
|
|
1234
1232
|
http_info = {
|
|
1235
1233
|
"method": "POST",
|
|
1236
|
-
"resource_path": "/v1/
|
|
1234
|
+
"resource_path": "/v1/entities/insert",
|
|
1237
1235
|
"request_type": request.__class__.__name__,
|
|
1238
|
-
"response_type": "
|
|
1236
|
+
"response_type": "InsertEntitiesResponse"
|
|
1239
1237
|
}
|
|
1240
1238
|
|
|
1241
1239
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -1276,31 +1274,31 @@ class DwrAsyncClient(Client):
|
|
|
1276
1274
|
|
|
1277
1275
|
return http_info
|
|
1278
1276
|
|
|
1279
|
-
def
|
|
1280
|
-
r"""
|
|
1277
|
+
def query_entities_async(self, request):
|
|
1278
|
+
r"""标量查询
|
|
1281
1279
|
|
|
1282
|
-
|
|
1280
|
+
接口用于精确查找与查询条件完全匹配的向量,此操作使用指定的布尔表达式对标量字段进行筛选。
|
|
1283
1281
|
|
|
1284
1282
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
1285
1283
|
|
|
1286
1284
|
|
|
1287
|
-
:param request: Request instance for
|
|
1288
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
1289
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
1285
|
+
:param request: Request instance for QueryEntities
|
|
1286
|
+
:type request: :class:`huaweicloudsdkdwr.v1.QueryEntitiesRequest`
|
|
1287
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.QueryEntitiesResponse`
|
|
1290
1288
|
"""
|
|
1291
|
-
http_info = self.
|
|
1289
|
+
http_info = self._query_entities_http_info(request)
|
|
1292
1290
|
return self._call_api(**http_info)
|
|
1293
1291
|
|
|
1294
|
-
def
|
|
1295
|
-
http_info = self.
|
|
1292
|
+
def query_entities_async_invoker(self, request):
|
|
1293
|
+
http_info = self._query_entities_http_info(request)
|
|
1296
1294
|
return AsyncInvoker(self, http_info)
|
|
1297
1295
|
|
|
1298
|
-
def
|
|
1296
|
+
def _query_entities_http_info(self, request):
|
|
1299
1297
|
http_info = {
|
|
1300
1298
|
"method": "POST",
|
|
1301
|
-
"resource_path": "/v1/
|
|
1299
|
+
"resource_path": "/v1/entities/query",
|
|
1302
1300
|
"request_type": request.__class__.__name__,
|
|
1303
|
-
"response_type": "
|
|
1301
|
+
"response_type": "QueryEntitiesResponse"
|
|
1304
1302
|
}
|
|
1305
1303
|
|
|
1306
1304
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -1341,31 +1339,31 @@ class DwrAsyncClient(Client):
|
|
|
1341
1339
|
|
|
1342
1340
|
return http_info
|
|
1343
1341
|
|
|
1344
|
-
def
|
|
1345
|
-
r"""
|
|
1342
|
+
def search_entities_async(self, request):
|
|
1343
|
+
r"""向量查询
|
|
1346
1344
|
|
|
1347
|
-
|
|
1345
|
+
基于相似度匹配的查询方式,用于查找与给定查询向量相似的向量。返回指定的 Top K 个最相似的 Entity。
|
|
1348
1346
|
|
|
1349
1347
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
1350
1348
|
|
|
1351
1349
|
|
|
1352
|
-
:param request: Request instance for
|
|
1353
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
1354
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
1350
|
+
:param request: Request instance for SearchEntities
|
|
1351
|
+
:type request: :class:`huaweicloudsdkdwr.v1.SearchEntitiesRequest`
|
|
1352
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.SearchEntitiesResponse`
|
|
1355
1353
|
"""
|
|
1356
|
-
http_info = self.
|
|
1354
|
+
http_info = self._search_entities_http_info(request)
|
|
1357
1355
|
return self._call_api(**http_info)
|
|
1358
1356
|
|
|
1359
|
-
def
|
|
1360
|
-
http_info = self.
|
|
1357
|
+
def search_entities_async_invoker(self, request):
|
|
1358
|
+
http_info = self._search_entities_http_info(request)
|
|
1361
1359
|
return AsyncInvoker(self, http_info)
|
|
1362
1360
|
|
|
1363
|
-
def
|
|
1361
|
+
def _search_entities_http_info(self, request):
|
|
1364
1362
|
http_info = {
|
|
1365
1363
|
"method": "POST",
|
|
1366
|
-
"resource_path": "/v1/
|
|
1364
|
+
"resource_path": "/v1/entities/search",
|
|
1367
1365
|
"request_type": request.__class__.__name__,
|
|
1368
|
-
"response_type": "
|
|
1366
|
+
"response_type": "SearchEntitiesResponse"
|
|
1369
1367
|
}
|
|
1370
1368
|
|
|
1371
1369
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -1406,31 +1404,31 @@ class DwrAsyncClient(Client):
|
|
|
1406
1404
|
|
|
1407
1405
|
return http_info
|
|
1408
1406
|
|
|
1409
|
-
def
|
|
1410
|
-
r"""
|
|
1407
|
+
def upsert_entities_async(self, request):
|
|
1408
|
+
r"""更新向量
|
|
1411
1409
|
|
|
1412
|
-
|
|
1410
|
+
在指定collection中更新Entity。如果pk列中值存在,则更新Entity,如果不存在,则插入Entity。
|
|
1413
1411
|
|
|
1414
1412
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
1415
1413
|
|
|
1416
1414
|
|
|
1417
|
-
:param request: Request instance for
|
|
1418
|
-
:type request: :class:`huaweicloudsdkdwr.v1.
|
|
1419
|
-
:rtype: :class:`huaweicloudsdkdwr.v1.
|
|
1415
|
+
:param request: Request instance for UpsertEntities
|
|
1416
|
+
:type request: :class:`huaweicloudsdkdwr.v1.UpsertEntitiesRequest`
|
|
1417
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.UpsertEntitiesResponse`
|
|
1420
1418
|
"""
|
|
1421
|
-
http_info = self.
|
|
1419
|
+
http_info = self._upsert_entities_http_info(request)
|
|
1422
1420
|
return self._call_api(**http_info)
|
|
1423
1421
|
|
|
1424
|
-
def
|
|
1425
|
-
http_info = self.
|
|
1422
|
+
def upsert_entities_async_invoker(self, request):
|
|
1423
|
+
http_info = self._upsert_entities_http_info(request)
|
|
1426
1424
|
return AsyncInvoker(self, http_info)
|
|
1427
1425
|
|
|
1428
|
-
def
|
|
1426
|
+
def _upsert_entities_http_info(self, request):
|
|
1429
1427
|
http_info = {
|
|
1430
1428
|
"method": "POST",
|
|
1431
|
-
"resource_path": "/v1/
|
|
1429
|
+
"resource_path": "/v1/entities/upsert",
|
|
1432
1430
|
"request_type": request.__class__.__name__,
|
|
1433
|
-
"response_type": "
|
|
1431
|
+
"response_type": "UpsertEntitiesResponse"
|
|
1434
1432
|
}
|
|
1435
1433
|
|
|
1436
1434
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -1448,6 +1446,8 @@ class DwrAsyncClient(Client):
|
|
|
1448
1446
|
form_params = {}
|
|
1449
1447
|
|
|
1450
1448
|
body = None
|
|
1449
|
+
if 'body' in local_var_params:
|
|
1450
|
+
body = local_var_params['body']
|
|
1451
1451
|
if isinstance(request, SdkStreamRequest):
|
|
1452
1452
|
body = request.get_file_stream()
|
|
1453
1453
|
|