@alicloud/gpdb20160503 3.7.0 → 3.8.0

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.
Files changed (76) hide show
  1. package/dist/client.d.ts +76 -34
  2. package/dist/client.js +130 -34
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ChatWithKnowledgeBaseRequest.d.ts +68 -111
  5. package/dist/models/ChatWithKnowledgeBaseRequest.js +2 -0
  6. package/dist/models/ChatWithKnowledgeBaseRequest.js.map +1 -1
  7. package/dist/models/ChatWithKnowledgeBaseResponseBody.d.ts +45 -52
  8. package/dist/models/ChatWithKnowledgeBaseResponseBody.js.map +1 -1
  9. package/dist/models/ChatWithKnowledgeBaseShrinkRequest.d.ts +5 -6
  10. package/dist/models/ChatWithKnowledgeBaseShrinkRequest.js.map +1 -1
  11. package/dist/models/ChatWithKnowledgeBaseStreamRequest.d.ts +71 -87
  12. package/dist/models/ChatWithKnowledgeBaseStreamRequest.js +2 -0
  13. package/dist/models/ChatWithKnowledgeBaseStreamRequest.js.map +1 -1
  14. package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.d.ts +44 -50
  15. package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.js.map +1 -1
  16. package/dist/models/ChatWithKnowledgeBaseStreamShrinkRequest.d.ts +6 -6
  17. package/dist/models/PauseSaasServiceRequest.d.ts +26 -0
  18. package/dist/models/PauseSaasServiceRequest.js +60 -0
  19. package/dist/models/PauseSaasServiceRequest.js.map +1 -0
  20. package/dist/models/PauseSaasServiceResponse.d.ts +19 -0
  21. package/dist/models/PauseSaasServiceResponse.js +69 -0
  22. package/dist/models/PauseSaasServiceResponse.js.map +1 -0
  23. package/dist/models/PauseSaasServiceResponseBody.d.ts +23 -0
  24. package/dist/models/PauseSaasServiceResponseBody.js +60 -0
  25. package/dist/models/PauseSaasServiceResponseBody.js.map +1 -0
  26. package/dist/models/QueryContentAdvanceRequest.d.ts +57 -70
  27. package/dist/models/QueryContentAdvanceRequest.js +2 -0
  28. package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
  29. package/dist/models/QueryContentRequest.d.ts +57 -70
  30. package/dist/models/QueryContentRequest.js +2 -0
  31. package/dist/models/QueryContentRequest.js.map +1 -1
  32. package/dist/models/QueryContentResponseBody.d.ts +10 -11
  33. package/dist/models/QueryContentResponseBody.js.map +1 -1
  34. package/dist/models/QueryContentShrinkRequest.d.ts +52 -66
  35. package/dist/models/QueryContentShrinkRequest.js.map +1 -1
  36. package/dist/models/QueryKnowledgeBasesContentRequest.d.ts +62 -78
  37. package/dist/models/QueryKnowledgeBasesContentRequest.js +2 -0
  38. package/dist/models/QueryKnowledgeBasesContentRequest.js.map +1 -1
  39. package/dist/models/QueryKnowledgeBasesContentResponseBody.d.ts +11 -25
  40. package/dist/models/QueryKnowledgeBasesContentResponseBody.js.map +1 -1
  41. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.d.ts +11 -15
  42. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js.map +1 -1
  43. package/dist/models/ResumeSaasServiceRequest.d.ts +26 -0
  44. package/dist/models/ResumeSaasServiceRequest.js +60 -0
  45. package/dist/models/ResumeSaasServiceRequest.js.map +1 -0
  46. package/dist/models/ResumeSaasServiceResponse.d.ts +19 -0
  47. package/dist/models/ResumeSaasServiceResponse.js +69 -0
  48. package/dist/models/ResumeSaasServiceResponse.js.map +1 -0
  49. package/dist/models/ResumeSaasServiceResponseBody.d.ts +23 -0
  50. package/dist/models/ResumeSaasServiceResponseBody.js +60 -0
  51. package/dist/models/ResumeSaasServiceResponseBody.js.map +1 -0
  52. package/dist/models/model.d.ts +6 -0
  53. package/dist/models/model.js +16 -4
  54. package/dist/models/model.js.map +1 -1
  55. package/package.json +1 -1
  56. package/src/client.ts +138 -34
  57. package/src/models/ChatWithKnowledgeBaseRequest.ts +70 -111
  58. package/src/models/ChatWithKnowledgeBaseResponseBody.ts +45 -52
  59. package/src/models/ChatWithKnowledgeBaseShrinkRequest.ts +5 -6
  60. package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +73 -87
  61. package/src/models/ChatWithKnowledgeBaseStreamResponseBody.ts +44 -50
  62. package/src/models/ChatWithKnowledgeBaseStreamShrinkRequest.ts +6 -6
  63. package/src/models/PauseSaasServiceRequest.ts +41 -0
  64. package/src/models/PauseSaasServiceResponse.ts +40 -0
  65. package/src/models/PauseSaasServiceResponseBody.ts +38 -0
  66. package/src/models/QueryContentAdvanceRequest.ts +60 -71
  67. package/src/models/QueryContentRequest.ts +60 -71
  68. package/src/models/QueryContentResponseBody.ts +10 -11
  69. package/src/models/QueryContentShrinkRequest.ts +53 -67
  70. package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -78
  71. package/src/models/QueryKnowledgeBasesContentResponseBody.ts +11 -25
  72. package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +11 -15
  73. package/src/models/ResumeSaasServiceRequest.ts +41 -0
  74. package/src/models/ResumeSaasServiceResponse.ts +40 -0
  75. package/src/models/ResumeSaasServiceResponseBody.ts +38 -0
  76. package/src/models/model.ts +6 -0
package/src/client.ts CHANGED
@@ -568,14 +568,14 @@ export default class Client extends OpenApi {
568
568
  }
569
569
 
570
570
  /**
571
- * Combines a knowledge base with a large language model for intelligent Q&A.
571
+ * Provides intelligent Q&A services by combining knowledge bases with large models.
572
572
  *
573
573
  * @remarks
574
- * This API lets you interact with a large language model using specific knowledge base collections to ensure responses are grounded in their content. You can customize requests by configuring parameters, including the database instance ID, knowledge retrieval parameters, and model inference parameters. The API provides a default system prompt template and supports custom system prompts.
575
- * - **DBInstanceId**: Required. Specifies the ID of the database instance.
576
- * - **KnowledgeParams**: Optional. Contains parameters for knowledge retrieval, such as retrieval content and merge policies.
577
- * - **ModelParams**: Required. Contains parameters for model inference, such as the message list and the model name.
578
- * - **PromptTemplate**: Optional. Specifies a custom system prompt template.
574
+ * This API allows users to interact with a large model through specified knowledge base collections to obtain answers based on knowledge base content. It supports configuring various parameters to customize requests, including but not limited to database instance ID, knowledge retrieval parameters, model inference parameters, etc. Additionally, it provides a default system prompt template and allows users to customize system prompts.
575
+ * - **DBInstanceId**: Required. Specifies the database instance ID.
576
+ * - **KnowledgeParams**: Optional. Contains parameters related to knowledge retrieval, such as retrieval content, merge strategies, etc.
577
+ * - **ModelParams**: Required. Contains parameters related to model inference, such as message list, model name, etc.
578
+ * - **PromptTemplate**: Optional. Used to customize the system prompt template.
579
579
  *
580
580
  * @param tmpReq - ChatWithKnowledgeBaseRequest
581
581
  * @param runtime - runtime options for this request RuntimeOptions
@@ -640,14 +640,14 @@ export default class Client extends OpenApi {
640
640
  }
641
641
 
642
642
  /**
643
- * Combines a knowledge base with a large language model for intelligent Q&A.
643
+ * Provides intelligent Q&A services by combining knowledge bases with large models.
644
644
  *
645
645
  * @remarks
646
- * This API lets you interact with a large language model using specific knowledge base collections to ensure responses are grounded in their content. You can customize requests by configuring parameters, including the database instance ID, knowledge retrieval parameters, and model inference parameters. The API provides a default system prompt template and supports custom system prompts.
647
- * - **DBInstanceId**: Required. Specifies the ID of the database instance.
648
- * - **KnowledgeParams**: Optional. Contains parameters for knowledge retrieval, such as retrieval content and merge policies.
649
- * - **ModelParams**: Required. Contains parameters for model inference, such as the message list and the model name.
650
- * - **PromptTemplate**: Optional. Specifies a custom system prompt template.
646
+ * This API allows users to interact with a large model through specified knowledge base collections to obtain answers based on knowledge base content. It supports configuring various parameters to customize requests, including but not limited to database instance ID, knowledge retrieval parameters, model inference parameters, etc. Additionally, it provides a default system prompt template and allows users to customize system prompts.
647
+ * - **DBInstanceId**: Required. Specifies the database instance ID.
648
+ * - **KnowledgeParams**: Optional. Contains parameters related to knowledge retrieval, such as retrieval content, merge strategies, etc.
649
+ * - **ModelParams**: Required. Contains parameters related to model inference, such as message list, model name, etc.
650
+ * - **PromptTemplate**: Optional. Used to customize the system prompt template.
651
651
  *
652
652
  * @param request - ChatWithKnowledgeBaseRequest
653
653
  * @returns ChatWithKnowledgeBaseResponse
@@ -658,14 +658,14 @@ export default class Client extends OpenApi {
658
658
  }
659
659
 
660
660
  /**
661
- * This service combines a knowledge base with a large model to provide intelligent Q&A. You can access the streaming interface using Server-Sent Events (SSE) or the Java asynchronous SDK.
661
+ * Provides AI chat services by combining knowledge bases with large language models. This is a streaming API called through SSE or the Java asynchronous SDK.
662
662
  *
663
663
  * @remarks
664
- * Use this API to retrieve answers from a large language model based on content from a specified knowledge base. You can customize the request by configuring various parameters, including the database instance ID, knowledge retrieval parameters, and model inference parameters. The API includes a default system prompt template, and you can also specify a custom one.
665
- * - DBInstanceId: Required. The ID of the database instance.
666
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
667
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
668
- * - PromptTemplate: Optional. A custom system prompt template.
664
+ * This API allows you to interact with a large language model by using specified knowledge base collections to obtain answers based on knowledge base content. You can configure various parameters to customize requests, including but not limited to the database instance ID, knowledge retrieval parameters, and model inference parameters. A default system prompt template is provided, and you can also customize the system prompt.
665
+ * - DBInstanceId: Required. Specifies the database instance ID.
666
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
667
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
668
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
669
669
  *
670
670
  * @param tmpReq - ChatWithKnowledgeBaseStreamRequest
671
671
  * @param runtime - runtime options for this request RuntimeOptions
@@ -744,14 +744,14 @@ export default class Client extends OpenApi {
744
744
  }
745
745
 
746
746
  /**
747
- * This service combines a knowledge base with a large model to provide intelligent Q&A. You can access the streaming interface using Server-Sent Events (SSE) or the Java asynchronous SDK.
747
+ * Provides AI chat services by combining knowledge bases with large language models. This is a streaming API called through SSE or the Java asynchronous SDK.
748
748
  *
749
749
  * @remarks
750
- * Use this API to retrieve answers from a large language model based on content from a specified knowledge base. You can customize the request by configuring various parameters, including the database instance ID, knowledge retrieval parameters, and model inference parameters. The API includes a default system prompt template, and you can also specify a custom one.
751
- * - DBInstanceId: Required. The ID of the database instance.
752
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
753
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
754
- * - PromptTemplate: Optional. A custom system prompt template.
750
+ * This API allows you to interact with a large language model by using specified knowledge base collections to obtain answers based on knowledge base content. You can configure various parameters to customize requests, including but not limited to the database instance ID, knowledge retrieval parameters, and model inference parameters. A default system prompt template is provided, and you can also customize the system prompt.
751
+ * - DBInstanceId: Required. Specifies the database instance ID.
752
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
753
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
754
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
755
755
  *
756
756
  * @param tmpReq - ChatWithKnowledgeBaseStreamRequest
757
757
  * @param runtime - runtime options for this request RuntimeOptions
@@ -816,14 +816,14 @@ export default class Client extends OpenApi {
816
816
  }
817
817
 
818
818
  /**
819
- * This service combines a knowledge base with a large model to provide intelligent Q&A. You can access the streaming interface using Server-Sent Events (SSE) or the Java asynchronous SDK.
819
+ * Provides AI chat services by combining knowledge bases with large language models. This is a streaming API called through SSE or the Java asynchronous SDK.
820
820
  *
821
821
  * @remarks
822
- * Use this API to retrieve answers from a large language model based on content from a specified knowledge base. You can customize the request by configuring various parameters, including the database instance ID, knowledge retrieval parameters, and model inference parameters. The API includes a default system prompt template, and you can also specify a custom one.
823
- * - DBInstanceId: Required. The ID of the database instance.
824
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
825
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
826
- * - PromptTemplate: Optional. A custom system prompt template.
822
+ * This API allows you to interact with a large language model by using specified knowledge base collections to obtain answers based on knowledge base content. You can configure various parameters to customize requests, including but not limited to the database instance ID, knowledge retrieval parameters, and model inference parameters. A default system prompt template is provided, and you can also customize the system prompt.
823
+ * - DBInstanceId: Required. Specifies the database instance ID.
824
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
825
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
826
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
827
827
  *
828
828
  * @param request - ChatWithKnowledgeBaseStreamRequest
829
829
  * @returns ChatWithKnowledgeBaseStreamResponse
@@ -15381,6 +15381,58 @@ export default class Client extends OpenApi {
15381
15381
  return await this.pauseInstanceWithOptions(request, runtime);
15382
15382
  }
15383
15383
 
15384
+ /**
15385
+ * 暂停SaaS服务
15386
+ *
15387
+ * @remarks
15388
+ * 删除模型服务。
15389
+ *
15390
+ * @param request - PauseSaasServiceRequest
15391
+ * @param runtime - runtime options for this request RuntimeOptions
15392
+ * @returns PauseSaasServiceResponse
15393
+ */
15394
+ async pauseSaasServiceWithOptions(request: $_model.PauseSaasServiceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PauseSaasServiceResponse> {
15395
+ request.validate();
15396
+ let query = { };
15397
+ if (!$dara.isNull(request.regionId)) {
15398
+ query["RegionId"] = request.regionId;
15399
+ }
15400
+
15401
+ if (!$dara.isNull(request.serviceId)) {
15402
+ query["ServiceId"] = request.serviceId;
15403
+ }
15404
+
15405
+ let req = new $OpenApiUtil.OpenApiRequest({
15406
+ query: OpenApiUtil.query(query),
15407
+ });
15408
+ let params = new $OpenApiUtil.Params({
15409
+ action: "PauseSaasService",
15410
+ version: "2016-05-03",
15411
+ protocol: "HTTPS",
15412
+ pathname: "/",
15413
+ method: "POST",
15414
+ authType: "AK",
15415
+ style: "RPC",
15416
+ reqBodyType: "formData",
15417
+ bodyType: "json",
15418
+ });
15419
+ return $dara.cast<$_model.PauseSaasServiceResponse>(await this.callApi(params, req, runtime), new $_model.PauseSaasServiceResponse({}));
15420
+ }
15421
+
15422
+ /**
15423
+ * 暂停SaaS服务
15424
+ *
15425
+ * @remarks
15426
+ * 删除模型服务。
15427
+ *
15428
+ * @param request - PauseSaasServiceRequest
15429
+ * @returns PauseSaasServiceResponse
15430
+ */
15431
+ async pauseSaasService(request: $_model.PauseSaasServiceRequest): Promise<$_model.PauseSaasServiceResponse> {
15432
+ let runtime = new $dara.RuntimeOptions({ });
15433
+ return await this.pauseSaasServiceWithOptions(request, runtime);
15434
+ }
15435
+
15384
15436
  /**
15385
15437
  * Pauses a Supabase instance.
15386
15438
  *
@@ -15576,7 +15628,7 @@ export default class Client extends OpenApi {
15576
15628
  }
15577
15629
 
15578
15630
  /**
15579
- * Query a document collection with natural language to retrieve vectors and metadata.
15631
+ * Retrieves vectors and metadata from a specified document collection using natural language queries.
15580
15632
  *
15581
15633
  * @param tmpReq - QueryContentRequest
15582
15634
  * @param runtime - runtime options for this request RuntimeOptions
@@ -15727,7 +15779,7 @@ export default class Client extends OpenApi {
15727
15779
  }
15728
15780
 
15729
15781
  /**
15730
- * Query a document collection with natural language to retrieve vectors and metadata.
15782
+ * Retrieves vectors and metadata from a specified document collection using natural language queries.
15731
15783
  *
15732
15784
  * @param request - QueryContentRequest
15733
15785
  * @returns QueryContentResponse
@@ -15824,7 +15876,7 @@ export default class Client extends OpenApi {
15824
15876
  }
15825
15877
 
15826
15878
  /**
15827
- * Retrieve vectors and metadata from specified knowledge bases using a natural-language query, returning the merged results from a multi-channel recall.
15879
+ * Retrieves vectors and metadata from multiple specified document collections by using natural language statements, merges multi-channel recall results, and returns the combined results.
15828
15880
  *
15829
15881
  * @param tmpReq - QueryKnowledgeBasesContentRequest
15830
15882
  * @param runtime - runtime options for this request RuntimeOptions
@@ -15905,7 +15957,7 @@ export default class Client extends OpenApi {
15905
15957
  }
15906
15958
 
15907
15959
  /**
15908
- * Retrieve vectors and metadata from specified knowledge bases using a natural-language query, returning the merged results from a multi-channel recall.
15960
+ * Retrieves vectors and metadata from multiple specified document collections by using natural language statements, merges multi-channel recall results, and returns the combined results.
15909
15961
  *
15910
15962
  * @param request - QueryKnowledgeBasesContentRequest
15911
15963
  * @returns QueryKnowledgeBasesContentResponse
@@ -16535,6 +16587,58 @@ export default class Client extends OpenApi {
16535
16587
  return await this.resumeInstanceWithOptions(request, runtime);
16536
16588
  }
16537
16589
 
16590
+ /**
16591
+ * 恢复SaaS服务
16592
+ *
16593
+ * @remarks
16594
+ * 删除模型服务。
16595
+ *
16596
+ * @param request - ResumeSaasServiceRequest
16597
+ * @param runtime - runtime options for this request RuntimeOptions
16598
+ * @returns ResumeSaasServiceResponse
16599
+ */
16600
+ async resumeSaasServiceWithOptions(request: $_model.ResumeSaasServiceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ResumeSaasServiceResponse> {
16601
+ request.validate();
16602
+ let query = { };
16603
+ if (!$dara.isNull(request.regionId)) {
16604
+ query["RegionId"] = request.regionId;
16605
+ }
16606
+
16607
+ if (!$dara.isNull(request.serviceId)) {
16608
+ query["ServiceId"] = request.serviceId;
16609
+ }
16610
+
16611
+ let req = new $OpenApiUtil.OpenApiRequest({
16612
+ query: OpenApiUtil.query(query),
16613
+ });
16614
+ let params = new $OpenApiUtil.Params({
16615
+ action: "ResumeSaasService",
16616
+ version: "2016-05-03",
16617
+ protocol: "HTTPS",
16618
+ pathname: "/",
16619
+ method: "POST",
16620
+ authType: "AK",
16621
+ style: "RPC",
16622
+ reqBodyType: "formData",
16623
+ bodyType: "json",
16624
+ });
16625
+ return $dara.cast<$_model.ResumeSaasServiceResponse>(await this.callApi(params, req, runtime), new $_model.ResumeSaasServiceResponse({}));
16626
+ }
16627
+
16628
+ /**
16629
+ * 恢复SaaS服务
16630
+ *
16631
+ * @remarks
16632
+ * 删除模型服务。
16633
+ *
16634
+ * @param request - ResumeSaasServiceRequest
16635
+ * @returns ResumeSaasServiceResponse
16636
+ */
16637
+ async resumeSaasService(request: $_model.ResumeSaasServiceRequest): Promise<$_model.ResumeSaasServiceResponse> {
16638
+ let runtime = new $dara.RuntimeOptions({ });
16639
+ return await this.resumeSaasServiceWithOptions(request, runtime);
16640
+ }
16641
+
16538
16642
  /**
16539
16643
  * Resumes a Supabase instance.
16540
16644
  *