@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
@@ -7,7 +7,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
7
7
  * @remarks
8
8
  * The name of the document collection.
9
9
  *
10
- * > A document collection is created by calling the [CreateDocumentCollection](https://help.aliyun.com/document_detail/2618448.html) operation. Call the [ListDocumentCollections](https://help.aliyun.com/document_detail/2618452.html) operation to list your document collections.
10
+ * > The document collection is created by calling the [CreateDocumentCollection](https://help.aliyun.com/document_detail/2618448.html) operation. You can call the [ListDocumentCollections](https://help.aliyun.com/document_detail/2618452.html) operation to query existing document collections.
11
11
  *
12
12
  * This parameter is required.
13
13
  *
@@ -17,7 +17,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
17
17
  collection?: string;
18
18
  /**
19
19
  * @remarks
20
- * The text to use for retrieval.
20
+ * The text content used for retrieval.
21
21
  *
22
22
  * @example
23
23
  * What is AnalyticDB for PostgreSQL?
@@ -27,7 +27,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
27
27
  * @remarks
28
28
  * The instance ID.
29
29
  *
30
- * > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to find the IDs of all AnalyticDB for PostgreSQL instances in a region.
30
+ * > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to query the details of all AnalyticDB for PostgreSQL instances in a region, including instance IDs.
31
31
  *
32
32
  * This parameter is required.
33
33
  *
@@ -37,9 +37,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
37
37
  DBInstanceId?: string;
38
38
  /**
39
39
  * @remarks
40
- * The filename of the source image for a search-by-image query.
40
+ * The name of the source image file to search in image-to-image search scenarios.
41
41
  *
42
- * > The image file must have a file extension. The supported extensions are bmp, jpg, jpeg, png, and tiff.
42
+ * > The image file must have a file extension. Supported image extensions: bmp, jpg, jpeg, png, and tiff.
43
43
  *
44
44
  * @example
45
45
  * test.jpg
@@ -47,9 +47,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
47
47
  fileName?: string;
48
48
  /**
49
49
  * @remarks
50
- * The publicly accessible URL of the image file for a search-by-image query.
50
+ * The publicly accessible URL of the image file in image-to-image search scenarios.
51
51
  *
52
- * > The image file must have a file extension. The supported extensions are bmp, jpg, jpeg, png, and tiff.
52
+ * > The image file must have a file extension. Supported image extensions: bmp, jpg, jpeg, png, and tiff.
53
53
  *
54
54
  * @example
55
55
  * https://xx/myImage.jpg
@@ -57,9 +57,10 @@ export class QueryContentShrinkRequest extends $dara.Model {
57
57
  fileUrl?: string;
58
58
  /**
59
59
  * @remarks
60
- * A filter condition for the query, specified as a SQL `WHERE` clause that returns a boolean value. The clause can use comparison operators (such as `=`, `<>`, `!=`, `>`, `<`, `>=`, and `<=`), logical operators (`AND`, `OR`, and `NOT`), and keywords such as `IN`, `BETWEEN`, and `LIKE`.
60
+ * The filter condition for the data to query, in SQL WHERE clause format. The filter is an expression that returns a Boolean value (true or false). Conditions can be simple comparison operators such as equal to (=), not equal to (<> or !=), greater than (>), less than (<), greater than or equal to (>=), and less than or equal to (<=). Conditions can also be more complex expressions combined with logical operators (AND, OR, NOT), as well as conditions using the IN, BETWEEN, and LIKE keywords.
61
61
  *
62
- * > - For details about the syntax, see https\\://www\\.postgresqltutorial.com/postgresql-tutorial/postgresql-where/.
62
+ * >
63
+ * > - For detailed syntax, refer to: https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-where/.
63
64
  *
64
65
  * @example
65
66
  * title = \\"test\\" AND name like \\"test%\\"
@@ -67,7 +68,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
67
68
  filter?: string;
68
69
  /**
69
70
  * @remarks
70
- * Specifies whether to enable knowledge graph enhancement. The default value is `false`.
71
+ * Specifies whether to enable knowledge graph enhancement. Default value: false.
71
72
  *
72
73
  * @example
73
74
  * false
@@ -75,20 +76,18 @@ export class QueryContentShrinkRequest extends $dara.Model {
75
76
  graphEnhance?: boolean;
76
77
  /**
77
78
  * @remarks
78
- * The parameters for knowledge graph retrieval.
79
+ * The knowledge graph retrieval parameters.
79
80
  */
80
81
  graphSearchArgsShrink?: string;
81
82
  /**
82
83
  * @remarks
83
- * Specifies the hybrid search algorithm. If this parameter is not specified, the system directly compares and sorts the scores from dense vector retrieval and full-text search.
84
+ * The multi-channel recall algorithm. Default value: empty, which indicates that the dense vector and full-text index scores are directly compared and sorted.
84
85
  *
85
86
  * Valid values:
86
87
  *
87
- * - RRF: reciprocal rank fusion. This method uses a `k` parameter to control the fusion effect. For more information, see the `HybridSearchArgs` parameter.
88
- *
89
- * - Weight: A weighted sorting method. This method uses parameters to control the score weights of vector retrieval and full-text search before sorting. For more information, see the `HybridSearchArgs` parameter.
90
- *
91
- * - Cascaded: Performs full-text search first, and then performs vector retrieval on the results.
88
+ * - RRF: Reciprocal Rank Fusion. A parameter k controls the fusion effect. For more information, see the HybridSearchArgs configuration.
89
+ * - Weight: Weighted sorting. Parameters control the score weights of AISearch retrieve and full-text index results before sorting. For more information, see the HybridSearchArgs configuration.
90
+ * - Cascaded: Full-text index retrieve is performed first, followed by AISearch retrieve based on the full-text index results.
92
91
  *
93
92
  * @example
94
93
  * RRF
@@ -96,10 +95,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
96
95
  hybridSearch?: string;
97
96
  /**
98
97
  * @remarks
99
- * Parameters for the multi-channel recall algorithm. Currently, `RRF` and `Weight` are supported. `HybridPathsSetting` can be used to specify the recall paths, including dense vector search (`dense`), sparse vector search (`sparse`), and full-text search (`fulltext`). If this parameter is not specified, the system recalls dense vectors and full-text search results by default.
100
- *
101
- * - RRF: Specifies the constant `k` in the scoring formula `1/(k+rank_i)`. The value must be an integer greater than 1. Example:
98
+ * The algorithm parameters for multi-channel recall. RRF and Weight are supported. HybridPathsSetting specifies the recall paths: dense vectors (dense), sparse vectors (sparse), and full-text index (fulltext). If this value is empty, dense vectors (dense) and full-text index (fulltext) are used by default.
102
99
  *
100
+ * - RRF: Specifies the constant k in the score calculation formula `1/(k+rank_i)`. The value must be a positive integer greater than 1. Format:
103
101
  * ```
104
102
  * {
105
103
  * "HybridPathsSetting": {
@@ -111,12 +109,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
111
109
  * }
112
110
  * ```
113
111
  *
114
- * - Weight:
115
- *
116
- * - For dual-channel recall (if `HybridPathsSetting` is not specified, only `alpha` is configured):
117
- *
118
- * - The score is calculated using the formula: `alpha * dense_score + (1-alpha) * fulltext_score`. The `alpha` parameter represents the score weight of dense vector retrieval relative to full-text search. The value must be in the range of 0 to 1. A value of 0 indicates that only full-text search is used, and a value of 1 indicates that only dense vector retrieval is used.
119
- *
112
+ * - Weight:
113
+ * - Dual-path recall (without specifying HybridPathsSetting, only specifying alpha):
114
+ * - Formula: alpha * dense_score + (1-alpha) * fulltext_score. The alpha parameter specifies the score weight between dense vectors and full-text index retrieve. Valid values: 0 to 1, where 0 indicates full-text index only and 1 indicates dense vector only:
120
115
  * ```
121
116
  * {
122
117
  * "Weight": {
@@ -124,11 +119,8 @@ export class QueryContentShrinkRequest extends $dara.Model {
124
119
  * }
125
120
  * }
126
121
  * ```
127
- *
128
- * - For three-channel recall:
129
- *
130
- * - The score is calculated using the formula: `normalized_dense * dense_score + normalized_sparse * sparse_score + normalized_fulltext * fulltext_score`. The `dense`, `sparse`, and `fulltext` parameters represent the weights for the dense vector, sparse vector, and full-text search results, respectively. Their values must be greater than or equal to 0. The system automatically normalizes the weights to a sum of 1 (for example, `normalized_x = x / (dense + sparse + fulltext)`).
131
- *
122
+ * - Three-path recall pattern:
123
+ * - Formula: normalized_dense * dense_score + normalized_sparse * sparse_score + normalized_fulltext * fulltext_score. The dense, sparse, and fulltext values represent the weights for dense vectors, sparse vectors, and full-text index retrieve respectively. Valid values: greater than or equal to 0. The system automatically performs normalization of the weights to 0 to 1 (normalized_x = x / (dense + sparse + fulltext)).
132
124
  * ```
133
125
  * {
134
126
  * "HybridPathsSetting": {
@@ -145,7 +137,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
145
137
  hybridSearchArgsShrink?: string;
146
138
  /**
147
139
  * @remarks
148
- * Specifies whether to return the URL of the document. The default value is `false`.
140
+ * Specifies whether to synchronously return the URL of the document. By default, the URL is not returned.
149
141
  *
150
142
  * @example
151
143
  * false
@@ -153,7 +145,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
153
145
  includeFileUrl?: boolean;
154
146
  /**
155
147
  * @remarks
156
- * The metadata fields to include in the response. If left empty, no metadata is returned. To specify multiple fields, use a comma-separated list.
148
+ * The metadata fields to return. Default value: empty. Separate multiple fields with commas.
157
149
  *
158
150
  * @example
159
151
  * title,page
@@ -161,11 +153,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
161
153
  includeMetadataFields?: string;
162
154
  /**
163
155
  * @remarks
164
- * Specifies whether to include the vector in the results. The default value is `false`.
165
- *
166
- * > - **false**: The vector is not returned.
167
- * >
168
- * > - **true**: The vector is returned.
156
+ * Specifies whether to return vectors. Default value: false.
157
+ * > - **false**: Does not return vectors.
158
+ * > - **true**: Returns vectors.
169
159
  *
170
160
  * @example
171
161
  * true
@@ -173,14 +163,11 @@ export class QueryContentShrinkRequest extends $dara.Model {
173
163
  includeVector?: boolean;
174
164
  /**
175
165
  * @remarks
176
- * The similarity algorithm used for retrieval. If this parameter is not specified, the algorithm that was specified when the document collection was created is used. We recommend that you do not set this parameter unless you have specific requirements.
166
+ * The similarity algorithm used for retrieval. If this value is empty, the algorithm specified when the knowledge base was created is used. Leave this parameter empty unless you have specific requirements.
177
167
  *
178
168
  * > Valid values:
179
- * >
180
169
  * > - **l2**: Euclidean distance.
181
- * >
182
- * > - **ip**: dot product (inner product) distance.
183
- * >
170
+ * > - **ip**: inner product distance.
184
171
  * > - **cosine**: cosine similarity.
185
172
  *
186
173
  * @example
@@ -189,9 +176,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
189
176
  metrics?: string;
190
177
  /**
191
178
  * @remarks
192
- * The namespace. The default value is `public`.
179
+ * The namespace. Default value: public.
193
180
  *
194
- * > You can call the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation to create a namespace and the [ListNamespaces](https://help.aliyun.com/document_detail/2401502.html) operation to list existing namespaces.
181
+ * > You can create a namespace by calling the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation and query namespaces by calling the [ListNamespaces](https://help.aliyun.com/document_detail/2401502.html) operation.
195
182
  *
196
183
  * @example
197
184
  * mynamespace
@@ -199,9 +186,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
199
186
  namespace?: string;
200
187
  /**
201
188
  * @remarks
202
- * The password for the namespace.
189
+ * The password of the namespace.
203
190
  *
204
- * > This password is set when you call the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation.
191
+ * > This value is specified by the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation.
205
192
  *
206
193
  * This parameter is required.
207
194
  *
@@ -211,7 +198,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
211
198
  namespacePassword?: string;
212
199
  /**
213
200
  * @remarks
214
- * The offset for paginated queries.
201
+ * The offset for paged query. Used for paging through results.
215
202
  *
216
203
  * @example
217
204
  * 0
@@ -219,9 +206,13 @@ export class QueryContentShrinkRequest extends $dara.Model {
219
206
  offset?: number;
220
207
  /**
221
208
  * @remarks
222
- * The field to sort the results by. By default, this parameter is empty.
209
+ * The field used for sorting. Default value: empty.
210
+ *
211
+ * The field must belong to metadata or a default field in the table, such as id. Supported formats:
223
212
  *
224
- * The field must be a metadata field or a default field from the table, such as `id`. Supported formats include single fields (e.g., `chunk_id`), multiple comma-separated fields (e.g., `block_id, chunk_id`), and fields with a sort direction (e.g., `block_id DESC, chunk_id DESC`).
213
+ * A single field, such as chunk_id.
214
+ * Multiple fields separated by commas, such as block_id, chunk_id.
215
+ * Descending order, such as block_id DESC, chunk_id DESC.
225
216
  *
226
217
  * @example
227
218
  * created_at
@@ -230,11 +221,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
230
221
  ownerId?: number;
231
222
  /**
232
223
  * @remarks
233
- * The recall window. If this parameter is specified, additional context is returned with the retrieval results. The value must be a two-element array, `[A, B]`, where `-10 <= A <= 0` and `0 <= B <= 10`.
234
- *
235
- * > - Use this parameter when documents are finely chunked and retrieval might otherwise lose contextual information.
236
- * >
237
- * > - Reranking is prioritized over windowing. The system first applies reranking and then processes the window.
224
+ * The recall window. When this value is not empty, additional context around the retrieval results is returned. The format is a two-element array: List<A, B>, where -10<=A<=0 and 0<=B<=10.
225
+ * > - Use this parameter when documents are split into overly small chunks and retrieval may lose contextual information.
226
+ * > - Reranking takes priority over windowing. Reranking is performed first, followed by windowing.
238
227
  */
239
228
  recallWindowShrink?: string;
240
229
  /**
@@ -249,11 +238,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
249
238
  regionId?: string;
250
239
  /**
251
240
  * @remarks
252
- * The factor for reranking vector retrieval results. The value must be greater than 1 and less than or equal to 5.
253
- *
254
- * > - Reranking may be slower if document chunks are sparse.
255
- * >
256
- * > - For best performance, the number of items to be reranked (`TopK` \\* `RerankFactor`, rounded up) should not exceed 50.
241
+ * The reranking factor. When this value is not empty, the AISearch retrieve results are reranked. Valid values: 1 < RerankFactor <= 5.
242
+ * > - Reranking is slow when documents are sparsely chunked.
243
+ * > - The total number of reranked results (TopK × Factor, rounded up) should not exceed 50.
257
244
  *
258
245
  * @example
259
246
  * 2
@@ -261,7 +248,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
261
248
  rerankFactor?: number;
262
249
  /**
263
250
  * @remarks
264
- * The parameters for the reranking model.
251
+ * The rerank model parameters.
265
252
  */
266
253
  rerankModelShrink?: string;
267
254
  /**
@@ -276,11 +263,10 @@ export class QueryContentShrinkRequest extends $dara.Model {
276
263
  * @remarks
277
264
  * The validity period of the returned image URL.
278
265
  *
279
- * > - The value can be specified in seconds (s) or days (d). For example, `300s` indicates that the link is valid for 300 seconds, and `60d` indicates that the link is valid for 60 days.
280
- * >
281
- * > - The value must be in the range of `60s` to `365d`.
282
- * >
283
- * > - Default value: `7200s` (2 hours).
266
+ * > Valid values:
267
+ * > - Supports seconds (s) and days (d) as units. For example, 300s indicates a validity period of 300 seconds, and 60d indicates a validity period of 60 days.
268
+ * > - Valid values: 60s to 365d.
269
+ * > - Default value: 7200s (2 hours).
284
270
  *
285
271
  * @example
286
272
  * 7200s
@@ -288,7 +274,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
288
274
  urlExpiration?: string;
289
275
  /**
290
276
  * @remarks
291
- * (Deprecated) Specifies whether to use full-text search (dual-channel recall). The default value is `false`, which means only vector retrieval is used.
277
+ * (Deprecated) Specifies whether to use full-text retrieval (dual-path recall). Default value: false, which indicates that only vector retrieval is used.
292
278
  *
293
279
  * @example
294
280
  * true