@alicloud/gpdb20160503 3.6.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 (189) hide show
  1. package/dist/client.d.ts +267 -36
  2. package/dist/client.js +648 -36
  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/CreateBranchRequest.d.ts +150 -0
  18. package/dist/models/CreateBranchRequest.js +104 -0
  19. package/dist/models/CreateBranchRequest.js.map +1 -0
  20. package/dist/models/CreateBranchResponse.d.ts +19 -0
  21. package/dist/models/CreateBranchResponse.js +69 -0
  22. package/dist/models/CreateBranchResponse.js.map +1 -0
  23. package/dist/models/CreateBranchResponseBody.d.ts +37 -0
  24. package/dist/models/CreateBranchResponseBody.js +62 -0
  25. package/dist/models/CreateBranchResponseBody.js.map +1 -0
  26. package/dist/models/CreateSnapshotRequest.d.ts +55 -0
  27. package/dist/models/CreateSnapshotRequest.js +66 -0
  28. package/dist/models/CreateSnapshotRequest.js.map +1 -0
  29. package/dist/models/CreateSnapshotResponse.d.ts +19 -0
  30. package/dist/models/CreateSnapshotResponse.js +69 -0
  31. package/dist/models/CreateSnapshotResponse.js.map +1 -0
  32. package/dist/models/CreateSnapshotResponseBody.d.ts +45 -0
  33. package/dist/models/CreateSnapshotResponseBody.js +64 -0
  34. package/dist/models/CreateSnapshotResponseBody.js.map +1 -0
  35. package/dist/models/CreateSupabaseProjectRequest.d.ts +62 -48
  36. package/dist/models/CreateSupabaseProjectRequest.js.map +1 -1
  37. package/dist/models/CreateSupabaseProjectResponseBody.d.ts +4 -4
  38. package/dist/models/DeleteBranchRequest.d.ts +31 -0
  39. package/dist/models/DeleteBranchRequest.js +60 -0
  40. package/dist/models/DeleteBranchRequest.js.map +1 -0
  41. package/dist/models/DeleteBranchResponse.d.ts +19 -0
  42. package/dist/models/DeleteBranchResponse.js +69 -0
  43. package/dist/models/DeleteBranchResponse.js.map +1 -0
  44. package/dist/models/DeleteBranchResponseBody.d.ts +21 -0
  45. package/dist/models/DeleteBranchResponseBody.js +58 -0
  46. package/dist/models/DeleteBranchResponseBody.js.map +1 -0
  47. package/dist/models/DeleteSnapshotRequest.d.ts +34 -0
  48. package/dist/models/DeleteSnapshotRequest.js +62 -0
  49. package/dist/models/DeleteSnapshotRequest.js.map +1 -0
  50. package/dist/models/DeleteSnapshotResponse.d.ts +19 -0
  51. package/dist/models/DeleteSnapshotResponse.js +69 -0
  52. package/dist/models/DeleteSnapshotResponse.js.map +1 -0
  53. package/dist/models/DeleteSnapshotResponseBody.d.ts +18 -0
  54. package/dist/models/DeleteSnapshotResponseBody.js +58 -0
  55. package/dist/models/DeleteSnapshotResponseBody.js.map +1 -0
  56. package/dist/models/DescribeBranchRequest.d.ts +31 -0
  57. package/dist/models/DescribeBranchRequest.js +60 -0
  58. package/dist/models/DescribeBranchRequest.js.map +1 -0
  59. package/dist/models/DescribeBranchResponse.d.ts +19 -0
  60. package/dist/models/DescribeBranchResponse.js +69 -0
  61. package/dist/models/DescribeBranchResponse.js.map +1 -0
  62. package/dist/models/DescribeBranchResponseBody.d.ts +211 -0
  63. package/dist/models/DescribeBranchResponseBody.js +138 -0
  64. package/dist/models/DescribeBranchResponseBody.js.map +1 -0
  65. package/dist/models/GetBranchSchemaRequest.d.ts +51 -0
  66. package/dist/models/GetBranchSchemaRequest.js +64 -0
  67. package/dist/models/GetBranchSchemaRequest.js.map +1 -0
  68. package/dist/models/GetBranchSchemaResponse.d.ts +19 -0
  69. package/dist/models/GetBranchSchemaResponse.js +69 -0
  70. package/dist/models/GetBranchSchemaResponse.js.map +1 -0
  71. package/dist/models/GetBranchSchemaResponseBody.d.ts +29 -0
  72. package/dist/models/GetBranchSchemaResponseBody.js +60 -0
  73. package/dist/models/GetBranchSchemaResponseBody.js.map +1 -0
  74. package/dist/models/ListBranchesRequest.d.ts +106 -0
  75. package/dist/models/ListBranchesRequest.js +74 -0
  76. package/dist/models/ListBranchesRequest.js.map +1 -0
  77. package/dist/models/ListBranchesResponse.d.ts +19 -0
  78. package/dist/models/ListBranchesResponse.js +69 -0
  79. package/dist/models/ListBranchesResponse.js.map +1 -0
  80. package/dist/models/ListBranchesResponseBody.d.ts +138 -0
  81. package/dist/models/ListBranchesResponseBody.js +190 -0
  82. package/dist/models/ListBranchesResponseBody.js.map +1 -0
  83. package/dist/models/PauseSaasServiceRequest.d.ts +26 -0
  84. package/dist/models/PauseSaasServiceRequest.js +60 -0
  85. package/dist/models/PauseSaasServiceRequest.js.map +1 -0
  86. package/dist/models/PauseSaasServiceResponse.d.ts +19 -0
  87. package/dist/models/PauseSaasServiceResponse.js +69 -0
  88. package/dist/models/PauseSaasServiceResponse.js.map +1 -0
  89. package/dist/models/PauseSaasServiceResponseBody.d.ts +23 -0
  90. package/dist/models/PauseSaasServiceResponseBody.js +60 -0
  91. package/dist/models/PauseSaasServiceResponseBody.js.map +1 -0
  92. package/dist/models/QueryContentAdvanceRequest.d.ts +57 -70
  93. package/dist/models/QueryContentAdvanceRequest.js +2 -0
  94. package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
  95. package/dist/models/QueryContentRequest.d.ts +57 -70
  96. package/dist/models/QueryContentRequest.js +2 -0
  97. package/dist/models/QueryContentRequest.js.map +1 -1
  98. package/dist/models/QueryContentResponseBody.d.ts +10 -11
  99. package/dist/models/QueryContentResponseBody.js.map +1 -1
  100. package/dist/models/QueryContentShrinkRequest.d.ts +52 -66
  101. package/dist/models/QueryContentShrinkRequest.js.map +1 -1
  102. package/dist/models/QueryKnowledgeBasesContentRequest.d.ts +62 -78
  103. package/dist/models/QueryKnowledgeBasesContentRequest.js +2 -0
  104. package/dist/models/QueryKnowledgeBasesContentRequest.js.map +1 -1
  105. package/dist/models/QueryKnowledgeBasesContentResponseBody.d.ts +11 -25
  106. package/dist/models/QueryKnowledgeBasesContentResponseBody.js.map +1 -1
  107. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.d.ts +11 -15
  108. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js.map +1 -1
  109. package/dist/models/RestartSupabaseProjectRequest.d.ts +31 -0
  110. package/dist/models/RestartSupabaseProjectRequest.js +60 -0
  111. package/dist/models/RestartSupabaseProjectRequest.js.map +1 -0
  112. package/dist/models/RestartSupabaseProjectResponse.d.ts +19 -0
  113. package/dist/models/RestartSupabaseProjectResponse.js +69 -0
  114. package/dist/models/RestartSupabaseProjectResponse.js.map +1 -0
  115. package/dist/models/RestartSupabaseProjectResponseBody.d.ts +21 -0
  116. package/dist/models/RestartSupabaseProjectResponseBody.js +58 -0
  117. package/dist/models/RestartSupabaseProjectResponseBody.js.map +1 -0
  118. package/dist/models/RestoreSnapshotRequest.d.ts +73 -0
  119. package/dist/models/RestoreSnapshotRequest.js +70 -0
  120. package/dist/models/RestoreSnapshotRequest.js.map +1 -0
  121. package/dist/models/RestoreSnapshotResponse.d.ts +19 -0
  122. package/dist/models/RestoreSnapshotResponse.js +69 -0
  123. package/dist/models/RestoreSnapshotResponse.js.map +1 -0
  124. package/dist/models/RestoreSnapshotResponseBody.d.ts +37 -0
  125. package/dist/models/RestoreSnapshotResponseBody.js +62 -0
  126. package/dist/models/RestoreSnapshotResponseBody.js.map +1 -0
  127. package/dist/models/ResumeSaasServiceRequest.d.ts +26 -0
  128. package/dist/models/ResumeSaasServiceRequest.js +60 -0
  129. package/dist/models/ResumeSaasServiceRequest.js.map +1 -0
  130. package/dist/models/ResumeSaasServiceResponse.d.ts +19 -0
  131. package/dist/models/ResumeSaasServiceResponse.js +69 -0
  132. package/dist/models/ResumeSaasServiceResponse.js.map +1 -0
  133. package/dist/models/ResumeSaasServiceResponseBody.d.ts +23 -0
  134. package/dist/models/ResumeSaasServiceResponseBody.js +60 -0
  135. package/dist/models/ResumeSaasServiceResponseBody.js.map +1 -0
  136. package/dist/models/model.d.ts +40 -0
  137. package/dist/models/model.js +103 -22
  138. package/dist/models/model.js.map +1 -1
  139. package/package.json +1 -1
  140. package/src/client.ts +720 -36
  141. package/src/models/ChatWithKnowledgeBaseRequest.ts +70 -111
  142. package/src/models/ChatWithKnowledgeBaseResponseBody.ts +45 -52
  143. package/src/models/ChatWithKnowledgeBaseShrinkRequest.ts +5 -6
  144. package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +73 -87
  145. package/src/models/ChatWithKnowledgeBaseStreamResponseBody.ts +44 -50
  146. package/src/models/ChatWithKnowledgeBaseStreamShrinkRequest.ts +6 -6
  147. package/src/models/CreateBranchRequest.ts +200 -0
  148. package/src/models/CreateBranchResponse.ts +40 -0
  149. package/src/models/CreateBranchResponseBody.ts +54 -0
  150. package/src/models/CreateSnapshotRequest.ts +76 -0
  151. package/src/models/CreateSnapshotResponse.ts +40 -0
  152. package/src/models/CreateSnapshotResponseBody.ts +64 -0
  153. package/src/models/CreateSupabaseProjectRequest.ts +62 -48
  154. package/src/models/CreateSupabaseProjectResponseBody.ts +4 -4
  155. package/src/models/DeleteBranchRequest.ts +46 -0
  156. package/src/models/DeleteBranchResponse.ts +40 -0
  157. package/src/models/DeleteBranchResponseBody.ts +34 -0
  158. package/src/models/DeleteSnapshotRequest.ts +51 -0
  159. package/src/models/DeleteSnapshotResponse.ts +40 -0
  160. package/src/models/DeleteSnapshotResponseBody.ts +31 -0
  161. package/src/models/DescribeBranchRequest.ts +46 -0
  162. package/src/models/DescribeBranchResponse.ts +40 -0
  163. package/src/models/DescribeBranchResponseBody.ts +286 -0
  164. package/src/models/GetBranchSchemaRequest.ts +70 -0
  165. package/src/models/GetBranchSchemaResponse.ts +40 -0
  166. package/src/models/GetBranchSchemaResponseBody.ts +44 -0
  167. package/src/models/ListBranchesRequest.ts +135 -0
  168. package/src/models/ListBranchesResponse.ts +40 -0
  169. package/src/models/ListBranchesResponseBody.ts +247 -0
  170. package/src/models/PauseSaasServiceRequest.ts +41 -0
  171. package/src/models/PauseSaasServiceResponse.ts +40 -0
  172. package/src/models/PauseSaasServiceResponseBody.ts +38 -0
  173. package/src/models/QueryContentAdvanceRequest.ts +60 -71
  174. package/src/models/QueryContentRequest.ts +60 -71
  175. package/src/models/QueryContentResponseBody.ts +10 -11
  176. package/src/models/QueryContentShrinkRequest.ts +53 -67
  177. package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -78
  178. package/src/models/QueryKnowledgeBasesContentResponseBody.ts +11 -25
  179. package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +11 -15
  180. package/src/models/RestartSupabaseProjectRequest.ts +46 -0
  181. package/src/models/RestartSupabaseProjectResponse.ts +40 -0
  182. package/src/models/RestartSupabaseProjectResponseBody.ts +34 -0
  183. package/src/models/RestoreSnapshotRequest.ts +98 -0
  184. package/src/models/RestoreSnapshotResponse.ts +40 -0
  185. package/src/models/RestoreSnapshotResponseBody.ts +54 -0
  186. package/src/models/ResumeSaasServiceRequest.ts +41 -0
  187. package/src/models/ResumeSaasServiceResponse.ts +40 -0
  188. package/src/models/ResumeSaasServiceResponseBody.ts +38 -0
  189. package/src/models/model.ts +40 -0
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgsRrf extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The constant `k` in the reciprocal rank fusion formula `1/(k + rank_i)`. The value must be a positive integer greater than 1.
8
+ * The k constant in the scoring algorithm 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 ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgsRrf exten
35
35
  export class ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgsWeight extends $dara.Model {
36
36
  /**
37
37
  * @remarks
38
- * An array of weights corresponding to each collection specified in `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 ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgsWeight ex
65
65
  export class ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgs extends $dara.Model {
66
66
  /**
67
67
  * @remarks
68
- * Parameters to use when `MergeMethod` is set to `RRF`.
68
+ * The configurable parameters when MergeMethod is set to RRF.
69
69
  */
70
70
  rrf?: ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgsRrf;
71
71
  /**
72
72
  * @remarks
73
- * Parameters to use when `MergeMethod` is set to `Weight`.
73
+ * The configurable parameters when MergeMethod is set to Weight.
74
74
  */
75
75
  weight?: ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgsWeight;
76
76
  static names(): { [key: string]: string } {
@@ -104,17 +104,11 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgs extends
104
104
 
105
105
  export class ChatWithKnowledgeBaseRequestKnowledgeParamsRerankModel extends $dara.Model {
106
106
  /**
107
- * @remarks
108
- * The instruction or prompt for the reranking model.
109
- *
110
107
  * @example
111
108
  * Given a web search query, retrieve relevant passages that answer the query
112
109
  */
113
110
  instruct?: string;
114
111
  /**
115
- * @remarks
116
- * The name of the reranking model.
117
- *
118
112
  * @example
119
113
  * qwen3-rerank
120
114
  */
@@ -145,7 +139,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsRerankModel extends $dar
145
139
  export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParamsGraphSearchArgs extends $dara.Model {
146
140
  /**
147
141
  * @remarks
148
- * The maximum number of entities and relationship edges to return from the knowledge graph search. Default: 60.
142
+ * The number of top entities and relationship edges to return. Default value: 60.
149
143
  *
150
144
  * @example
151
145
  * 60
@@ -174,25 +168,21 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
174
168
 
175
169
  export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel extends $dara.Model {
176
170
  /**
177
- * @remarks
178
- * The instruction or prompt for the reranking model.
179
- *
180
171
  * @example
181
172
  * Given a web search query, retrieve relevant passages that answer the query
182
173
  */
183
174
  instruct?: string;
184
175
  /**
185
- * @remarks
186
- * The name of the reranking model.
187
- *
188
176
  * @example
189
177
  * qwen3-rerank
190
178
  */
191
179
  name?: string;
180
+ rerankMetadataFields?: string;
192
181
  static names(): { [key: string]: string } {
193
182
  return {
194
183
  instruct: 'Instruct',
195
184
  name: 'Name',
185
+ rerankMetadataFields: 'RerankMetadataFields',
196
186
  };
197
187
  }
198
188
 
@@ -200,6 +190,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
200
190
  return {
201
191
  instruct: 'string',
202
192
  name: 'string',
193
+ rerankMetadataFields: 'string',
203
194
  };
204
195
  }
205
196
 
@@ -215,7 +206,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
215
206
  export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParams extends $dara.Model {
216
207
  /**
217
208
  * @remarks
218
- * A filter to apply to the search, specified as a SQL `WHERE` clause.
209
+ * The filter condition for the data to be updated, in SQL WHERE clause format.
219
210
  *
220
211
  * @example
221
212
  * id = \\"llm-t87l87fxuhn56woc_8anu8j2d3f_file_e74635e2cc314e838543e724f6b3b1f2_10658020\\"
@@ -223,7 +214,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
223
214
  filter?: string;
224
215
  /**
225
216
  * @remarks
226
- * Whether to enhance the search with a knowledge graph. Default: `false`.
217
+ * Specifies whether to enable knowledge graph enhancement. Default value: false.
227
218
  *
228
219
  * @example
229
220
  * false
@@ -231,20 +222,18 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
231
222
  graphEnhance?: boolean;
232
223
  /**
233
224
  * @remarks
234
- * Parameters for the knowledge graph search, used when `GraphEnhance` is `true`.
225
+ * The number of top entities and relationship edges to return. Default value: 60.
235
226
  */
236
227
  graphSearchArgs?: ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParamsGraphSearchArgs;
237
228
  /**
238
229
  * @remarks
239
- * The multi-channel recall algorithm. If omitted, the system directly compares and sorts scores from dense vector retrieval and full-text search.
230
+ * The multi-path recall algorithm. Default is empty (i.e., directly compares and sorts the dense vector and full-text scores).
240
231
  *
241
232
  * Valid values:
242
233
  *
243
- * - `RRF`: Uses reciprocal rank fusion. The fusion effect is controlled by the `k` parameter in `HybridSearchArgs`.
244
- *
245
- * - `Weight`: Uses weighted sorting. The weights for vector retrieval and full-text search scores are controlled by parameters in `HybridSearchArgs`.
246
- *
247
- * - `Cascaded`: Performs a full-text search first, followed by a vector retrieval on the results.
234
+ * - RRF: Reciprocal Rank Fusion. Has a parameter k to control the fusion effect. See HybridSearchArgs configuration for details.
235
+ * - Weight: Weight-based sorting. Uses parameters to control the score weights of vector and full-text retrieval, then sorts. See HybridSearchArgs configuration for details.
236
+ * - Cascaded: First performs full-text retrieval, then performs vector retrieval on top of it.
248
237
  *
249
238
  * @example
250
239
  * RRF
@@ -252,10 +241,9 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
252
241
  hybridSearch?: string;
253
242
  /**
254
243
  * @remarks
255
- * Parameters for the multi-channel recall algorithm. `RRF` and `Weight` are supported. The `HybridPathsSetting` parameter can specify the recall channels: `dense` (dense vector), `sparse` (sparse vector), and `fulltext` (full-text search). If this parameter is empty, `dense` and `fulltext` are used by default.
256
- *
257
- * - `RRF`: Specifies the constant `k` in the formula `1/(k+rank_i)`. The value must be a positive integer greater than 1. Format:
244
+ * The algorithm parameters for multi-path recall. Currently supports RRF and Weight. HybridPathsSetting can specify recall of dense vectors (dense), sparse vectors (sparse), and full-text retrieval (fulltext). If the value is empty, dense vectors (dense) and full-text retrieval (fulltext) are recalled by default.
258
245
  *
246
+ * - RRF: Specifies the k constant in the scoring algorithm `1/(k+rank_i)`. The value must be a positive integer greater than 1. Format:
259
247
  * ```
260
248
  * {
261
249
  * "HybridPathsSetting": {
@@ -267,12 +255,9 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
267
255
  * }
268
256
  * ```
269
257
  *
270
- * - `Weight`:
271
- *
272
- * - Two-channel recall (if `HybridPathsSetting` is not specified, only `alpha` is required):
273
- *
274
- * - Formula: `alpha * dense_score + (1-alpha) * fulltext_score`. The `alpha` parameter represents the weight of the dense vector score relative to the full-text search score. The value must be in the range [0, 1]. A value of 0 uses only full-text search. A value of 1 uses only dense vector retrieval.
275
- *
258
+ * - Weight:
259
+ * - Dual-path recall (without specifying HybridPathsSetting, only specifying alpha):
260
+ * - Formula: alpha * dense_score + (1-alpha) * fulltext_score. The parameter alpha represents the score weight between dense vector and full-text retrieval, ranging from 0 to 1, where 0 means full-text only and 1 means dense vector only:
276
261
  * ```
277
262
  * {
278
263
  * "Weight": {
@@ -280,11 +265,8 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
280
265
  * }
281
266
  * }
282
267
  * ```
283
- *
284
- * - Three-channel recall:
285
- *
286
- * - Formula: `normalized_dense * dense_score + normalized_sparse * sparse_score + normalized_fulltext * fulltext_score`. The `dense`, `sparse`, and `fulltext` parameters represent the weights for each channel and must be greater than or equal to 0. The system automatically normalizes these weights (for example, `normalized_x = x / (dense + sparse + fulltext)`).
287
- *
268
+ * - Three-path recall mode:
269
+ * - Formula: normalized_dense * dense_score + normalized_sparse * sparse_score + normalized_fulltext * fulltext_score. Where dense, sparse, and fulltext represent the weights for dense vector, sparse vector, and full-text retrieval respectively, with values greater than or equal to 0. The system automatically normalizes the weights to the range 0-1 (i.e., normalized_x = x / (dense + sparse + fulltext)).
288
270
  * ```
289
271
  * {
290
272
  * "HybridPathsSetting": {
@@ -301,13 +283,10 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
301
283
  hybridSearchArgs?: { [key: string]: any };
302
284
  /**
303
285
  * @remarks
304
- * The distance metric used for vector indexing. Valid values:
305
- *
306
- * - `l2`: euclidean distance.
307
- *
308
- * - `ip`: Inner product (dot product) distance.
309
- *
310
- * - `cosine`: cosine similarity.
286
+ * The method used when building the vector index. Valid values:
287
+ * - l2: Euclidean distance.
288
+ * - ip: Inner product distance.
289
+ * - cosine: Cosine similarity.
311
290
  *
312
291
  * @example
313
292
  * cosine
@@ -315,33 +294,25 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
315
294
  metrics?: string;
316
295
  /**
317
296
  * @remarks
318
- * The recall window. If specified, expands the context around retrieved text chunks. Must be an array of two integers, `[A, B]`, where `A` is the number of preceding chunks to include (from -10 to 0) and `B` is the number of following chunks (from 0 to 10).
319
- *
320
- * > - We recommend that you use this parameter when document chunks are highly fragmented and retrieval might result in a loss of context.
321
- * >
322
- * > - Reranking is performed before windowing is applied.
297
+ * The recall window. When this value is not empty, additional context of the retrieval results is returned. The format is a 2-element array: List<A, B>, where -10 <= A <= 0 and 0 <= B <= 10.
298
+ * > - It is recommended to use this parameter when document segmentation is too granular and retrieval may lose contextual information.
299
+ * > - Reranking takes priority over windowing, meaning reranking is performed first, then windowing is applied.
323
300
  */
324
301
  recallWindow?: number[];
325
302
  /**
326
303
  * @remarks
327
- * The reranking factor for this collection, which overrides the top-level `RerankFactor`. If specified, it reranks the initial retrieval results to improve relevance. Valid range: (1, 5].
328
- *
329
- * > - Reranking may be less efficient if document chunks are sparse.
330
- * >
331
- * > - We recommend that the number of items to rerank, calculated as `Ceiling(TopK * RerankFactor)`, does not exceed 50.
304
+ * The reranking factor. When this value is not empty, the vector retrieval results are reranked. Value range: 1 < RerankFactor <= 5.
305
+ * > - Reranking is slow when document segmentation is sparse.
306
+ * > - It is recommended that the number of items to rerank (TopK * Factor, rounded up) does not exceed 50.
332
307
  *
333
308
  * @example
334
309
  * 1.5
335
310
  */
336
311
  rerankFactor?: number;
337
- /**
338
- * @remarks
339
- * The model to use for reranking.
340
- */
341
312
  rerankModel?: ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel;
342
313
  /**
343
314
  * @remarks
344
- * The number of top results to return from this collection before merging.
315
+ * The number of top results to return.
345
316
  *
346
317
  * @example
347
318
  * 10
@@ -349,7 +320,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
349
320
  topK?: number;
350
321
  /**
351
322
  * @remarks
352
- * Whether to enable full-text search in addition to vector retrieval. Default: `false` (uses only vector retrieval).
323
+ * Specifies whether to use full-text retrieval (dual-path recall). Default value: false, which means only vector retrieval is used.
353
324
  *
354
325
  * @example
355
326
  * true
@@ -411,7 +382,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
411
382
  export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollection extends $dara.Model {
412
383
  /**
413
384
  * @remarks
414
- * The name of the collection to query.
385
+ * The name of the collection to recall.
415
386
  *
416
387
  * This parameter is required.
417
388
  *
@@ -421,9 +392,9 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollection extends
421
392
  collection?: string;
422
393
  /**
423
394
  * @remarks
424
- * The namespace where the collection resides. Default: `public`.
395
+ * The namespace. Default value: public.
425
396
  *
426
- * > You can create a namespace by calling the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation and view existing namespaces by calling the [ListNamespaces](https://help.aliyun.com/document_detail/2401502.html) operation.
397
+ * > You can create a namespace by calling the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation, and view the list by calling the [ListNamespaces](https://help.aliyun.com/document_detail/2401502.html) operation.
427
398
  *
428
399
  * @example
429
400
  * dukang
@@ -431,9 +402,9 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollection extends
431
402
  namespace?: string;
432
403
  /**
433
404
  * @remarks
434
- * The password for the specified namespace.
405
+ * The password corresponding to the namespace.
435
406
  *
436
- * > This password is set when you call the `CreateNamespace` operation.
407
+ * > This value is specified in the CreateNamespace operation.
437
408
  *
438
409
  * This parameter is required.
439
410
  *
@@ -443,7 +414,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollection extends
443
414
  namespacePassword?: string;
444
415
  /**
445
416
  * @remarks
446
- * Retrieval parameters for this knowledge base collection.
417
+ * The parameters related to knowledge base retrieval.
447
418
  */
448
419
  queryParams?: ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParams;
449
420
  static names(): { [key: string]: string } {
@@ -479,11 +450,9 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollection extends
479
450
  export class ChatWithKnowledgeBaseRequestKnowledgeParams extends $dara.Model {
480
451
  /**
481
452
  * @remarks
482
- * The method for merging results from multiple knowledge bases. Default: `RRF`. Valid values:
483
- *
484
- * - `RRF`
485
- *
486
- * - `Weight`
453
+ * The method for merging multiple knowledge bases. Default is RRF. Valid values:
454
+ * - RRF
455
+ * - Weight
487
456
  *
488
457
  * @example
489
458
  * "RRF"
@@ -491,36 +460,30 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParams extends $dara.Model {
491
460
  mergeMethod?: string;
492
461
  /**
493
462
  * @remarks
494
- * The parameters for the merge method.
463
+ * The parameters for multi-knowledge base fusion.
495
464
  */
496
465
  mergeMethodArgs?: ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgs;
497
466
  /**
498
467
  * @remarks
499
- * The reranking factor. Specify this to rerank the initial vector retrieval results for improved relevance. Valid range: (1, 5].
500
- *
501
- * > - Reranking may be less efficient if document chunks are sparse.
502
- * >
503
- * > - We recommend that the number of items to rerank, calculated as `Ceiling(TopK * RerankFactor)`, does not exceed 50.
468
+ * The reranking factor. When this value is not empty, the vector retrieval results are reranked. Value range: 1 < RerankFactor <= 5.
469
+ * > - Reranking is slow when document segmentation is sparse.
470
+ * > - It is recommended that the number of items to rerank (TopK * Factor, rounded up) does not exceed 50.
504
471
  *
505
472
  * @example
506
473
  * 1.0001
507
474
  */
508
475
  rerankFactor?: number;
509
- /**
510
- * @remarks
511
- * The model to use for reranking.
512
- */
513
476
  rerankModel?: ChatWithKnowledgeBaseRequestKnowledgeParamsRerankModel;
514
477
  /**
515
478
  * @remarks
516
- * An array of knowledge base collections to query.
479
+ * The list of knowledge bases.
517
480
  *
518
481
  * This parameter is required.
519
482
  */
520
483
  sourceCollection?: ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollection[];
521
484
  /**
522
485
  * @remarks
523
- * The number of top results to return after the results from multiple vector collection recalls are merged.
486
+ * The number of top results to return after merging the recall results from multiple vector collections.
524
487
  *
525
488
  * @example
526
489
  * 10
@@ -569,7 +532,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParams extends $dara.Model {
569
532
  export class ChatWithKnowledgeBaseRequestModelParamsMessages extends $dara.Model {
570
533
  /**
571
534
  * @remarks
572
- * The content of the message.
535
+ * The message content.
573
536
  *
574
537
  * This parameter is required.
575
538
  *
@@ -579,13 +542,10 @@ export class ChatWithKnowledgeBaseRequestModelParamsMessages extends $dara.Model
579
542
  content?: string;
580
543
  /**
581
544
  * @remarks
582
- * The role of the message author. Valid values:
583
- *
584
- * - `system`
585
- *
586
- * - `user`
587
- *
588
- * - `assistant`
545
+ * The message role. Valid values:
546
+ * - system
547
+ * - user
548
+ * - assistant
589
549
  *
590
550
  * This parameter is required.
591
551
  *
@@ -619,7 +579,7 @@ export class ChatWithKnowledgeBaseRequestModelParamsMessages extends $dara.Model
619
579
  export class ChatWithKnowledgeBaseRequestModelParamsToolsFunction extends $dara.Model {
620
580
  /**
621
581
  * @remarks
622
- * The description of the function tool.
582
+ * The function tool description.
623
583
  *
624
584
  * @example
625
585
  * 获取天气。
@@ -627,7 +587,7 @@ export class ChatWithKnowledgeBaseRequestModelParamsToolsFunction extends $dara.
627
587
  description?: string;
628
588
  /**
629
589
  * @remarks
630
- * The name of the function tool.
590
+ * The function tool name.
631
591
  *
632
592
  * @example
633
593
  * get_weather
@@ -635,7 +595,7 @@ export class ChatWithKnowledgeBaseRequestModelParamsToolsFunction extends $dara.
635
595
  name?: string;
636
596
  /**
637
597
  * @remarks
638
- * The JSON schema of the function parameters.
598
+ * The function parameters in JSON Schema format.
639
599
  *
640
600
  * @example
641
601
  * {"type": "object", ...}
@@ -707,14 +667,14 @@ export class ChatWithKnowledgeBaseRequestModelParams extends $dara.Model {
707
667
  maxTokens?: number;
708
668
  /**
709
669
  * @remarks
710
- * The list of messages that form the conversation history.
670
+ * The message list.
711
671
  *
712
672
  * This parameter is required.
713
673
  */
714
674
  messages?: ChatWithKnowledgeBaseRequestModelParamsMessages[];
715
675
  /**
716
676
  * @remarks
717
- * The name of the large language model to use. For a list of available models, see the [Model Studio documentation](https://help.aliyun.com/zh/model-studio/compatibility-of-openai-with-dashscope?spm=a2c4g.11186623.help-menu-2400256.d_2_10_0.45b5516eZIciC8\\&scm=20140722.H_2833609._.OR_help-T_cn~zh-V_1#eadfc13038jd5).
677
+ * The name of the large model to use. For valid values, see: [Bailian Help Documentation](https://help.aliyun.com/zh/model-studio/compatibility-of-openai-with-dashscope?spm=a2c4g.11186623.help-menu-2400256.d_2_10_0.45b5516eZIciC8&scm=20140722.H_2833609._.OR_help-T_cn~zh-V_1#eadfc13038jd5)
718
678
  *
719
679
  * This parameter is required.
720
680
  *
@@ -724,7 +684,7 @@ export class ChatWithKnowledgeBaseRequestModelParams extends $dara.Model {
724
684
  model?: string;
725
685
  /**
726
686
  * @remarks
727
- * The number of candidate responses to generate.
687
+ * The number of candidate replies to generate.
728
688
  *
729
689
  * @example
730
690
  * 1
@@ -732,7 +692,7 @@ export class ChatWithKnowledgeBaseRequestModelParams extends $dara.Model {
732
692
  n?: number;
733
693
  /**
734
694
  * @remarks
735
- * The presence penalty. Valid range: [-2.0, 2.0].
695
+ * The presence penalty coefficient (-2.0 to 2.0).
736
696
  *
737
697
  * @example
738
698
  * 1.0
@@ -748,12 +708,12 @@ export class ChatWithKnowledgeBaseRequestModelParams extends $dara.Model {
748
708
  seed?: number;
749
709
  /**
750
710
  * @remarks
751
- * A list of stop words.
711
+ * The stop word list.
752
712
  */
753
713
  stop?: string[];
754
714
  /**
755
715
  * @remarks
756
- * The sampling temperature. Valid range: (0, 2.0].
716
+ * The sampling temperature (0 to 2).
757
717
  *
758
718
  * @example
759
719
  * 0.6
@@ -761,12 +721,12 @@ export class ChatWithKnowledgeBaseRequestModelParams extends $dara.Model {
761
721
  temperature?: number;
762
722
  /**
763
723
  * @remarks
764
- * The list of tools.
724
+ * The tool list.
765
725
  */
766
726
  tools?: ChatWithKnowledgeBaseRequestModelParamsTools[];
767
727
  /**
768
728
  * @remarks
769
- * The probability threshold for nucleus sampling. Valid range: (0, 1.0).
729
+ * The nucleus sampling probability threshold (0 to 1).
770
730
  *
771
731
  * @example
772
732
  * 0.9
@@ -824,8 +784,7 @@ export class ChatWithKnowledgeBaseRequest extends $dara.Model {
824
784
  /**
825
785
  * @remarks
826
786
  * The instance ID.
827
- *
828
- * > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/196830.html) operation to view the details of all instances in a target region, including their instance IDs.
787
+ * > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/196830.html) operation to query the details of all instances in the target region, including the instance ID.
829
788
  *
830
789
  * This parameter is required.
831
790
  *
@@ -835,7 +794,7 @@ export class ChatWithKnowledgeBaseRequest extends $dara.Model {
835
794
  DBInstanceId?: string;
836
795
  /**
837
796
  * @remarks
838
- * Whether to include the raw retrieval results from the knowledge base in the response. Default: `false`.
797
+ * Specifies whether to return the recall results. Default value: false.
839
798
  *
840
799
  * @example
841
800
  * false
@@ -843,12 +802,12 @@ export class ChatWithKnowledgeBaseRequest extends $dara.Model {
843
802
  includeKnowledgeBaseResults?: boolean;
844
803
  /**
845
804
  * @remarks
846
- * Parameters for knowledge retrieval. If omitted, the operation performs a standard chat without retrieving from a knowledge base.
805
+ * The knowledge retrieval parameter object. If not specified, only chat is performed.
847
806
  */
848
807
  knowledgeParams?: ChatWithKnowledgeBaseRequestKnowledgeParams;
849
808
  /**
850
809
  * @remarks
851
- * The parameters for calling the large language model (LLM).
810
+ * The large language model (LLM) invocation parameter object.
852
811
  *
853
812
  * This parameter is required.
854
813
  */
@@ -856,7 +815,7 @@ export class ChatWithKnowledgeBaseRequest extends $dara.Model {
856
815
  ownerId?: number;
857
816
  /**
858
817
  * @remarks
859
- * A custom system prompt template. If specified, it overrides the default prompt. The template must include the {{ text_chunks }}, {{ user_system_prompt }}, {{ graph_entities }}, and {{ graph_relations }} placeholders.
818
+ * The system prompt template, which must include {{ text_chunks }}, {{ user_system_prompt }}, {{ graph_entities }}, and {{ graph_relations }}. If not specified, this part does not take effect.
860
819
  *
861
820
  * @example
862
821
  * "参考以下知识回答问题:{{ text_chunks }}"