@alicloud/gpdb20160503 3.7.0 → 3.9.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 (124) hide show
  1. package/dist/client.d.ts +160 -34
  2. package/dist/client.js +367 -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/ResetBranchRequest.d.ts +41 -0
  44. package/dist/models/ResetBranchRequest.js +62 -0
  45. package/dist/models/ResetBranchRequest.js.map +1 -0
  46. package/dist/models/ResetBranchResponse.d.ts +19 -0
  47. package/dist/models/ResetBranchResponse.js +69 -0
  48. package/dist/models/ResetBranchResponse.js.map +1 -0
  49. package/dist/models/ResetBranchResponseBody.d.ts +21 -0
  50. package/dist/models/ResetBranchResponseBody.js +58 -0
  51. package/dist/models/ResetBranchResponseBody.js.map +1 -0
  52. package/dist/models/RestoreBranchRequest.d.ts +83 -0
  53. package/dist/models/RestoreBranchRequest.js +72 -0
  54. package/dist/models/RestoreBranchRequest.js.map +1 -0
  55. package/dist/models/RestoreBranchResponse.d.ts +19 -0
  56. package/dist/models/RestoreBranchResponse.js +69 -0
  57. package/dist/models/RestoreBranchResponse.js.map +1 -0
  58. package/dist/models/RestoreBranchResponseBody.d.ts +29 -0
  59. package/dist/models/RestoreBranchResponseBody.js +60 -0
  60. package/dist/models/RestoreBranchResponseBody.js.map +1 -0
  61. package/dist/models/ResumeSaasServiceRequest.d.ts +26 -0
  62. package/dist/models/ResumeSaasServiceRequest.js +60 -0
  63. package/dist/models/ResumeSaasServiceRequest.js.map +1 -0
  64. package/dist/models/ResumeSaasServiceResponse.d.ts +19 -0
  65. package/dist/models/ResumeSaasServiceResponse.js +69 -0
  66. package/dist/models/ResumeSaasServiceResponse.js.map +1 -0
  67. package/dist/models/ResumeSaasServiceResponseBody.d.ts +23 -0
  68. package/dist/models/ResumeSaasServiceResponseBody.js +60 -0
  69. package/dist/models/ResumeSaasServiceResponseBody.js.map +1 -0
  70. package/dist/models/SetAsDefaultBranchRequest.d.ts +41 -0
  71. package/dist/models/SetAsDefaultBranchRequest.js +62 -0
  72. package/dist/models/SetAsDefaultBranchRequest.js.map +1 -0
  73. package/dist/models/SetAsDefaultBranchResponse.d.ts +19 -0
  74. package/dist/models/SetAsDefaultBranchResponse.js +69 -0
  75. package/dist/models/SetAsDefaultBranchResponse.js.map +1 -0
  76. package/dist/models/SetAsDefaultBranchResponseBody.d.ts +21 -0
  77. package/dist/models/SetAsDefaultBranchResponseBody.js +58 -0
  78. package/dist/models/SetAsDefaultBranchResponseBody.js.map +1 -0
  79. package/dist/models/UpdateBranchRequest.d.ts +126 -0
  80. package/dist/models/UpdateBranchRequest.js +98 -0
  81. package/dist/models/UpdateBranchRequest.js.map +1 -0
  82. package/dist/models/UpdateBranchResponse.d.ts +19 -0
  83. package/dist/models/UpdateBranchResponse.js +69 -0
  84. package/dist/models/UpdateBranchResponse.js.map +1 -0
  85. package/dist/models/UpdateBranchResponseBody.d.ts +21 -0
  86. package/dist/models/UpdateBranchResponseBody.js +58 -0
  87. package/dist/models/UpdateBranchResponseBody.js.map +1 -0
  88. package/dist/models/model.d.ts +19 -0
  89. package/dist/models/model.js +56 -18
  90. package/dist/models/model.js.map +1 -1
  91. package/package.json +1 -1
  92. package/src/client.ts +406 -34
  93. package/src/models/ChatWithKnowledgeBaseRequest.ts +70 -111
  94. package/src/models/ChatWithKnowledgeBaseResponseBody.ts +45 -52
  95. package/src/models/ChatWithKnowledgeBaseShrinkRequest.ts +5 -6
  96. package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +73 -87
  97. package/src/models/ChatWithKnowledgeBaseStreamResponseBody.ts +44 -50
  98. package/src/models/ChatWithKnowledgeBaseStreamShrinkRequest.ts +6 -6
  99. package/src/models/PauseSaasServiceRequest.ts +41 -0
  100. package/src/models/PauseSaasServiceResponse.ts +40 -0
  101. package/src/models/PauseSaasServiceResponseBody.ts +38 -0
  102. package/src/models/QueryContentAdvanceRequest.ts +60 -71
  103. package/src/models/QueryContentRequest.ts +60 -71
  104. package/src/models/QueryContentResponseBody.ts +10 -11
  105. package/src/models/QueryContentShrinkRequest.ts +53 -67
  106. package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -78
  107. package/src/models/QueryKnowledgeBasesContentResponseBody.ts +11 -25
  108. package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +11 -15
  109. package/src/models/ResetBranchRequest.ts +58 -0
  110. package/src/models/ResetBranchResponse.ts +40 -0
  111. package/src/models/ResetBranchResponseBody.ts +34 -0
  112. package/src/models/RestoreBranchRequest.ts +110 -0
  113. package/src/models/RestoreBranchResponse.ts +40 -0
  114. package/src/models/RestoreBranchResponseBody.ts +44 -0
  115. package/src/models/ResumeSaasServiceRequest.ts +41 -0
  116. package/src/models/ResumeSaasServiceResponse.ts +40 -0
  117. package/src/models/ResumeSaasServiceResponseBody.ts +38 -0
  118. package/src/models/SetAsDefaultBranchRequest.ts +58 -0
  119. package/src/models/SetAsDefaultBranchResponse.ts +40 -0
  120. package/src/models/SetAsDefaultBranchResponseBody.ts +34 -0
  121. package/src/models/UpdateBranchRequest.ts +170 -0
  122. package/src/models/UpdateBranchResponse.ts +40 -0
  123. package/src/models/UpdateBranchResponseBody.ts +34 -0
  124. package/src/models/model.ts +19 -0
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgsRrf extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The constant `k` used in the reciprocal rank fusion (RRF) formula `1/(k + rank_i)`. The value must be an integer greater than 1.
8
+ * The k constant in the score calculation formula `1/(k+rank_i)`. The value must be a positive integer greater than 1.
9
9
  *
10
10
  * @example
11
11
  * 60
@@ -35,7 +35,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgsRrf
35
35
  export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgsWeight extends $dara.Model {
36
36
  /**
37
37
  * @remarks
38
- * An array of weights for each `SourceCollection`.
38
+ * The weight array for each SourceCollection.
39
39
  */
40
40
  weights?: number[];
41
41
  static names(): { [key: string]: string } {
@@ -65,12 +65,12 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgsWei
65
65
  export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgs extends $dara.Model {
66
66
  /**
67
67
  * @remarks
68
- * Parameters for the `RRF` merge method.
68
+ * The configurable parameters when MergeMethod is set to RRF.
69
69
  */
70
70
  rrf?: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgsRrf;
71
71
  /**
72
72
  * @remarks
73
- * Parameters for the `Weight` merge method.
73
+ * The configurable parameters when MergeMethod is set to Weight.
74
74
  */
75
75
  weight?: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgsWeight;
76
76
  static names(): { [key: string]: string } {
@@ -105,7 +105,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgs ex
105
105
  export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsRerankModel extends $dara.Model {
106
106
  /**
107
107
  * @remarks
108
- * An instruction for the rerank model.
108
+ * This parameter can be set when RerankModel.Name is set to qwen3-rerank. Specifies a custom ranking task type description to guide the model to adopt different ranking strategies.
109
109
  *
110
110
  * @example
111
111
  * Given a web search query, retrieve relevant passages that answer the query
@@ -113,7 +113,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsRerankModel extend
113
113
  instruct?: string;
114
114
  /**
115
115
  * @remarks
116
- * The name of the rerank model.
116
+ * The reranking model name. Valid values: qwen3-rerank, gte-rerank-v2.
117
117
  *
118
118
  * @example
119
119
  * qwen3-rerank
@@ -145,7 +145,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsRerankModel extend
145
145
  export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParamsGraphSearchArgs extends $dara.Model {
146
146
  /**
147
147
  * @remarks
148
- * The number of top entities and relationship edges to return. Default value: `60`.
148
+ * The number of top entities and relationship edges to return. Default value: 60.
149
149
  *
150
150
  * @example
151
151
  * 60
@@ -175,7 +175,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
175
175
  export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel extends $dara.Model {
176
176
  /**
177
177
  * @remarks
178
- * An instruction for the rerank model.
178
+ * This parameter can be set when RerankModel.Name is set to qwen3-rerank. Specifies a custom ranking task type description to guide the model to adopt different ranking strategies.
179
179
  *
180
180
  * @example
181
181
  * Given a web search query, retrieve relevant passages that answer the query
@@ -183,16 +183,18 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
183
183
  instruct?: string;
184
184
  /**
185
185
  * @remarks
186
- * The name of the rerank model.
186
+ * The reranking model name. Valid values: qwen3-rerank, gte-rerank-v2.
187
187
  *
188
188
  * @example
189
189
  * qwen3-rerank
190
190
  */
191
191
  name?: string;
192
+ rerankMetadataFields?: string;
192
193
  static names(): { [key: string]: string } {
193
194
  return {
194
195
  instruct: 'Instruct',
195
196
  name: 'Name',
197
+ rerankMetadataFields: 'RerankMetadataFields',
196
198
  };
197
199
  }
198
200
 
@@ -200,6 +202,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
200
202
  return {
201
203
  instruct: 'string',
202
204
  name: 'string',
205
+ rerankMetadataFields: 'string',
203
206
  };
204
207
  }
205
208
 
@@ -215,7 +218,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
215
218
  export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParams extends $dara.Model {
216
219
  /**
217
220
  * @remarks
218
- * A filter expression to apply to the search, similar to a SQL `WHERE` clause.
221
+ * The filter condition for the data to update, in SQL WHERE clause format.
219
222
  *
220
223
  * @example
221
224
  * method_id=\\"e41695f0-2851-40ac-b21d-dd337b60d71c\\"
@@ -223,7 +226,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
223
226
  filter?: string;
224
227
  /**
225
228
  * @remarks
226
- * Specifies whether to enable knowledge graph enhancement. Default value: `false`.
229
+ * Specifies whether to enable knowledge graph enhancement. Default value: false.
227
230
  *
228
231
  * @example
229
232
  * true
@@ -231,20 +234,18 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
231
234
  graphEnhance?: boolean;
232
235
  /**
233
236
  * @remarks
234
- * The parameters for knowledge graph search.
237
+ * The knowledge graph retrieval parameters.
235
238
  */
236
239
  graphSearchArgs?: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParamsGraphSearchArgs;
237
240
  /**
238
241
  * @remarks
239
- * Specifies the hybrid search algorithm. If omitted, the system performs a basic score comparison of vector search and full-text retrieval results.
242
+ * The multi-channel recall algorithm. Default value: empty (AISearch and full-text index scores are directly compared and sorted).
240
243
  *
241
244
  * Valid values:
242
245
  *
243
- * - `RRF`: Reciprocal rank fusion. Configure the `k` parameter in `HybridSearchArgs`.
244
- *
245
- * - `Weight`: Weighted score fusion. Use the `alpha` parameter in `HybridSearchArgs` to control the balance between vector and full-text search scores.
246
- *
247
- * - `Cascaded`: First performs full-text retrieval, then runs a vector search on the results.
246
+ * - RRF: Reciprocal rank fusion. A parameter k controls the fusion effect. For more information, see HybridSearchArgs.
247
+ * - Weight: Weighted reranking. A parameter alpha controls the score weight between AISearch and full-text index results, then performs reranking. For more information, see HybridSearchArgs.
248
+ * - Cascaded: Full-text index retrieve is performed first, followed by AISearch retrieve on the full-text index results.
248
249
  *
249
250
  * @example
250
251
  * Cascaded
@@ -252,10 +253,9 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
252
253
  hybridSearch?: string;
253
254
  /**
254
255
  * @remarks
255
- * The arguments for the specified hybrid search algorithm. Supports `RRF` and `Weight`.
256
- *
257
- * - `RRF`: Specifies the constant `k` in the score calculation formula `1/(k+rank_i)`. `k` must be an integer greater than 1. Format:
256
+ * The algorithm parameters for multi-channel recall. RRF and Weight are supported:
258
257
  *
258
+ * - RRF: The k constant in the score calculation formula `1/(k+rank_i)`. The value must be a positive integer greater than 1. Format:
259
259
  * ```
260
260
  * {
261
261
  * "RRF": {
@@ -264,26 +264,22 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
264
264
  * }
265
265
  * ```
266
266
  *
267
- * - `Weight`: Calculates the final score using the formula `alpha * vector_score + (1 - alpha) * text_score`. The `alpha` parameter balances the scores, ranging from 0 (full-text only) to 1 (vector only). Format:
268
- *
267
+ * - Weight: The calculation formula is `alpha * vector_score + (1-alpha) * text_score`. The parameter alpha specifies the score weight between vector and full-text retrieval. Valid values: 0 to 1, where 0 indicates full-text only and 1 indicates vector only:
269
268
  * ```
270
269
  * {
271
270
  * "Weight": {
272
271
  * "alpha": 0.5
273
272
  * }
274
273
  * }
275
- * ```
274
+ * ```.
276
275
  */
277
276
  hybridSearchArgs?: { [key: string]: any };
278
277
  /**
279
278
  * @remarks
280
- * The distance metric for vector search. Valid values:
281
- *
282
- * - `l2`: Euclidean distance.
283
- *
284
- * - `ip`: Inner product.
285
- *
286
- * - `cosine`: Cosine similarity.
279
+ * The method used to build the vector index. Valid values:
280
+ * - l2: Euclidean distance.
281
+ * - ip: inner product distance.
282
+ * - cosine: cosine similarity.
287
283
  *
288
284
  * @example
289
285
  * cosine
@@ -291,20 +287,16 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
291
287
  metrics?: string;
292
288
  /**
293
289
  * @remarks
294
- * The recall window. Specifies a window of context to include around retrieved chunks. The value must be a two-element array `[A, B]`, where -10 <= A <= 0 and 0 <= B <= 10.
295
- *
296
- * > - This parameter is useful when document chunks are small and a search might miss important surrounding context.
297
- * >
298
- * > - The window is applied after reranking.
290
+ * The recall window. If this value is not empty, additional context is returned for retrieval results. The format is a two-element array: List<A, B>, where -10 <= A <= 0 and 0 <= B <= 10.
291
+ * > - Use this parameter when documents are segmented too finely and retrieval may lose contextual information.
292
+ * > - Reranking takes priority over windowing. Reranking is performed first, followed by windowing.
299
293
  */
300
294
  recallWindow?: number[];
301
295
  /**
302
296
  * @remarks
303
- * The rerank factor. If specified, the system reranks the results from the vector search. The value must be greater than 1 and less than or equal to 5.
304
- *
305
- * > - Reranking may be inefficient if document chunks are sparse.
306
- * >
307
- * > - The number of items to rerank, calculated as `ceil(TopK * RerankFactor)`, should not exceed 50.
297
+ * The reranking factor. If this value is not empty, the AISearch retrieve results are reranked. Valid values: 1 < RerankFactor <= 5.
298
+ * > - Reranking is slow when document chunks are sparse.
299
+ * > - The recommended number of reranked items (TopK × Factor, rounded up) should not exceed 50.
308
300
  *
309
301
  * @example
310
302
  * 2.0
@@ -312,12 +304,12 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
312
304
  rerankFactor?: number;
313
305
  /**
314
306
  * @remarks
315
- * The rerank model to use.
307
+ * The reranking model parameters.
316
308
  */
317
309
  rerankModel?: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel;
318
310
  /**
319
311
  * @remarks
320
- * The number of top results to return from this collection.
312
+ * The number of top results to return.
321
313
  *
322
314
  * @example
323
315
  * 101
@@ -325,7 +317,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
325
317
  topK?: number;
326
318
  /**
327
319
  * @remarks
328
- * Specifies whether to use full-text retrieval for hybrid search. If `false` (the default), only vector search is performed.
320
+ * Specifies whether to use full-text index (multi-channel recall). Default value: false. Only AISearch retrieve is used.
329
321
  *
330
322
  * @example
331
323
  * true
@@ -387,7 +379,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
387
379
  export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollection extends $dara.Model {
388
380
  /**
389
381
  * @remarks
390
- * The name of the collection to search.
382
+ * The name of the collection to recall.
391
383
  *
392
384
  * This parameter is required.
393
385
  *
@@ -397,9 +389,9 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollection e
397
389
  collection?: string;
398
390
  /**
399
391
  * @remarks
400
- * The namespace that contains the collection.
392
+ * The namespace.
401
393
  *
402
- * > You can call the [ListNamespaces](https://help.aliyun.com/document_detail/2401502.html) operation to view available namespaces.
394
+ * > You can call the [ListNamespaces](https://help.aliyun.com/document_detail/2401502.html) operation to query the list.
403
395
  *
404
396
  * @example
405
397
  * ddstar_vector
@@ -407,9 +399,9 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollection e
407
399
  namespace?: string;
408
400
  /**
409
401
  * @remarks
410
- * The password for the specified namespace.
402
+ * The password of the namespace.
411
403
  *
412
- * > This value is specified in the `CreateNamespace` operation.
404
+ * > This value is specified in the CreateNamespace operation.
413
405
  *
414
406
  * This parameter is required.
415
407
  *
@@ -419,7 +411,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollection e
419
411
  namespacePassword?: string;
420
412
  /**
421
413
  * @remarks
422
- * Parameters for the knowledge base query.
414
+ * The parameters related to retrieval from this knowledge base.
423
415
  */
424
416
  queryParams?: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParams;
425
417
  static names(): { [key: string]: string } {
@@ -455,11 +447,9 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollection e
455
447
  export class ChatWithKnowledgeBaseStreamRequestKnowledgeParams extends $dara.Model {
456
448
  /**
457
449
  * @remarks
458
- * Specifies the method for merging results from multiple knowledge bases. Default: `RRF`. Valid values:
459
- *
460
- * - `RRF`
461
- *
462
- * - `Weight`
450
+ * The method for merging results from multiple knowledge bases. Default value: RRF. Valid values:
451
+ * - RRF
452
+ * - Weight.
463
453
  *
464
454
  * @example
465
455
  * "RRF"
@@ -467,16 +457,14 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParams extends $dara.Mod
467
457
  mergeMethod?: string;
468
458
  /**
469
459
  * @remarks
470
- * The arguments for the result merging method.
460
+ * The parameters for merging results from multiple knowledge bases.
471
461
  */
472
462
  mergeMethodArgs?: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgs;
473
463
  /**
474
464
  * @remarks
475
- * Specifies the factor for reranking vector search results. The value must be greater than 1 and less than or equal to 5.
476
- *
477
- * > - Reranking may be inefficient if document chunks are sparse.
478
- * >
479
- * > - The number of items to rerank, calculated as `ceil(TopK * RerankFactor)`, should not exceed 50.
465
+ * The reranking factor. If this value is not empty, the AISearch retrieve results are reranked. Valid values: 1 < RerankFactor <= 5.
466
+ * > - Reranking is slow when document chunks are sparse.
467
+ * > - The recommended number of reranked items (TopK × Factor, rounded up) should not exceed 50.
480
468
  *
481
469
  * @example
482
470
  * 5.0
@@ -484,19 +472,19 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParams extends $dara.Mod
484
472
  rerankFactor?: number;
485
473
  /**
486
474
  * @remarks
487
- * The rerank model to use.
475
+ * The reranking model parameters for performing an additional reranking on the merged results from multiple retrieval paths.
488
476
  */
489
477
  rerankModel?: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsRerankModel;
490
478
  /**
491
479
  * @remarks
492
- * An array of knowledge bases to search.
480
+ * The knowledge base.
493
481
  *
494
482
  * This parameter is required.
495
483
  */
496
484
  sourceCollection?: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollection[];
497
485
  /**
498
486
  * @remarks
499
- * The total number of top results to return after merging results from all collections.
487
+ * The number of top results to return after merging recall results from multiple vector collections.
500
488
  *
501
489
  * @example
502
490
  * 10
@@ -545,7 +533,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParams extends $dara.Mod
545
533
  export class ChatWithKnowledgeBaseStreamRequestModelParamsMessages extends $dara.Model {
546
534
  /**
547
535
  * @remarks
548
- * The content of the message.
536
+ * The message content.
549
537
  *
550
538
  * This parameter is required.
551
539
  *
@@ -555,13 +543,11 @@ export class ChatWithKnowledgeBaseStreamRequestModelParamsMessages extends $dara
555
543
  content?: string;
556
544
  /**
557
545
  * @remarks
558
- * The role of the message author. Valid values:
559
- *
560
- * - `system`
561
- *
562
- * - `user`
546
+ * The message role. Valid values:
563
547
  *
564
- * - `assistant`
548
+ * - system
549
+ * - user
550
+ * - assistant.
565
551
  *
566
552
  * This parameter is required.
567
553
  *
@@ -595,7 +581,7 @@ export class ChatWithKnowledgeBaseStreamRequestModelParamsMessages extends $dara
595
581
  export class ChatWithKnowledgeBaseStreamRequestModelParamsToolsFunction extends $dara.Model {
596
582
  /**
597
583
  * @remarks
598
- * A description of the function tool.
584
+ * The description of the function tool.
599
585
  *
600
586
  * @example
601
587
  * Get weather.
@@ -611,7 +597,7 @@ export class ChatWithKnowledgeBaseStreamRequestModelParamsToolsFunction extends
611
597
  name?: string;
612
598
  /**
613
599
  * @remarks
614
- * The parameters of the function, described as a JSON Schema object.
600
+ * The JSON Schema of the function parameters.
615
601
  *
616
602
  * @example
617
603
  * {"type": "object", ...}
@@ -683,14 +669,14 @@ export class ChatWithKnowledgeBaseStreamRequestModelParams extends $dara.Model {
683
669
  maxTokens?: number;
684
670
  /**
685
671
  * @remarks
686
- * A list of messages in the conversation.
672
+ * The message list.
687
673
  *
688
674
  * This parameter is required.
689
675
  */
690
676
  messages?: ChatWithKnowledgeBaseStreamRequestModelParamsMessages[];
691
677
  /**
692
678
  * @remarks
693
- * The name of the Large Language Model to use. For a list of available models, refer to the [Model Studio documentation](https://help.aliyun.com/zh/model-studio/compatibility-of-openai-with-dashscope?spm=openapi-amp.newDocPublishment.0.0.257c281fH8TtM8\\&scm=20140722.H_2833609._.OR_help-T_cn~zh-V_1#eadfc13038jd5).
679
+ * The name of the large language model to use. For valid values, see [Model Studio documentation](https://www.alibabacloud.com/help/en/model-studio/compatibility-of-openai-with-dashscope#eadfc13038jd5).
694
680
  *
695
681
  * This parameter is required.
696
682
  *
@@ -708,7 +694,7 @@ export class ChatWithKnowledgeBaseStreamRequestModelParams extends $dara.Model {
708
694
  n?: number;
709
695
  /**
710
696
  * @remarks
711
- * The presence penalty. A value between -2.0 and 2.0.
697
+ * The presence penalty coefficient. Valid values: -2.0 to 2.0.
712
698
  *
713
699
  * @example
714
700
  * 1.0
@@ -716,7 +702,7 @@ export class ChatWithKnowledgeBaseStreamRequestModelParams extends $dara.Model {
716
702
  presencePenalty?: number;
717
703
  /**
718
704
  * @remarks
719
- * The random seed for sampling.
705
+ * The random seed.
720
706
  *
721
707
  * @example
722
708
  * 42
@@ -724,12 +710,12 @@ export class ChatWithKnowledgeBaseStreamRequestModelParams extends $dara.Model {
724
710
  seed?: number;
725
711
  /**
726
712
  * @remarks
727
- * A list of stop sequences.
713
+ * The list of stop words.
728
714
  */
729
715
  stop?: string[];
730
716
  /**
731
717
  * @remarks
732
- * The sampling temperature. A value between 0 and 2.
718
+ * The sampling temperature. Valid values: 0 to 2.
733
719
  *
734
720
  * @example
735
721
  * 0.6
@@ -737,12 +723,12 @@ export class ChatWithKnowledgeBaseStreamRequestModelParams extends $dara.Model {
737
723
  temperature?: number;
738
724
  /**
739
725
  * @remarks
740
- * A list of tools the model can call.
726
+ * The tool list.
741
727
  */
742
728
  tools?: ChatWithKnowledgeBaseStreamRequestModelParamsTools[];
743
729
  /**
744
730
  * @remarks
745
- * The nucleus sampling probability threshold. A value between 0 and 1.
731
+ * The nucleus sampling probability threshold. Valid values: 0 to 1.
746
732
  *
747
733
  * @example
748
734
  * 0.9
@@ -801,7 +787,7 @@ export class ChatWithKnowledgeBaseStreamRequest extends $dara.Model {
801
787
  * @remarks
802
788
  * The instance ID.
803
789
  *
804
- * > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to query the IDs of all AnalyticDB for PostgreSQL instances in a specified region.
790
+ * > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to query the IDs of all AnalyticDB for PostgreSQL instances in a region.
805
791
  *
806
792
  * This parameter is required.
807
793
  *
@@ -811,7 +797,7 @@ export class ChatWithKnowledgeBaseStreamRequest extends $dara.Model {
811
797
  DBInstanceId?: string;
812
798
  /**
813
799
  * @remarks
814
- * Specifies whether to include the retrieved knowledge base results in the response. Default value: `false`.
800
+ * Specifies whether to return recall results. Default value: false.
815
801
  *
816
802
  * @example
817
803
  * false
@@ -819,12 +805,12 @@ export class ChatWithKnowledgeBaseStreamRequest extends $dara.Model {
819
805
  includeKnowledgeBaseResults?: boolean;
820
806
  /**
821
807
  * @remarks
822
- * Parameters for knowledge retrieval. If omitted, the API performs a chat-only operation.
808
+ * The knowledge retrieval parameter object. If this parameter is not specified, only chat is performed.
823
809
  */
824
810
  knowledgeParams?: ChatWithKnowledgeBaseStreamRequestKnowledgeParams;
825
811
  /**
826
812
  * @remarks
827
- * An object that contains parameters for the Large Language Model (LLM) call.
813
+ * The large language model (LLM) invocation parameter object.
828
814
  *
829
815
  * This parameter is required.
830
816
  */
@@ -832,7 +818,7 @@ export class ChatWithKnowledgeBaseStreamRequest extends $dara.Model {
832
818
  ownerId?: number;
833
819
  /**
834
820
  * @remarks
835
- * A template for the system prompt. It must include placeholders such as `{{text_chunks}}`, `{{user_system_prompt}}`, `{{graph_entities}}`, and `{{graph_relations}}`. If omitted, no custom prompt template is applied.
821
+ * The system prompt template. The template must include {{ text_chunks }}, {{ user_system_prompt }}, {{ graph_entities }}, and {{ graph_relations }}. If not specified, this part does not take effect.
836
822
  *
837
823
  * @example
838
824
  * "参考以下知识回答问题:{{ text_chunks }}"
@@ -840,7 +826,7 @@ export class ChatWithKnowledgeBaseStreamRequest extends $dara.Model {
840
826
  promptParams?: string;
841
827
  /**
842
828
  * @remarks
843
- * The instance\\"s region ID.
829
+ * The ID of the region where the instance resides.
844
830
  *
845
831
  * This parameter is required.
846
832
  *