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.

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.154.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/METADATA +2 -2
  70. {huaweicloudsdkdwr-3.1.154.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.154.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/LICENSE +0 -0
  73. {huaweicloudsdkdwr-3.1.154.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/WHEEL +0 -0
  74. {huaweicloudsdkdwr-3.1.154.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/top_level.txt +0 -0
@@ -98,31 +98,31 @@ class DwrClient(Client):
98
98
 
99
99
  return http_info
100
100
 
101
- def delete_collection(self, request):
102
- r"""删除collection
101
+ def create_index(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
- :param request: Request instance for DeleteCollection
109
- :type request: :class:`huaweicloudsdkdwr.v1.DeleteCollectionRequest`
110
- :rtype: :class:`huaweicloudsdkdwr.v1.DeleteCollectionResponse`
108
+ :param request: Request instance for CreateIndex
109
+ :type request: :class:`huaweicloudsdkdwr.v1.CreateIndexRequest`
110
+ :rtype: :class:`huaweicloudsdkdwr.v1.CreateIndexResponse`
111
111
  """
112
- http_info = self._delete_collection_http_info(request)
112
+ http_info = self._create_index_http_info(request)
113
113
  return self._call_api(**http_info)
114
114
 
115
- def delete_collection_invoker(self, request):
116
- http_info = self._delete_collection_http_info(request)
115
+ def create_index_invoker(self, request):
116
+ http_info = self._create_index_http_info(request)
117
117
  return SyncInvoker(self, http_info)
118
118
 
119
119
  @classmethod
120
- def _delete_collection_http_info(cls, request):
120
+ def _create_index_http_info(cls, 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 DwrClient(Client):
163
163
 
164
164
  return http_info
165
165
 
166
- def describe_collection(self, request):
167
- r"""查询collection
166
+ def create_store(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
- :param request: Request instance for DescribeCollection
174
- :type request: :class:`huaweicloudsdkdwr.v1.DescribeCollectionRequest`
175
- :rtype: :class:`huaweicloudsdkdwr.v1.DescribeCollectionResponse`
173
+ :param request: Request instance for CreateStore
174
+ :type request: :class:`huaweicloudsdkdwr.v1.CreateStoreRequest`
175
+ :rtype: :class:`huaweicloudsdkdwr.v1.CreateStoreResponse`
176
176
  """
177
- http_info = self._describe_collection_http_info(request)
177
+ http_info = self._create_store_http_info(request)
178
178
  return self._call_api(**http_info)
179
179
 
180
- def describe_collection_invoker(self, request):
181
- http_info = self._describe_collection_http_info(request)
180
+ def create_store_invoker(self, request):
181
+ http_info = self._create_store_http_info(request)
182
182
  return SyncInvoker(self, http_info)
183
183
 
184
184
  @classmethod
185
- def _describe_collection_http_info(cls, request):
185
+ def _create_store_http_info(cls, 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 DwrClient(Client):
228
228
 
229
229
  return http_info
230
230
 
231
- def list_collections(self, request):
232
- r"""列举collection
231
+ def delete_collection(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
- :param request: Request instance for ListCollections
239
- :type request: :class:`huaweicloudsdkdwr.v1.ListCollectionsRequest`
240
- :rtype: :class:`huaweicloudsdkdwr.v1.ListCollectionsResponse`
238
+ :param request: Request instance for DeleteCollection
239
+ :type request: :class:`huaweicloudsdkdwr.v1.DeleteCollectionRequest`
240
+ :rtype: :class:`huaweicloudsdkdwr.v1.DeleteCollectionResponse`
241
241
  """
242
- http_info = self._list_collections_http_info(request)
242
+ http_info = self._delete_collection_http_info(request)
243
243
  return self._call_api(**http_info)
244
244
 
245
- def list_collections_invoker(self, request):
246
- http_info = self._list_collections_http_info(request)
245
+ def delete_collection_invoker(self, request):
246
+ http_info = self._delete_collection_http_info(request)
247
247
  return SyncInvoker(self, http_info)
248
248
 
249
249
  @classmethod
250
- def _list_collections_http_info(cls, request):
250
+ def _delete_collection_http_info(cls, 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 DwrClient(Client):
293
293
 
294
294
  return http_info
295
295
 
296
- def load_collection(self, request):
297
- r"""加载collection
296
+ def delete_index(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
- :param request: Request instance for LoadCollection
304
- :type request: :class:`huaweicloudsdkdwr.v1.LoadCollectionRequest`
305
- :rtype: :class:`huaweicloudsdkdwr.v1.LoadCollectionResponse`
303
+ :param request: Request instance for DeleteIndex
304
+ :type request: :class:`huaweicloudsdkdwr.v1.DeleteIndexRequest`
305
+ :rtype: :class:`huaweicloudsdkdwr.v1.DeleteIndexResponse`
306
306
  """
307
- http_info = self._load_collection_http_info(request)
307
+ http_info = self._delete_index_http_info(request)
308
308
  return self._call_api(**http_info)
309
309
 
310
- def load_collection_invoker(self, request):
311
- http_info = self._load_collection_http_info(request)
310
+ def delete_index_invoker(self, request):
311
+ http_info = self._delete_index_http_info(request)
312
312
  return SyncInvoker(self, http_info)
313
313
 
314
314
  @classmethod
315
- def _load_collection_http_info(cls, request):
315
+ def _delete_index_http_info(cls, 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 DwrClient(Client):
358
358
 
359
359
  return http_info
360
360
 
361
- def release_collection(self, request):
362
- r"""卸载collection
361
+ def delete_store(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
- :param request: Request instance for ReleaseCollection
369
- :type request: :class:`huaweicloudsdkdwr.v1.ReleaseCollectionRequest`
370
- :rtype: :class:`huaweicloudsdkdwr.v1.ReleaseCollectionResponse`
368
+ :param request: Request instance for DeleteStore
369
+ :type request: :class:`huaweicloudsdkdwr.v1.DeleteStoreRequest`
370
+ :rtype: :class:`huaweicloudsdkdwr.v1.DeleteStoreResponse`
371
371
  """
372
- http_info = self._release_collection_http_info(request)
372
+ http_info = self._delete_store_http_info(request)
373
373
  return self._call_api(**http_info)
374
374
 
375
- def release_collection_invoker(self, request):
376
- http_info = self._release_collection_http_info(request)
375
+ def delete_store_invoker(self, request):
376
+ http_info = self._delete_store_http_info(request)
377
377
  return SyncInvoker(self, http_info)
378
378
 
379
379
  @classmethod
380
- def _release_collection_http_info(cls, request):
380
+ def _delete_store_http_info(cls, 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 DwrClient(Client):
423
423
 
424
424
  return http_info
425
425
 
426
- def delete_entities(self, request):
427
- r"""删除Entity
426
+ def describe_collection(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
- :param request: Request instance for DeleteEntities
434
- :type request: :class:`huaweicloudsdkdwr.v1.DeleteEntitiesRequest`
435
- :rtype: :class:`huaweicloudsdkdwr.v1.DeleteEntitiesResponse`
433
+ :param request: Request instance for DescribeCollection
434
+ :type request: :class:`huaweicloudsdkdwr.v1.DescribeCollectionRequest`
435
+ :rtype: :class:`huaweicloudsdkdwr.v1.DescribeCollectionResponse`
436
436
  """
437
- http_info = self._delete_entities_http_info(request)
437
+ http_info = self._describe_collection_http_info(request)
438
438
  return self._call_api(**http_info)
439
439
 
440
- def delete_entities_invoker(self, request):
441
- http_info = self._delete_entities_http_info(request)
440
+ def describe_collection_invoker(self, request):
441
+ http_info = self._describe_collection_http_info(request)
442
442
  return SyncInvoker(self, http_info)
443
443
 
444
444
  @classmethod
445
- def _delete_entities_http_info(cls, request):
445
+ def _describe_collection_http_info(cls, 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 DwrClient(Client):
488
488
 
489
489
  return http_info
490
490
 
491
- def hybrid_search(self, request):
492
- r"""混合搜索
491
+ def describe_index(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
- :param request: Request instance for HybridSearch
499
- :type request: :class:`huaweicloudsdkdwr.v1.HybridSearchRequest`
500
- :rtype: :class:`huaweicloudsdkdwr.v1.HybridSearchResponse`
498
+ :param request: Request instance for DescribeIndex
499
+ :type request: :class:`huaweicloudsdkdwr.v1.DescribeIndexRequest`
500
+ :rtype: :class:`huaweicloudsdkdwr.v1.DescribeIndexResponse`
501
501
  """
502
- http_info = self._hybrid_search_http_info(request)
502
+ http_info = self._describe_index_http_info(request)
503
503
  return self._call_api(**http_info)
504
504
 
505
- def hybrid_search_invoker(self, request):
506
- http_info = self._hybrid_search_http_info(request)
505
+ def describe_index_invoker(self, request):
506
+ http_info = self._describe_index_http_info(request)
507
507
  return SyncInvoker(self, http_info)
508
508
 
509
509
  @classmethod
510
- def _hybrid_search_http_info(cls, request):
510
+ def _describe_index_http_info(cls, 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 DwrClient(Client):
553
553
 
554
554
  return http_info
555
555
 
556
- def insert_entities(self, request):
557
- r"""插入entity
556
+ def describe_job(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
- :param request: Request instance for InsertEntities
564
- :type request: :class:`huaweicloudsdkdwr.v1.InsertEntitiesRequest`
565
- :rtype: :class:`huaweicloudsdkdwr.v1.InsertEntitiesResponse`
563
+ :param request: Request instance for DescribeJob
564
+ :type request: :class:`huaweicloudsdkdwr.v1.DescribeJobRequest`
565
+ :rtype: :class:`huaweicloudsdkdwr.v1.DescribeJobResponse`
566
566
  """
567
- http_info = self._insert_entities_http_info(request)
567
+ http_info = self._describe_job_http_info(request)
568
568
  return self._call_api(**http_info)
569
569
 
570
- def insert_entities_invoker(self, request):
571
- http_info = self._insert_entities_http_info(request)
570
+ def describe_job_invoker(self, request):
571
+ http_info = self._describe_job_http_info(request)
572
572
  return SyncInvoker(self, http_info)
573
573
 
574
574
  @classmethod
575
- def _insert_entities_http_info(cls, request):
575
+ def _describe_job_http_info(cls, 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 DwrClient(Client):
618
618
 
619
619
  return http_info
620
620
 
621
- def query_entities(self, request):
622
- r"""标量查询
621
+ def describe_store(self, request):
622
+ r"""查询知识仓实例
623
623
 
624
- 接口用于精确查找与查询条件完全匹配的向量,此操作使用指定的布尔表达式对标量字段进行筛选。
624
+ 查询指定知识仓实例的详细信息。
625
625
 
626
626
  Please refer to HUAWEI cloud API Explorer for details.
627
627
 
628
- :param request: Request instance for QueryEntities
629
- :type request: :class:`huaweicloudsdkdwr.v1.QueryEntitiesRequest`
630
- :rtype: :class:`huaweicloudsdkdwr.v1.QueryEntitiesResponse`
628
+ :param request: Request instance for DescribeStore
629
+ :type request: :class:`huaweicloudsdkdwr.v1.DescribeStoreRequest`
630
+ :rtype: :class:`huaweicloudsdkdwr.v1.DescribeStoreResponse`
631
631
  """
632
- http_info = self._query_entities_http_info(request)
632
+ http_info = self._describe_store_http_info(request)
633
633
  return self._call_api(**http_info)
634
634
 
635
- def query_entities_invoker(self, request):
636
- http_info = self._query_entities_http_info(request)
635
+ def describe_store_invoker(self, request):
636
+ http_info = self._describe_store_http_info(request)
637
637
  return SyncInvoker(self, http_info)
638
638
 
639
639
  @classmethod
640
- def _query_entities_http_info(cls, request):
640
+ def _describe_store_http_info(cls, 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 DwrClient(Client):
683
683
 
684
684
  return http_info
685
685
 
686
- def search_entities(self, request):
687
- r"""向量查询
686
+ def get_progress(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
- :param request: Request instance for SearchEntities
694
- :type request: :class:`huaweicloudsdkdwr.v1.SearchEntitiesRequest`
695
- :rtype: :class:`huaweicloudsdkdwr.v1.SearchEntitiesResponse`
693
+ :param request: Request instance for GetProgress
694
+ :type request: :class:`huaweicloudsdkdwr.v1.GetProgressRequest`
695
+ :rtype: :class:`huaweicloudsdkdwr.v1.GetProgressResponse`
696
696
  """
697
- http_info = self._search_entities_http_info(request)
697
+ http_info = self._get_progress_http_info(request)
698
698
  return self._call_api(**http_info)
699
699
 
700
- def search_entities_invoker(self, request):
701
- http_info = self._search_entities_http_info(request)
700
+ def get_progress_invoker(self, request):
701
+ http_info = self._get_progress_http_info(request)
702
702
  return SyncInvoker(self, http_info)
703
703
 
704
704
  @classmethod
705
- def _search_entities_http_info(cls, request):
705
+ def _get_progress_http_info(cls, 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 DwrClient(Client):
748
748
 
749
749
  return http_info
750
750
 
751
- def upsert_entities(self, request):
752
- r"""更新entity
751
+ def list_collections(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
- :param request: Request instance for UpsertEntities
759
- :type request: :class:`huaweicloudsdkdwr.v1.UpsertEntitiesRequest`
760
- :rtype: :class:`huaweicloudsdkdwr.v1.UpsertEntitiesResponse`
758
+ :param request: Request instance for ListCollections
759
+ :type request: :class:`huaweicloudsdkdwr.v1.ListCollectionsRequest`
760
+ :rtype: :class:`huaweicloudsdkdwr.v1.ListCollectionsResponse`
761
761
  """
762
- http_info = self._upsert_entities_http_info(request)
762
+ http_info = self._list_collections_http_info(request)
763
763
  return self._call_api(**http_info)
764
764
 
765
- def upsert_entities_invoker(self, request):
766
- http_info = self._upsert_entities_http_info(request)
765
+ def list_collections_invoker(self, request):
766
+ http_info = self._list_collections_http_info(request)
767
767
  return SyncInvoker(self, http_info)
768
768
 
769
769
  @classmethod
770
- def _upsert_entities_http_info(cls, request):
770
+ def _list_collections_http_info(cls, 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 DwrClient(Client):
813
813
 
814
814
  return http_info
815
815
 
816
- def create_index(self, request):
817
- r"""创建索引
816
+ def list_jobs(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
- :param request: Request instance for CreateIndex
824
- :type request: :class:`huaweicloudsdkdwr.v1.CreateIndexRequest`
825
- :rtype: :class:`huaweicloudsdkdwr.v1.CreateIndexResponse`
823
+ :param request: Request instance for ListJobs
824
+ :type request: :class:`huaweicloudsdkdwr.v1.ListJobsRequest`
825
+ :rtype: :class:`huaweicloudsdkdwr.v1.ListJobsResponse`
826
826
  """
827
- http_info = self._create_index_http_info(request)
827
+ http_info = self._list_jobs_http_info(request)
828
828
  return self._call_api(**http_info)
829
829
 
830
- def create_index_invoker(self, request):
831
- http_info = self._create_index_http_info(request)
830
+ def list_jobs_invoker(self, request):
831
+ http_info = self._list_jobs_http_info(request)
832
832
  return SyncInvoker(self, http_info)
833
833
 
834
834
  @classmethod
835
- def _create_index_http_info(cls, request):
835
+ def _list_jobs_http_info(cls, 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 DwrClient(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 DwrClient(Client):
878
886
 
879
887
  return http_info
880
888
 
881
- def delete_index(self, request):
882
- r"""删除索引
889
+ def list_stores(self, request):
890
+ r"""列举知识仓实例
883
891
 
884
- 删除指定索引。
892
+ 列举租户所有的知识仓实例。
885
893
 
886
894
  Please refer to HUAWEI cloud API Explorer for details.
887
895
 
888
- :param request: Request instance for DeleteIndex
889
- :type request: :class:`huaweicloudsdkdwr.v1.DeleteIndexRequest`
890
- :rtype: :class:`huaweicloudsdkdwr.v1.DeleteIndexResponse`
896
+ :param request: Request instance for ListStores
897
+ :type request: :class:`huaweicloudsdkdwr.v1.ListStoresRequest`
898
+ :rtype: :class:`huaweicloudsdkdwr.v1.ListStoresResponse`
891
899
  """
892
- http_info = self._delete_index_http_info(request)
900
+ http_info = self._list_stores_http_info(request)
893
901
  return self._call_api(**http_info)
894
902
 
895
- def delete_index_invoker(self, request):
896
- http_info = self._delete_index_http_info(request)
903
+ def list_stores_invoker(self, request):
904
+ http_info = self._list_stores_http_info(request)
897
905
  return SyncInvoker(self, http_info)
898
906
 
899
907
  @classmethod
900
- def _delete_index_http_info(cls, request):
908
+ def _list_stores_http_info(cls, 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 DwrClient(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 DwrClient(Client):
943
949
 
944
950
  return http_info
945
951
 
946
- def describe_index(self, request):
947
- r"""查询索引
952
+ def load_collection(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
- :param request: Request instance for DescribeIndex
954
- :type request: :class:`huaweicloudsdkdwr.v1.DescribeIndexRequest`
955
- :rtype: :class:`huaweicloudsdkdwr.v1.DescribeIndexResponse`
959
+ :param request: Request instance for LoadCollection
960
+ :type request: :class:`huaweicloudsdkdwr.v1.LoadCollectionRequest`
961
+ :rtype: :class:`huaweicloudsdkdwr.v1.LoadCollectionResponse`
956
962
  """
957
- http_info = self._describe_index_http_info(request)
963
+ http_info = self._load_collection_http_info(request)
958
964
  return self._call_api(**http_info)
959
965
 
960
- def describe_index_invoker(self, request):
961
- http_info = self._describe_index_http_info(request)
966
+ def load_collection_invoker(self, request):
967
+ http_info = self._load_collection_http_info(request)
962
968
  return SyncInvoker(self, http_info)
963
969
 
964
970
  @classmethod
965
- def _describe_index_http_info(cls, request):
971
+ def _load_collection_http_info(cls, 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 DwrClient(Client):
1008
1014
 
1009
1015
  return http_info
1010
1016
 
1011
- def get_progress(self, request):
1012
- r"""查询索引构建进度
1017
+ def release_collection(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
- :param request: Request instance for GetProgress
1019
- :type request: :class:`huaweicloudsdkdwr.v1.GetProgressRequest`
1020
- :rtype: :class:`huaweicloudsdkdwr.v1.GetProgressResponse`
1024
+ :param request: Request instance for ReleaseCollection
1025
+ :type request: :class:`huaweicloudsdkdwr.v1.ReleaseCollectionRequest`
1026
+ :rtype: :class:`huaweicloudsdkdwr.v1.ReleaseCollectionResponse`
1021
1027
  """
1022
- http_info = self._get_progress_http_info(request)
1028
+ http_info = self._release_collection_http_info(request)
1023
1029
  return self._call_api(**http_info)
1024
1030
 
1025
- def get_progress_invoker(self, request):
1026
- http_info = self._get_progress_http_info(request)
1031
+ def release_collection_invoker(self, request):
1032
+ http_info = self._release_collection_http_info(request)
1027
1033
  return SyncInvoker(self, http_info)
1028
1034
 
1029
1035
  @classmethod
1030
- def _get_progress_http_info(cls, request):
1036
+ def _release_collection_http_info(cls, 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 DwrClient(Client):
1073
1079
 
1074
1080
  return http_info
1075
1081
 
1076
- def describe_job(self, request):
1077
- r"""获取指定ID任务信息
1082
+ def delete_entities(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
- :param request: Request instance for DescribeJob
1084
- :type request: :class:`huaweicloudsdkdwr.v1.DescribeJobRequest`
1085
- :rtype: :class:`huaweicloudsdkdwr.v1.DescribeJobResponse`
1089
+ :param request: Request instance for DeleteEntities
1090
+ :type request: :class:`huaweicloudsdkdwr.v1.DeleteEntitiesRequest`
1091
+ :rtype: :class:`huaweicloudsdkdwr.v1.DeleteEntitiesResponse`
1086
1092
  """
1087
- http_info = self._describe_job_http_info(request)
1093
+ http_info = self._delete_entities_http_info(request)
1088
1094
  return self._call_api(**http_info)
1089
1095
 
1090
- def describe_job_invoker(self, request):
1091
- http_info = self._describe_job_http_info(request)
1096
+ def delete_entities_invoker(self, request):
1097
+ http_info = self._delete_entities_http_info(request)
1092
1098
  return SyncInvoker(self, http_info)
1093
1099
 
1094
1100
  @classmethod
1095
- def _describe_job_http_info(cls, request):
1101
+ def _delete_entities_http_info(cls, 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 DwrClient(Client):
1138
1144
 
1139
1145
  return http_info
1140
1146
 
1141
- def list_jobs(self, request):
1142
- r"""查询任务列表
1147
+ def hybrid_search(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
- :param request: Request instance for ListJobs
1149
- :type request: :class:`huaweicloudsdkdwr.v1.ListJobsRequest`
1150
- :rtype: :class:`huaweicloudsdkdwr.v1.ListJobsResponse`
1154
+ :param request: Request instance for HybridSearch
1155
+ :type request: :class:`huaweicloudsdkdwr.v1.HybridSearchRequest`
1156
+ :rtype: :class:`huaweicloudsdkdwr.v1.HybridSearchResponse`
1151
1157
  """
1152
- http_info = self._list_jobs_http_info(request)
1158
+ http_info = self._hybrid_search_http_info(request)
1153
1159
  return self._call_api(**http_info)
1154
1160
 
1155
- def list_jobs_invoker(self, request):
1156
- http_info = self._list_jobs_http_info(request)
1161
+ def hybrid_search_invoker(self, request):
1162
+ http_info = self._hybrid_search_http_info(request)
1157
1163
  return SyncInvoker(self, http_info)
1158
1164
 
1159
1165
  @classmethod
1160
- def _list_jobs_http_info(cls, request):
1166
+ def _hybrid_search_http_info(cls, 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 DwrClient(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 DwrClient(Client):
1211
1209
 
1212
1210
  return http_info
1213
1211
 
1214
- def create_store(self, request):
1215
- r"""创建知识仓实例
1212
+ def insert_entities(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
- :param request: Request instance for CreateStore
1222
- :type request: :class:`huaweicloudsdkdwr.v1.CreateStoreRequest`
1223
- :rtype: :class:`huaweicloudsdkdwr.v1.CreateStoreResponse`
1219
+ :param request: Request instance for InsertEntities
1220
+ :type request: :class:`huaweicloudsdkdwr.v1.InsertEntitiesRequest`
1221
+ :rtype: :class:`huaweicloudsdkdwr.v1.InsertEntitiesResponse`
1224
1222
  """
1225
- http_info = self._create_store_http_info(request)
1223
+ http_info = self._insert_entities_http_info(request)
1226
1224
  return self._call_api(**http_info)
1227
1225
 
1228
- def create_store_invoker(self, request):
1229
- http_info = self._create_store_http_info(request)
1226
+ def insert_entities_invoker(self, request):
1227
+ http_info = self._insert_entities_http_info(request)
1230
1228
  return SyncInvoker(self, http_info)
1231
1229
 
1232
1230
  @classmethod
1233
- def _create_store_http_info(cls, request):
1231
+ def _insert_entities_http_info(cls, 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 DwrClient(Client):
1276
1274
 
1277
1275
  return http_info
1278
1276
 
1279
- def delete_store(self, request):
1280
- r"""删除知识仓实例
1277
+ def query_entities(self, request):
1278
+ r"""标量查询
1281
1279
 
1282
- 删除指定的知识仓实例。
1280
+ 接口用于精确查找与查询条件完全匹配的向量,此操作使用指定的布尔表达式对标量字段进行筛选。
1283
1281
 
1284
1282
  Please refer to HUAWEI cloud API Explorer for details.
1285
1283
 
1286
- :param request: Request instance for DeleteStore
1287
- :type request: :class:`huaweicloudsdkdwr.v1.DeleteStoreRequest`
1288
- :rtype: :class:`huaweicloudsdkdwr.v1.DeleteStoreResponse`
1284
+ :param request: Request instance for QueryEntities
1285
+ :type request: :class:`huaweicloudsdkdwr.v1.QueryEntitiesRequest`
1286
+ :rtype: :class:`huaweicloudsdkdwr.v1.QueryEntitiesResponse`
1289
1287
  """
1290
- http_info = self._delete_store_http_info(request)
1288
+ http_info = self._query_entities_http_info(request)
1291
1289
  return self._call_api(**http_info)
1292
1290
 
1293
- def delete_store_invoker(self, request):
1294
- http_info = self._delete_store_http_info(request)
1291
+ def query_entities_invoker(self, request):
1292
+ http_info = self._query_entities_http_info(request)
1295
1293
  return SyncInvoker(self, http_info)
1296
1294
 
1297
1295
  @classmethod
1298
- def _delete_store_http_info(cls, request):
1296
+ def _query_entities_http_info(cls, 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 DwrClient(Client):
1341
1339
 
1342
1340
  return http_info
1343
1341
 
1344
- def describe_store(self, request):
1345
- r"""查询知识仓实例
1342
+ def search_entities(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
- :param request: Request instance for DescribeStore
1352
- :type request: :class:`huaweicloudsdkdwr.v1.DescribeStoreRequest`
1353
- :rtype: :class:`huaweicloudsdkdwr.v1.DescribeStoreResponse`
1349
+ :param request: Request instance for SearchEntities
1350
+ :type request: :class:`huaweicloudsdkdwr.v1.SearchEntitiesRequest`
1351
+ :rtype: :class:`huaweicloudsdkdwr.v1.SearchEntitiesResponse`
1354
1352
  """
1355
- http_info = self._describe_store_http_info(request)
1353
+ http_info = self._search_entities_http_info(request)
1356
1354
  return self._call_api(**http_info)
1357
1355
 
1358
- def describe_store_invoker(self, request):
1359
- http_info = self._describe_store_http_info(request)
1356
+ def search_entities_invoker(self, request):
1357
+ http_info = self._search_entities_http_info(request)
1360
1358
  return SyncInvoker(self, http_info)
1361
1359
 
1362
1360
  @classmethod
1363
- def _describe_store_http_info(cls, request):
1361
+ def _search_entities_http_info(cls, 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 DwrClient(Client):
1406
1404
 
1407
1405
  return http_info
1408
1406
 
1409
- def list_stores(self, request):
1410
- r"""列举知识仓实例
1407
+ def upsert_entities(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
- :param request: Request instance for ListStores
1417
- :type request: :class:`huaweicloudsdkdwr.v1.ListStoresRequest`
1418
- :rtype: :class:`huaweicloudsdkdwr.v1.ListStoresResponse`
1414
+ :param request: Request instance for UpsertEntities
1415
+ :type request: :class:`huaweicloudsdkdwr.v1.UpsertEntitiesRequest`
1416
+ :rtype: :class:`huaweicloudsdkdwr.v1.UpsertEntitiesResponse`
1419
1417
  """
1420
- http_info = self._list_stores_http_info(request)
1418
+ http_info = self._upsert_entities_http_info(request)
1421
1419
  return self._call_api(**http_info)
1422
1420
 
1423
- def list_stores_invoker(self, request):
1424
- http_info = self._list_stores_http_info(request)
1421
+ def upsert_entities_invoker(self, request):
1422
+ http_info = self._upsert_entities_http_info(request)
1425
1423
  return SyncInvoker(self, http_info)
1426
1424
 
1427
1425
  @classmethod
1428
- def _list_stores_http_info(cls, request):
1426
+ def _upsert_entities_http_info(cls, 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 DwrClient(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