@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/dist/client.d.ts CHANGED
@@ -142,14 +142,14 @@ export default class Client extends OpenApi {
142
142
  */
143
143
  cancelUpsertCollectionDataJob(request: $_model.CancelUpsertCollectionDataJobRequest): Promise<$_model.CancelUpsertCollectionDataJobResponse>;
144
144
  /**
145
- * Combines a knowledge base with a large language model for intelligent Q&A.
145
+ * Provides intelligent Q&A services by combining knowledge bases with large models.
146
146
  *
147
147
  * @remarks
148
- * 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.
149
- * - **DBInstanceId**: Required. Specifies the ID of the database instance.
150
- * - **KnowledgeParams**: Optional. Contains parameters for knowledge retrieval, such as retrieval content and merge policies.
151
- * - **ModelParams**: Required. Contains parameters for model inference, such as the message list and the model name.
152
- * - **PromptTemplate**: Optional. Specifies a custom system prompt template.
148
+ * 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.
149
+ * - **DBInstanceId**: Required. Specifies the database instance ID.
150
+ * - **KnowledgeParams**: Optional. Contains parameters related to knowledge retrieval, such as retrieval content, merge strategies, etc.
151
+ * - **ModelParams**: Required. Contains parameters related to model inference, such as message list, model name, etc.
152
+ * - **PromptTemplate**: Optional. Used to customize the system prompt template.
153
153
  *
154
154
  * @param tmpReq - ChatWithKnowledgeBaseRequest
155
155
  * @param runtime - runtime options for this request RuntimeOptions
@@ -157,28 +157,28 @@ export default class Client extends OpenApi {
157
157
  */
158
158
  chatWithKnowledgeBaseWithOptions(tmpReq: $_model.ChatWithKnowledgeBaseRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ChatWithKnowledgeBaseResponse>;
159
159
  /**
160
- * Combines a knowledge base with a large language model for intelligent Q&A.
160
+ * Provides intelligent Q&A services by combining knowledge bases with large models.
161
161
  *
162
162
  * @remarks
163
- * 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.
164
- * - **DBInstanceId**: Required. Specifies the ID of the database instance.
165
- * - **KnowledgeParams**: Optional. Contains parameters for knowledge retrieval, such as retrieval content and merge policies.
166
- * - **ModelParams**: Required. Contains parameters for model inference, such as the message list and the model name.
167
- * - **PromptTemplate**: Optional. Specifies a custom system prompt template.
163
+ * 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.
164
+ * - **DBInstanceId**: Required. Specifies the database instance ID.
165
+ * - **KnowledgeParams**: Optional. Contains parameters related to knowledge retrieval, such as retrieval content, merge strategies, etc.
166
+ * - **ModelParams**: Required. Contains parameters related to model inference, such as message list, model name, etc.
167
+ * - **PromptTemplate**: Optional. Used to customize the system prompt template.
168
168
  *
169
169
  * @param request - ChatWithKnowledgeBaseRequest
170
170
  * @returns ChatWithKnowledgeBaseResponse
171
171
  */
172
172
  chatWithKnowledgeBase(request: $_model.ChatWithKnowledgeBaseRequest): Promise<$_model.ChatWithKnowledgeBaseResponse>;
173
173
  /**
174
- * 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.
174
+ * 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.
175
175
  *
176
176
  * @remarks
177
- * 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.
178
- * - DBInstanceId: Required. The ID of the database instance.
179
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
180
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
181
- * - PromptTemplate: Optional. A custom system prompt template.
177
+ * 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.
178
+ * - DBInstanceId: Required. Specifies the database instance ID.
179
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
180
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
181
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
182
182
  *
183
183
  * @param tmpReq - ChatWithKnowledgeBaseStreamRequest
184
184
  * @param runtime - runtime options for this request RuntimeOptions
@@ -186,14 +186,14 @@ export default class Client extends OpenApi {
186
186
  */
187
187
  chatWithKnowledgeBaseStreamWithSSE(tmpReq: $_model.ChatWithKnowledgeBaseStreamRequest, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.ChatWithKnowledgeBaseStreamResponse, any, unknown>;
188
188
  /**
189
- * 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.
189
+ * 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.
190
190
  *
191
191
  * @remarks
192
- * 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.
193
- * - DBInstanceId: Required. The ID of the database instance.
194
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
195
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
196
- * - PromptTemplate: Optional. A custom system prompt template.
192
+ * 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.
193
+ * - DBInstanceId: Required. Specifies the database instance ID.
194
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
195
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
196
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
197
197
  *
198
198
  * @param tmpReq - ChatWithKnowledgeBaseStreamRequest
199
199
  * @param runtime - runtime options for this request RuntimeOptions
@@ -201,14 +201,14 @@ export default class Client extends OpenApi {
201
201
  */
202
202
  chatWithKnowledgeBaseStreamWithOptions(tmpReq: $_model.ChatWithKnowledgeBaseStreamRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ChatWithKnowledgeBaseStreamResponse>;
203
203
  /**
204
- * 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.
204
+ * 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.
205
205
  *
206
206
  * @remarks
207
- * 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.
208
- * - DBInstanceId: Required. The ID of the database instance.
209
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
210
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
211
- * - PromptTemplate: Optional. A custom system prompt template.
207
+ * 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.
208
+ * - DBInstanceId: Required. Specifies the database instance ID.
209
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
210
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
211
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
212
212
  *
213
213
  * @param request - ChatWithKnowledgeBaseStreamRequest
214
214
  * @returns ChatWithKnowledgeBaseStreamResponse
@@ -4343,6 +4343,27 @@ export default class Client extends OpenApi {
4343
4343
  * @returns PauseInstanceResponse
4344
4344
  */
4345
4345
  pauseInstance(request: $_model.PauseInstanceRequest): Promise<$_model.PauseInstanceResponse>;
4346
+ /**
4347
+ * 暂停SaaS服务
4348
+ *
4349
+ * @remarks
4350
+ * 删除模型服务。
4351
+ *
4352
+ * @param request - PauseSaasServiceRequest
4353
+ * @param runtime - runtime options for this request RuntimeOptions
4354
+ * @returns PauseSaasServiceResponse
4355
+ */
4356
+ pauseSaasServiceWithOptions(request: $_model.PauseSaasServiceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PauseSaasServiceResponse>;
4357
+ /**
4358
+ * 暂停SaaS服务
4359
+ *
4360
+ * @remarks
4361
+ * 删除模型服务。
4362
+ *
4363
+ * @param request - PauseSaasServiceRequest
4364
+ * @returns PauseSaasServiceResponse
4365
+ */
4366
+ pauseSaasService(request: $_model.PauseSaasServiceRequest): Promise<$_model.PauseSaasServiceResponse>;
4346
4367
  /**
4347
4368
  * Pauses a Supabase instance.
4348
4369
  *
@@ -4380,7 +4401,7 @@ export default class Client extends OpenApi {
4380
4401
  */
4381
4402
  queryCollectionData(request: $_model.QueryCollectionDataRequest): Promise<$_model.QueryCollectionDataResponse>;
4382
4403
  /**
4383
- * Query a document collection with natural language to retrieve vectors and metadata.
4404
+ * Retrieves vectors and metadata from a specified document collection using natural language queries.
4384
4405
  *
4385
4406
  * @param tmpReq - QueryContentRequest
4386
4407
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4388,7 +4409,7 @@ export default class Client extends OpenApi {
4388
4409
  */
4389
4410
  queryContentWithOptions(tmpReq: $_model.QueryContentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.QueryContentResponse>;
4390
4411
  /**
4391
- * Query a document collection with natural language to retrieve vectors and metadata.
4412
+ * Retrieves vectors and metadata from a specified document collection using natural language queries.
4392
4413
  *
4393
4414
  * @param request - QueryContentRequest
4394
4415
  * @returns QueryContentResponse
@@ -4396,7 +4417,7 @@ export default class Client extends OpenApi {
4396
4417
  queryContent(request: $_model.QueryContentRequest): Promise<$_model.QueryContentResponse>;
4397
4418
  queryContentAdvance(request: $_model.QueryContentAdvanceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.QueryContentResponse>;
4398
4419
  /**
4399
- * Retrieve vectors and metadata from specified knowledge bases using a natural-language query, returning the merged results from a multi-channel recall.
4420
+ * Retrieves vectors and metadata from multiple specified document collections by using natural language statements, merges multi-channel recall results, and returns the combined results.
4400
4421
  *
4401
4422
  * @param tmpReq - QueryKnowledgeBasesContentRequest
4402
4423
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4404,7 +4425,7 @@ export default class Client extends OpenApi {
4404
4425
  */
4405
4426
  queryKnowledgeBasesContentWithOptions(tmpReq: $_model.QueryKnowledgeBasesContentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.QueryKnowledgeBasesContentResponse>;
4406
4427
  /**
4407
- * Retrieve vectors and metadata from specified knowledge bases using a natural-language query, returning the merged results from a multi-channel recall.
4428
+ * Retrieves vectors and metadata from multiple specified document collections by using natural language statements, merges multi-channel recall results, and returns the combined results.
4408
4429
  *
4409
4430
  * @param request - QueryKnowledgeBasesContentRequest
4410
4431
  * @returns QueryKnowledgeBasesContentResponse
@@ -4617,6 +4638,27 @@ export default class Client extends OpenApi {
4617
4638
  * @returns ResumeInstanceResponse
4618
4639
  */
4619
4640
  resumeInstance(request: $_model.ResumeInstanceRequest): Promise<$_model.ResumeInstanceResponse>;
4641
+ /**
4642
+ * 恢复SaaS服务
4643
+ *
4644
+ * @remarks
4645
+ * 删除模型服务。
4646
+ *
4647
+ * @param request - ResumeSaasServiceRequest
4648
+ * @param runtime - runtime options for this request RuntimeOptions
4649
+ * @returns ResumeSaasServiceResponse
4650
+ */
4651
+ resumeSaasServiceWithOptions(request: $_model.ResumeSaasServiceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ResumeSaasServiceResponse>;
4652
+ /**
4653
+ * 恢复SaaS服务
4654
+ *
4655
+ * @remarks
4656
+ * 删除模型服务。
4657
+ *
4658
+ * @param request - ResumeSaasServiceRequest
4659
+ * @returns ResumeSaasServiceResponse
4660
+ */
4661
+ resumeSaasService(request: $_model.ResumeSaasServiceRequest): Promise<$_model.ResumeSaasServiceResponse>;
4620
4662
  /**
4621
4663
  * Resumes a Supabase instance.
4622
4664
  *
package/dist/client.js CHANGED
@@ -561,14 +561,14 @@ class Client extends openapi_core_1.default {
561
561
  return await this.cancelUpsertCollectionDataJobWithOptions(request, runtime);
562
562
  }
563
563
  /**
564
- * Combines a knowledge base with a large language model for intelligent Q&A.
564
+ * Provides intelligent Q&A services by combining knowledge bases with large models.
565
565
  *
566
566
  * @remarks
567
- * 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.
568
- * - **DBInstanceId**: Required. Specifies the ID of the database instance.
569
- * - **KnowledgeParams**: Optional. Contains parameters for knowledge retrieval, such as retrieval content and merge policies.
570
- * - **ModelParams**: Required. Contains parameters for model inference, such as the message list and the model name.
571
- * - **PromptTemplate**: Optional. Specifies a custom system prompt template.
567
+ * 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.
568
+ * - **DBInstanceId**: Required. Specifies the database instance ID.
569
+ * - **KnowledgeParams**: Optional. Contains parameters related to knowledge retrieval, such as retrieval content, merge strategies, etc.
570
+ * - **ModelParams**: Required. Contains parameters related to model inference, such as message list, model name, etc.
571
+ * - **PromptTemplate**: Optional. Used to customize the system prompt template.
572
572
  *
573
573
  * @param tmpReq - ChatWithKnowledgeBaseRequest
574
574
  * @param runtime - runtime options for this request RuntimeOptions
@@ -623,14 +623,14 @@ class Client extends openapi_core_1.default {
623
623
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ChatWithKnowledgeBaseResponse({}));
624
624
  }
625
625
  /**
626
- * Combines a knowledge base with a large language model for intelligent Q&A.
626
+ * Provides intelligent Q&A services by combining knowledge bases with large models.
627
627
  *
628
628
  * @remarks
629
- * 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.
630
- * - **DBInstanceId**: Required. Specifies the ID of the database instance.
631
- * - **KnowledgeParams**: Optional. Contains parameters for knowledge retrieval, such as retrieval content and merge policies.
632
- * - **ModelParams**: Required. Contains parameters for model inference, such as the message list and the model name.
633
- * - **PromptTemplate**: Optional. Specifies a custom system prompt template.
629
+ * 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.
630
+ * - **DBInstanceId**: Required. Specifies the database instance ID.
631
+ * - **KnowledgeParams**: Optional. Contains parameters related to knowledge retrieval, such as retrieval content, merge strategies, etc.
632
+ * - **ModelParams**: Required. Contains parameters related to model inference, such as message list, model name, etc.
633
+ * - **PromptTemplate**: Optional. Used to customize the system prompt template.
634
634
  *
635
635
  * @param request - ChatWithKnowledgeBaseRequest
636
636
  * @returns ChatWithKnowledgeBaseResponse
@@ -640,14 +640,14 @@ class Client extends openapi_core_1.default {
640
640
  return await this.chatWithKnowledgeBaseWithOptions(request, runtime);
641
641
  }
642
642
  /**
643
- * 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.
643
+ * 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.
644
644
  *
645
645
  * @remarks
646
- * 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.
647
- * - DBInstanceId: Required. The ID of the database instance.
648
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
649
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
650
- * - PromptTemplate: Optional. A custom system prompt template.
646
+ * 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.
647
+ * - DBInstanceId: Required. Specifies the database instance ID.
648
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
649
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
650
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
651
651
  *
652
652
  * @param tmpReq - ChatWithKnowledgeBaseStreamRequest
653
653
  * @param runtime - runtime options for this request RuntimeOptions
@@ -729,14 +729,14 @@ class Client extends openapi_core_1.default {
729
729
  });
730
730
  }
731
731
  /**
732
- * 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.
732
+ * 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.
733
733
  *
734
734
  * @remarks
735
- * 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.
736
- * - DBInstanceId: Required. The ID of the database instance.
737
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
738
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
739
- * - PromptTemplate: Optional. A custom system prompt template.
735
+ * 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.
736
+ * - DBInstanceId: Required. Specifies the database instance ID.
737
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
738
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
739
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
740
740
  *
741
741
  * @param tmpReq - ChatWithKnowledgeBaseStreamRequest
742
742
  * @param runtime - runtime options for this request RuntimeOptions
@@ -791,14 +791,14 @@ class Client extends openapi_core_1.default {
791
791
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ChatWithKnowledgeBaseStreamResponse({}));
792
792
  }
793
793
  /**
794
- * 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.
794
+ * 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.
795
795
  *
796
796
  * @remarks
797
- * 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.
798
- * - DBInstanceId: Required. The ID of the database instance.
799
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
800
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
801
- * - PromptTemplate: Optional. A custom system prompt template.
797
+ * 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.
798
+ * - DBInstanceId: Required. Specifies the database instance ID.
799
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
800
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
801
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
802
802
  *
803
803
  * @param request - ChatWithKnowledgeBaseStreamRequest
804
804
  * @returns ChatWithKnowledgeBaseStreamResponse
@@ -13609,6 +13609,54 @@ class Client extends openapi_core_1.default {
13609
13609
  let runtime = new $dara.RuntimeOptions({});
13610
13610
  return await this.pauseInstanceWithOptions(request, runtime);
13611
13611
  }
13612
+ /**
13613
+ * 暂停SaaS服务
13614
+ *
13615
+ * @remarks
13616
+ * 删除模型服务。
13617
+ *
13618
+ * @param request - PauseSaasServiceRequest
13619
+ * @param runtime - runtime options for this request RuntimeOptions
13620
+ * @returns PauseSaasServiceResponse
13621
+ */
13622
+ async pauseSaasServiceWithOptions(request, runtime) {
13623
+ request.validate();
13624
+ let query = {};
13625
+ if (!$dara.isNull(request.regionId)) {
13626
+ query["RegionId"] = request.regionId;
13627
+ }
13628
+ if (!$dara.isNull(request.serviceId)) {
13629
+ query["ServiceId"] = request.serviceId;
13630
+ }
13631
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
13632
+ query: openapi_core_2.OpenApiUtil.query(query),
13633
+ });
13634
+ let params = new openapi_core_2.$OpenApiUtil.Params({
13635
+ action: "PauseSaasService",
13636
+ version: "2016-05-03",
13637
+ protocol: "HTTPS",
13638
+ pathname: "/",
13639
+ method: "POST",
13640
+ authType: "AK",
13641
+ style: "RPC",
13642
+ reqBodyType: "formData",
13643
+ bodyType: "json",
13644
+ });
13645
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.PauseSaasServiceResponse({}));
13646
+ }
13647
+ /**
13648
+ * 暂停SaaS服务
13649
+ *
13650
+ * @remarks
13651
+ * 删除模型服务。
13652
+ *
13653
+ * @param request - PauseSaasServiceRequest
13654
+ * @returns PauseSaasServiceResponse
13655
+ */
13656
+ async pauseSaasService(request) {
13657
+ let runtime = new $dara.RuntimeOptions({});
13658
+ return await this.pauseSaasServiceWithOptions(request, runtime);
13659
+ }
13612
13660
  /**
13613
13661
  * Pauses a Supabase instance.
13614
13662
  *
@@ -13773,7 +13821,7 @@ class Client extends openapi_core_1.default {
13773
13821
  return await this.queryCollectionDataWithOptions(request, runtime);
13774
13822
  }
13775
13823
  /**
13776
- * Query a document collection with natural language to retrieve vectors and metadata.
13824
+ * Retrieves vectors and metadata from a specified document collection using natural language queries.
13777
13825
  *
13778
13826
  * @param tmpReq - QueryContentRequest
13779
13827
  * @param runtime - runtime options for this request RuntimeOptions
@@ -13893,7 +13941,7 @@ class Client extends openapi_core_1.default {
13893
13941
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryContentResponse({}));
13894
13942
  }
13895
13943
  /**
13896
- * Query a document collection with natural language to retrieve vectors and metadata.
13944
+ * Retrieves vectors and metadata from a specified document collection using natural language queries.
13897
13945
  *
13898
13946
  * @param request - QueryContentRequest
13899
13947
  * @returns QueryContentResponse
@@ -13984,7 +14032,7 @@ class Client extends openapi_core_1.default {
13984
14032
  return queryContentResp;
13985
14033
  }
13986
14034
  /**
13987
- * Retrieve vectors and metadata from specified knowledge bases using a natural-language query, returning the merged results from a multi-channel recall.
14035
+ * Retrieves vectors and metadata from multiple specified document collections by using natural language statements, merges multi-channel recall results, and returns the combined results.
13988
14036
  *
13989
14037
  * @param tmpReq - QueryKnowledgeBasesContentRequest
13990
14038
  * @param runtime - runtime options for this request RuntimeOptions
@@ -14051,7 +14099,7 @@ class Client extends openapi_core_1.default {
14051
14099
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryKnowledgeBasesContentResponse({}));
14052
14100
  }
14053
14101
  /**
14054
- * Retrieve vectors and metadata from specified knowledge bases using a natural-language query, returning the merged results from a multi-channel recall.
14102
+ * Retrieves vectors and metadata from multiple specified document collections by using natural language statements, merges multi-channel recall results, and returns the combined results.
14055
14103
  *
14056
14104
  * @param request - QueryKnowledgeBasesContentRequest
14057
14105
  * @returns QueryKnowledgeBasesContentResponse
@@ -14619,6 +14667,54 @@ class Client extends openapi_core_1.default {
14619
14667
  let runtime = new $dara.RuntimeOptions({});
14620
14668
  return await this.resumeInstanceWithOptions(request, runtime);
14621
14669
  }
14670
+ /**
14671
+ * 恢复SaaS服务
14672
+ *
14673
+ * @remarks
14674
+ * 删除模型服务。
14675
+ *
14676
+ * @param request - ResumeSaasServiceRequest
14677
+ * @param runtime - runtime options for this request RuntimeOptions
14678
+ * @returns ResumeSaasServiceResponse
14679
+ */
14680
+ async resumeSaasServiceWithOptions(request, runtime) {
14681
+ request.validate();
14682
+ let query = {};
14683
+ if (!$dara.isNull(request.regionId)) {
14684
+ query["RegionId"] = request.regionId;
14685
+ }
14686
+ if (!$dara.isNull(request.serviceId)) {
14687
+ query["ServiceId"] = request.serviceId;
14688
+ }
14689
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
14690
+ query: openapi_core_2.OpenApiUtil.query(query),
14691
+ });
14692
+ let params = new openapi_core_2.$OpenApiUtil.Params({
14693
+ action: "ResumeSaasService",
14694
+ version: "2016-05-03",
14695
+ protocol: "HTTPS",
14696
+ pathname: "/",
14697
+ method: "POST",
14698
+ authType: "AK",
14699
+ style: "RPC",
14700
+ reqBodyType: "formData",
14701
+ bodyType: "json",
14702
+ });
14703
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ResumeSaasServiceResponse({}));
14704
+ }
14705
+ /**
14706
+ * 恢复SaaS服务
14707
+ *
14708
+ * @remarks
14709
+ * 删除模型服务。
14710
+ *
14711
+ * @param request - ResumeSaasServiceRequest
14712
+ * @returns ResumeSaasServiceResponse
14713
+ */
14714
+ async resumeSaasService(request) {
14715
+ let runtime = new $dara.RuntimeOptions({});
14716
+ return await this.resumeSaasServiceWithOptions(request, runtime);
14717
+ }
14622
14718
  /**
14623
14719
  * Resumes a Supabase instance.
14624
14720
  *