huaweicloudsdkdwr 3.1.155__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.

Files changed (74) hide show
  1. huaweicloudsdkdwr/v1/__init__.py +7 -5
  2. huaweicloudsdkdwr/v1/dwr_async_client.py +266 -266
  3. huaweicloudsdkdwr/v1/dwr_client.py +266 -266
  4. huaweicloudsdkdwr/v1/model/__init__.py +7 -5
  5. huaweicloudsdkdwr/v1/model/build_progress.py +15 -15
  6. huaweicloudsdkdwr/v1/model/charge_info.py +15 -15
  7. huaweicloudsdkdwr/v1/model/collection_base_info.py +6 -6
  8. huaweicloudsdkdwr/v1/model/create_collection_body.py +18 -18
  9. huaweicloudsdkdwr/v1/model/create_collection_response.py +6 -6
  10. huaweicloudsdkdwr/v1/model/create_index_body.py +6 -6
  11. huaweicloudsdkdwr/v1/model/create_index_response.py +6 -6
  12. huaweicloudsdkdwr/v1/model/create_store_body.py +12 -12
  13. huaweicloudsdkdwr/v1/model/create_store_data.py +21 -21
  14. huaweicloudsdkdwr/v1/model/create_store_response.py +6 -6
  15. huaweicloudsdkdwr/v1/model/decribe_collection_data.py +41 -41
  16. huaweicloudsdkdwr/v1/model/delete_collection_response.py +6 -6
  17. huaweicloudsdkdwr/v1/model/delete_entities_body.py +9 -9
  18. huaweicloudsdkdwr/v1/model/delete_entities_response.py +6 -6
  19. huaweicloudsdkdwr/v1/model/delete_index_body.py +9 -9
  20. huaweicloudsdkdwr/v1/model/delete_index_response.py +6 -6
  21. huaweicloudsdkdwr/v1/model/delete_store_data.py +3 -3
  22. huaweicloudsdkdwr/v1/model/delete_store_response.py +6 -6
  23. huaweicloudsdkdwr/v1/model/describe_collection_response.py +6 -6
  24. huaweicloudsdkdwr/v1/model/describe_index_body.py +9 -9
  25. huaweicloudsdkdwr/v1/model/{describe_index_respose_data.py → describe_index_data.py} +25 -26
  26. huaweicloudsdkdwr/v1/model/describe_index_response.py +10 -10
  27. huaweicloudsdkdwr/v1/model/describe_job_body.py +3 -3
  28. huaweicloudsdkdwr/v1/model/describe_job_response.py +6 -6
  29. huaweicloudsdkdwr/v1/model/describe_store_response.py +10 -10
  30. huaweicloudsdkdwr/v1/model/entities_data.py +114 -0
  31. huaweicloudsdkdwr/v1/model/field.py +15 -15
  32. huaweicloudsdkdwr/v1/model/field_data.py +102 -15
  33. huaweicloudsdkdwr/v1/model/flavor.py +6 -6
  34. huaweicloudsdkdwr/v1/model/get_index_progress_body.py +9 -9
  35. huaweicloudsdkdwr/v1/model/{get_index_progress_response_data.py → get_progress_data.py} +21 -21
  36. huaweicloudsdkdwr/v1/model/get_progress_response.py +10 -10
  37. huaweicloudsdkdwr/v1/model/hybrid_search_body.py +20 -16
  38. huaweicloudsdkdwr/v1/model/hybrid_search_response.py +11 -15
  39. huaweicloudsdkdwr/v1/model/index_desc.py +14 -16
  40. huaweicloudsdkdwr/v1/model/index_params.py +9 -9
  41. huaweicloudsdkdwr/v1/model/insert_entities_body.py +9 -9
  42. huaweicloudsdkdwr/v1/model/{insert_entities_response_data.py → insert_entities_data.py} +17 -17
  43. huaweicloudsdkdwr/v1/model/insert_entities_response.py +10 -10
  44. huaweicloudsdkdwr/v1/model/job_data.py +24 -24
  45. huaweicloudsdkdwr/v1/model/list_collection_data.py +6 -6
  46. huaweicloudsdkdwr/v1/model/list_collection_details.py +18 -18
  47. huaweicloudsdkdwr/v1/model/list_collections_body.py +6 -6
  48. huaweicloudsdkdwr/v1/model/list_collections_response.py +6 -6
  49. huaweicloudsdkdwr/v1/model/list_jobs_data.py +3 -3
  50. huaweicloudsdkdwr/v1/model/list_jobs_request.py +15 -15
  51. huaweicloudsdkdwr/v1/model/list_jobs_response.py +6 -6
  52. huaweicloudsdkdwr/v1/model/list_store_data.py +114 -0
  53. huaweicloudsdkdwr/v1/model/list_stores_response.py +11 -15
  54. huaweicloudsdkdwr/v1/model/load_collection_body.py +6 -6
  55. huaweicloudsdkdwr/v1/model/load_collection_response.py +6 -6
  56. huaweicloudsdkdwr/v1/model/primary_field.py +6 -6
  57. huaweicloudsdkdwr/v1/model/query_entities_body.py +18 -18
  58. huaweicloudsdkdwr/v1/model/query_entities_response.py +11 -15
  59. huaweicloudsdkdwr/v1/model/release_collection_response.py +6 -6
  60. huaweicloudsdkdwr/v1/model/rerank.py +6 -6
  61. huaweicloudsdkdwr/v1/model/search_entities_body.py +27 -27
  62. huaweicloudsdkdwr/v1/model/search_entities_response.py +11 -15
  63. huaweicloudsdkdwr/v1/model/store_data.py +364 -0
  64. huaweicloudsdkdwr/v1/model/store_info.py +3 -3
  65. huaweicloudsdkdwr/v1/model/sub_search.py +18 -18
  66. huaweicloudsdkdwr/v1/model/upsert_entities_body.py +9 -9
  67. huaweicloudsdkdwr/v1/model/{upsert_entities_response_data.py → upsert_entities_data.py} +18 -19
  68. huaweicloudsdkdwr/v1/model/upsert_entities_response.py +10 -10
  69. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/METADATA +2 -2
  70. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/RECORD +73 -71
  71. huaweicloudsdkdwr/v1/model/describe_store_data.py +0 -364
  72. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/LICENSE +0 -0
  73. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/WHEEL +0 -0
  74. {huaweicloudsdkdwr-3.1.155.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 delete_collection_async(self, request):
102
- r"""删除collection
101
+ def create_index_async(self, request):
102
+ r"""创建索引
103
103
 
104
- 在知识仓实例下删除指定的collection
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 DeleteCollection
110
- :type request: :class:`huaweicloudsdkdwr.v1.DeleteCollectionRequest`
111
- :rtype: :class:`huaweicloudsdkdwr.v1.DeleteCollectionResponse`
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._delete_collection_http_info(request)
113
+ http_info = self._create_index_http_info(request)
114
114
  return self._call_api(**http_info)
115
115
 
116
- def delete_collection_async_invoker(self, request):
117
- http_info = self._delete_collection_http_info(request)
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 _delete_collection_http_info(self, request):
120
+ def _create_index_http_info(self, request):
121
121
  http_info = {
122
122
  "method": "POST",
123
- "resource_path": "/v1/collections/delete",
123
+ "resource_path": "/v1/indexes/create",
124
124
  "request_type": request.__class__.__name__,
125
- "response_type": "DeleteCollectionResponse"
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 describe_collection_async(self, request):
167
- r"""查询collection
166
+ def create_store_async(self, request):
167
+ r"""创建知识仓实例
168
168
 
169
- 在知识仓实例下查询指定的collection的信息。
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 DescribeCollection
175
- :type request: :class:`huaweicloudsdkdwr.v1.DescribeCollectionRequest`
176
- :rtype: :class:`huaweicloudsdkdwr.v1.DescribeCollectionResponse`
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._describe_collection_http_info(request)
178
+ http_info = self._create_store_http_info(request)
179
179
  return self._call_api(**http_info)
180
180
 
181
- def describe_collection_async_invoker(self, request):
182
- http_info = self._describe_collection_http_info(request)
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 _describe_collection_http_info(self, request):
185
+ def _create_store_http_info(self, request):
186
186
  http_info = {
187
187
  "method": "POST",
188
- "resource_path": "/v1/collections/describe",
188
+ "resource_path": "/v1/stores/create",
189
189
  "request_type": request.__class__.__name__,
190
- "response_type": "DescribeCollectionResponse"
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 list_collections_async(self, request):
232
- r"""列举collection
231
+ def delete_collection_async(self, request):
232
+ r"""删除collection
233
233
 
234
- 列举指定知识仓实例中所有的collections
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 ListCollections
240
- :type request: :class:`huaweicloudsdkdwr.v1.ListCollectionsRequest`
241
- :rtype: :class:`huaweicloudsdkdwr.v1.ListCollectionsResponse`
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._list_collections_http_info(request)
243
+ http_info = self._delete_collection_http_info(request)
244
244
  return self._call_api(**http_info)
245
245
 
246
- def list_collections_async_invoker(self, request):
247
- http_info = self._list_collections_http_info(request)
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 _list_collections_http_info(self, request):
250
+ def _delete_collection_http_info(self, request):
251
251
  http_info = {
252
252
  "method": "POST",
253
- "resource_path": "/v1/collections/list",
253
+ "resource_path": "/v1/collections/delete",
254
254
  "request_type": request.__class__.__name__,
255
- "response_type": "ListCollectionsResponse"
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 load_collection_async(self, request):
297
- r"""加载collection
296
+ def delete_index_async(self, request):
297
+ r"""删除索引
298
298
 
299
- 加载指定collection的数据。加载成功后,才能执行查询操作。
299
+ 删除指定索引。
300
300
 
301
301
  Please refer to HUAWEI cloud API Explorer for details.
302
302
 
303
303
 
304
- :param request: Request instance for LoadCollection
305
- :type request: :class:`huaweicloudsdkdwr.v1.LoadCollectionRequest`
306
- :rtype: :class:`huaweicloudsdkdwr.v1.LoadCollectionResponse`
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._load_collection_http_info(request)
308
+ http_info = self._delete_index_http_info(request)
309
309
  return self._call_api(**http_info)
310
310
 
311
- def load_collection_async_invoker(self, request):
312
- http_info = self._load_collection_http_info(request)
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 _load_collection_http_info(self, request):
315
+ def _delete_index_http_info(self, request):
316
316
  http_info = {
317
317
  "method": "POST",
318
- "resource_path": "/v1/collections/load",
318
+ "resource_path": "/v1/indexes/delete",
319
319
  "request_type": request.__class__.__name__,
320
- "response_type": "LoadCollectionResponse"
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 release_collection_async(self, request):
362
- r"""卸载collection
361
+ def delete_store_async(self, request):
362
+ r"""删除知识仓实例
363
363
 
364
- 卸载已加载collection的数据。
364
+ 删除指定的知识仓实例。
365
365
 
366
366
  Please refer to HUAWEI cloud API Explorer for details.
367
367
 
368
368
 
369
- :param request: Request instance for ReleaseCollection
370
- :type request: :class:`huaweicloudsdkdwr.v1.ReleaseCollectionRequest`
371
- :rtype: :class:`huaweicloudsdkdwr.v1.ReleaseCollectionResponse`
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._release_collection_http_info(request)
373
+ http_info = self._delete_store_http_info(request)
374
374
  return self._call_api(**http_info)
375
375
 
376
- def release_collection_async_invoker(self, request):
377
- http_info = self._release_collection_http_info(request)
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 _release_collection_http_info(self, request):
380
+ def _delete_store_http_info(self, request):
381
381
  http_info = {
382
382
  "method": "POST",
383
- "resource_path": "/v1/collections/release",
383
+ "resource_path": "/v1/stores/delete",
384
384
  "request_type": request.__class__.__name__,
385
- "response_type": "ReleaseCollectionResponse"
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 delete_entities_async(self, request):
427
- r"""删除Entity
426
+ def describe_collection_async(self, request):
427
+ r"""查询collection
428
428
 
429
- 在指定的collecton中删除一个或多个Entity。
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 DeleteEntities
435
- :type request: :class:`huaweicloudsdkdwr.v1.DeleteEntitiesRequest`
436
- :rtype: :class:`huaweicloudsdkdwr.v1.DeleteEntitiesResponse`
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._delete_entities_http_info(request)
438
+ http_info = self._describe_collection_http_info(request)
439
439
  return self._call_api(**http_info)
440
440
 
441
- def delete_entities_async_invoker(self, request):
442
- http_info = self._delete_entities_http_info(request)
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 _delete_entities_http_info(self, request):
445
+ def _describe_collection_http_info(self, request):
446
446
  http_info = {
447
447
  "method": "POST",
448
- "resource_path": "/v1/entities/delete",
448
+ "resource_path": "/v1/collections/describe",
449
449
  "request_type": request.__class__.__name__,
450
- "response_type": "DeleteEntitiesResponse"
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 hybrid_search_async(self, request):
492
- r"""混合搜索
491
+ def describe_index_async(self, request):
492
+ r"""查询索引
493
493
 
494
- 基于相似度匹配的查询方式,用于查找与给定多个向量进行相似性搜索,支持密集向量,稀疏向量等多路召回,并对结果进行重排处理,最终返回指定的 Top K 个最相似的 Entity。
494
+ 查询指定索引的详细信息。
495
495
 
496
496
  Please refer to HUAWEI cloud API Explorer for details.
497
497
 
498
498
 
499
- :param request: Request instance for HybridSearch
500
- :type request: :class:`huaweicloudsdkdwr.v1.HybridSearchRequest`
501
- :rtype: :class:`huaweicloudsdkdwr.v1.HybridSearchResponse`
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._hybrid_search_http_info(request)
503
+ http_info = self._describe_index_http_info(request)
504
504
  return self._call_api(**http_info)
505
505
 
506
- def hybrid_search_async_invoker(self, request):
507
- http_info = self._hybrid_search_http_info(request)
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 _hybrid_search_http_info(self, request):
510
+ def _describe_index_http_info(self, request):
511
511
  http_info = {
512
512
  "method": "POST",
513
- "resource_path": "/v1/entities/hybrid-search",
513
+ "resource_path": "/v1/indexes/describe",
514
514
  "request_type": request.__class__.__name__,
515
- "response_type": "HybridSearchResponse"
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 insert_entities_async(self, request):
557
- r"""插入entity
556
+ def describe_job_async(self, request):
557
+ r"""获取指定ID任务信息
558
558
 
559
- 在指定的collection中插入一个或多个Entity。
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 InsertEntities
565
- :type request: :class:`huaweicloudsdkdwr.v1.InsertEntitiesRequest`
566
- :rtype: :class:`huaweicloudsdkdwr.v1.InsertEntitiesResponse`
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._insert_entities_http_info(request)
568
+ http_info = self._describe_job_http_info(request)
569
569
  return self._call_api(**http_info)
570
570
 
571
- def insert_entities_async_invoker(self, request):
572
- http_info = self._insert_entities_http_info(request)
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 _insert_entities_http_info(self, request):
575
+ def _describe_job_http_info(self, request):
576
576
  http_info = {
577
577
  "method": "POST",
578
- "resource_path": "/v1/entities/insert",
578
+ "resource_path": "/v1/jobs/describe",
579
579
  "request_type": request.__class__.__name__,
580
- "response_type": "InsertEntitiesResponse"
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 query_entities_async(self, request):
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 QueryEntities
630
- :type request: :class:`huaweicloudsdkdwr.v1.QueryEntitiesRequest`
631
- :rtype: :class:`huaweicloudsdkdwr.v1.QueryEntitiesResponse`
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._query_entities_http_info(request)
633
+ http_info = self._describe_store_http_info(request)
634
634
  return self._call_api(**http_info)
635
635
 
636
- def query_entities_async_invoker(self, request):
637
- http_info = self._query_entities_http_info(request)
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 _query_entities_http_info(self, request):
640
+ def _describe_store_http_info(self, request):
641
641
  http_info = {
642
642
  "method": "POST",
643
- "resource_path": "/v1/entities/query",
643
+ "resource_path": "/v1/stores/describe",
644
644
  "request_type": request.__class__.__name__,
645
- "response_type": "QueryEntitiesResponse"
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 search_entities_async(self, request):
687
- r"""向量查询
686
+ def get_progress_async(self, request):
687
+ r"""查询索引构建进度
688
688
 
689
- 基于相似度匹配的查询方式,用于查找与给定查询向量相似的向量。返回指定的 Top K 个最相似的 Entity。
689
+ 查询指定索引的构建进度。
690
690
 
691
691
  Please refer to HUAWEI cloud API Explorer for details.
692
692
 
693
693
 
694
- :param request: Request instance for SearchEntities
695
- :type request: :class:`huaweicloudsdkdwr.v1.SearchEntitiesRequest`
696
- :rtype: :class:`huaweicloudsdkdwr.v1.SearchEntitiesResponse`
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._search_entities_http_info(request)
698
+ http_info = self._get_progress_http_info(request)
699
699
  return self._call_api(**http_info)
700
700
 
701
- def search_entities_async_invoker(self, request):
702
- http_info = self._search_entities_http_info(request)
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 _search_entities_http_info(self, request):
705
+ def _get_progress_http_info(self, request):
706
706
  http_info = {
707
707
  "method": "POST",
708
- "resource_path": "/v1/entities/search",
708
+ "resource_path": "/v1/indexes/get-progress",
709
709
  "request_type": request.__class__.__name__,
710
- "response_type": "SearchEntitiesResponse"
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 upsert_entities_async(self, request):
752
- r"""更新entity
751
+ def list_collections_async(self, request):
752
+ r"""列举collection
753
753
 
754
- 在指定collection中更新Entity。如果pk列中值存在,则更新Entity,如果不存在,则插入Entity
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 UpsertEntities
760
- :type request: :class:`huaweicloudsdkdwr.v1.UpsertEntitiesRequest`
761
- :rtype: :class:`huaweicloudsdkdwr.v1.UpsertEntitiesResponse`
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._upsert_entities_http_info(request)
763
+ http_info = self._list_collections_http_info(request)
764
764
  return self._call_api(**http_info)
765
765
 
766
- def upsert_entities_async_invoker(self, request):
767
- http_info = self._upsert_entities_http_info(request)
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 _upsert_entities_http_info(self, request):
770
+ def _list_collections_http_info(self, request):
771
771
  http_info = {
772
772
  "method": "POST",
773
- "resource_path": "/v1/entities/upsert",
773
+ "resource_path": "/v1/collections/list",
774
774
  "request_type": request.__class__.__name__,
775
- "response_type": "UpsertEntitiesResponse"
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 create_index_async(self, request):
817
- r"""创建索引
816
+ def list_jobs_async(self, request):
817
+ r"""查询任务列表
818
818
 
819
- 在指定的collection中,按照参数创建索引。
819
+ 根据指定条件查询列举任务的详情。
820
820
 
821
821
  Please refer to HUAWEI cloud API Explorer for details.
822
822
 
823
823
 
824
- :param request: Request instance for CreateIndex
825
- :type request: :class:`huaweicloudsdkdwr.v1.CreateIndexRequest`
826
- :rtype: :class:`huaweicloudsdkdwr.v1.CreateIndexResponse`
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._create_index_http_info(request)
828
+ http_info = self._list_jobs_http_info(request)
829
829
  return self._call_api(**http_info)
830
830
 
831
- def create_index_async_invoker(self, request):
832
- http_info = self._create_index_http_info(request)
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 _create_index_http_info(self, request):
835
+ def _list_jobs_http_info(self, request):
836
836
  http_info = {
837
837
  "method": "POST",
838
- "resource_path": "/v1/indexes/create",
838
+ "resource_path": "/v1/jobs/list",
839
839
  "request_type": request.__class__.__name__,
840
- "response_type": "CreateIndexResponse"
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 delete_index_async(self, request):
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 DeleteIndex
890
- :type request: :class:`huaweicloudsdkdwr.v1.DeleteIndexRequest`
891
- :rtype: :class:`huaweicloudsdkdwr.v1.DeleteIndexResponse`
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._delete_index_http_info(request)
901
+ http_info = self._list_stores_http_info(request)
894
902
  return self._call_api(**http_info)
895
903
 
896
- def delete_index_async_invoker(self, request):
897
- http_info = self._delete_index_http_info(request)
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 _delete_index_http_info(self, request):
908
+ def _list_stores_http_info(self, request):
901
909
  http_info = {
902
910
  "method": "POST",
903
- "resource_path": "/v1/indexes/delete",
911
+ "resource_path": "/v1/stores/list",
904
912
  "request_type": request.__class__.__name__,
905
- "response_type": "DeleteIndexResponse"
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 describe_index_async(self, request):
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 DescribeIndex
955
- :type request: :class:`huaweicloudsdkdwr.v1.DescribeIndexRequest`
956
- :rtype: :class:`huaweicloudsdkdwr.v1.DescribeIndexResponse`
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._describe_index_http_info(request)
964
+ http_info = self._load_collection_http_info(request)
959
965
  return self._call_api(**http_info)
960
966
 
961
- def describe_index_async_invoker(self, request):
962
- http_info = self._describe_index_http_info(request)
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 _describe_index_http_info(self, request):
971
+ def _load_collection_http_info(self, request):
966
972
  http_info = {
967
973
  "method": "POST",
968
- "resource_path": "/v1/indexes/describe",
974
+ "resource_path": "/v1/collections/load",
969
975
  "request_type": request.__class__.__name__,
970
- "response_type": "DescribeIndexResponse"
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 get_progress_async(self, request):
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 GetProgress
1020
- :type request: :class:`huaweicloudsdkdwr.v1.GetProgressRequest`
1021
- :rtype: :class:`huaweicloudsdkdwr.v1.GetProgressResponse`
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._get_progress_http_info(request)
1029
+ http_info = self._release_collection_http_info(request)
1024
1030
  return self._call_api(**http_info)
1025
1031
 
1026
- def get_progress_async_invoker(self, request):
1027
- http_info = self._get_progress_http_info(request)
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 _get_progress_http_info(self, request):
1036
+ def _release_collection_http_info(self, request):
1031
1037
  http_info = {
1032
1038
  "method": "POST",
1033
- "resource_path": "/v1/indexes/get-progress",
1039
+ "resource_path": "/v1/collections/release",
1034
1040
  "request_type": request.__class__.__name__,
1035
- "response_type": "GetProgressResponse"
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 describe_job_async(self, request):
1077
- r"""获取指定ID任务信息
1082
+ def delete_entities_async(self, request):
1083
+ r"""删除向量
1078
1084
 
1079
- 根据指定的jobid查询任务信息。用于在创建和删除知识仓实例操作执行成功后,通过响应中返回的job_id,来查询创建和删除知识仓实例执行的具体结果。
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 DescribeJob
1085
- :type request: :class:`huaweicloudsdkdwr.v1.DescribeJobRequest`
1086
- :rtype: :class:`huaweicloudsdkdwr.v1.DescribeJobResponse`
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._describe_job_http_info(request)
1094
+ http_info = self._delete_entities_http_info(request)
1089
1095
  return self._call_api(**http_info)
1090
1096
 
1091
- def describe_job_async_invoker(self, request):
1092
- http_info = self._describe_job_http_info(request)
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 _describe_job_http_info(self, request):
1101
+ def _delete_entities_http_info(self, request):
1096
1102
  http_info = {
1097
1103
  "method": "POST",
1098
- "resource_path": "/v1/jobs/describe",
1104
+ "resource_path": "/v1/entities/delete",
1099
1105
  "request_type": request.__class__.__name__,
1100
- "response_type": "DescribeJobResponse"
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 list_jobs_async(self, request):
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 ListJobs
1150
- :type request: :class:`huaweicloudsdkdwr.v1.ListJobsRequest`
1151
- :rtype: :class:`huaweicloudsdkdwr.v1.ListJobsResponse`
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._list_jobs_http_info(request)
1159
+ http_info = self._hybrid_search_http_info(request)
1154
1160
  return self._call_api(**http_info)
1155
1161
 
1156
- def list_jobs_async_invoker(self, request):
1157
- http_info = self._list_jobs_http_info(request)
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 _list_jobs_http_info(self, request):
1166
+ def _hybrid_search_http_info(self, request):
1161
1167
  http_info = {
1162
1168
  "method": "POST",
1163
- "resource_path": "/v1/jobs/list",
1169
+ "resource_path": "/v1/entities/hybrid-search",
1164
1170
  "request_type": request.__class__.__name__,
1165
- "response_type": "ListJobsResponse"
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 create_store_async(self, request):
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 CreateStore
1223
- :type request: :class:`huaweicloudsdkdwr.v1.CreateStoreRequest`
1224
- :rtype: :class:`huaweicloudsdkdwr.v1.CreateStoreResponse`
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._create_store_http_info(request)
1224
+ http_info = self._insert_entities_http_info(request)
1227
1225
  return self._call_api(**http_info)
1228
1226
 
1229
- def create_store_async_invoker(self, request):
1230
- http_info = self._create_store_http_info(request)
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 _create_store_http_info(self, request):
1231
+ def _insert_entities_http_info(self, request):
1234
1232
  http_info = {
1235
1233
  "method": "POST",
1236
- "resource_path": "/v1/stores/create",
1234
+ "resource_path": "/v1/entities/insert",
1237
1235
  "request_type": request.__class__.__name__,
1238
- "response_type": "CreateStoreResponse"
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 delete_store_async(self, request):
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 DeleteStore
1288
- :type request: :class:`huaweicloudsdkdwr.v1.DeleteStoreRequest`
1289
- :rtype: :class:`huaweicloudsdkdwr.v1.DeleteStoreResponse`
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._delete_store_http_info(request)
1289
+ http_info = self._query_entities_http_info(request)
1292
1290
  return self._call_api(**http_info)
1293
1291
 
1294
- def delete_store_async_invoker(self, request):
1295
- http_info = self._delete_store_http_info(request)
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 _delete_store_http_info(self, request):
1296
+ def _query_entities_http_info(self, request):
1299
1297
  http_info = {
1300
1298
  "method": "POST",
1301
- "resource_path": "/v1/stores/delete",
1299
+ "resource_path": "/v1/entities/query",
1302
1300
  "request_type": request.__class__.__name__,
1303
- "response_type": "DeleteStoreResponse"
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 describe_store_async(self, request):
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 DescribeStore
1353
- :type request: :class:`huaweicloudsdkdwr.v1.DescribeStoreRequest`
1354
- :rtype: :class:`huaweicloudsdkdwr.v1.DescribeStoreResponse`
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._describe_store_http_info(request)
1354
+ http_info = self._search_entities_http_info(request)
1357
1355
  return self._call_api(**http_info)
1358
1356
 
1359
- def describe_store_async_invoker(self, request):
1360
- http_info = self._describe_store_http_info(request)
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 _describe_store_http_info(self, request):
1361
+ def _search_entities_http_info(self, request):
1364
1362
  http_info = {
1365
1363
  "method": "POST",
1366
- "resource_path": "/v1/stores/describe",
1364
+ "resource_path": "/v1/entities/search",
1367
1365
  "request_type": request.__class__.__name__,
1368
- "response_type": "DescribeStoreResponse"
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 list_stores_async(self, request):
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 ListStores
1418
- :type request: :class:`huaweicloudsdkdwr.v1.ListStoresRequest`
1419
- :rtype: :class:`huaweicloudsdkdwr.v1.ListStoresResponse`
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._list_stores_http_info(request)
1419
+ http_info = self._upsert_entities_http_info(request)
1422
1420
  return self._call_api(**http_info)
1423
1421
 
1424
- def list_stores_async_invoker(self, request):
1425
- http_info = self._list_stores_http_info(request)
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 _list_stores_http_info(self, request):
1426
+ def _upsert_entities_http_info(self, request):
1429
1427
  http_info = {
1430
1428
  "method": "POST",
1431
- "resource_path": "/v1/stores/list",
1429
+ "resource_path": "/v1/entities/upsert",
1432
1430
  "request_type": request.__class__.__name__,
1433
- "response_type": "ListStoresResponse"
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