@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.
- package/dist/client.d.ts +160 -34
- package/dist/client.js +367 -34
- package/dist/client.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseRequest.d.ts +68 -111
- package/dist/models/ChatWithKnowledgeBaseRequest.js +2 -0
- package/dist/models/ChatWithKnowledgeBaseRequest.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseResponseBody.d.ts +45 -52
- package/dist/models/ChatWithKnowledgeBaseResponseBody.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseShrinkRequest.d.ts +5 -6
- package/dist/models/ChatWithKnowledgeBaseShrinkRequest.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.d.ts +71 -87
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.js +2 -0
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.d.ts +44 -50
- package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseStreamShrinkRequest.d.ts +6 -6
- package/dist/models/PauseSaasServiceRequest.d.ts +26 -0
- package/dist/models/PauseSaasServiceRequest.js +60 -0
- package/dist/models/PauseSaasServiceRequest.js.map +1 -0
- package/dist/models/PauseSaasServiceResponse.d.ts +19 -0
- package/dist/models/PauseSaasServiceResponse.js +69 -0
- package/dist/models/PauseSaasServiceResponse.js.map +1 -0
- package/dist/models/PauseSaasServiceResponseBody.d.ts +23 -0
- package/dist/models/PauseSaasServiceResponseBody.js +60 -0
- package/dist/models/PauseSaasServiceResponseBody.js.map +1 -0
- package/dist/models/QueryContentAdvanceRequest.d.ts +57 -70
- package/dist/models/QueryContentAdvanceRequest.js +2 -0
- package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
- package/dist/models/QueryContentRequest.d.ts +57 -70
- package/dist/models/QueryContentRequest.js +2 -0
- package/dist/models/QueryContentRequest.js.map +1 -1
- package/dist/models/QueryContentResponseBody.d.ts +10 -11
- package/dist/models/QueryContentResponseBody.js.map +1 -1
- package/dist/models/QueryContentShrinkRequest.d.ts +52 -66
- package/dist/models/QueryContentShrinkRequest.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentRequest.d.ts +62 -78
- package/dist/models/QueryKnowledgeBasesContentRequest.js +2 -0
- package/dist/models/QueryKnowledgeBasesContentRequest.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentResponseBody.d.ts +11 -25
- package/dist/models/QueryKnowledgeBasesContentResponseBody.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentShrinkRequest.d.ts +11 -15
- package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js.map +1 -1
- package/dist/models/ResetBranchRequest.d.ts +41 -0
- package/dist/models/ResetBranchRequest.js +62 -0
- package/dist/models/ResetBranchRequest.js.map +1 -0
- package/dist/models/ResetBranchResponse.d.ts +19 -0
- package/dist/models/ResetBranchResponse.js +69 -0
- package/dist/models/ResetBranchResponse.js.map +1 -0
- package/dist/models/ResetBranchResponseBody.d.ts +21 -0
- package/dist/models/ResetBranchResponseBody.js +58 -0
- package/dist/models/ResetBranchResponseBody.js.map +1 -0
- package/dist/models/RestoreBranchRequest.d.ts +83 -0
- package/dist/models/RestoreBranchRequest.js +72 -0
- package/dist/models/RestoreBranchRequest.js.map +1 -0
- package/dist/models/RestoreBranchResponse.d.ts +19 -0
- package/dist/models/RestoreBranchResponse.js +69 -0
- package/dist/models/RestoreBranchResponse.js.map +1 -0
- package/dist/models/RestoreBranchResponseBody.d.ts +29 -0
- package/dist/models/RestoreBranchResponseBody.js +60 -0
- package/dist/models/RestoreBranchResponseBody.js.map +1 -0
- package/dist/models/ResumeSaasServiceRequest.d.ts +26 -0
- package/dist/models/ResumeSaasServiceRequest.js +60 -0
- package/dist/models/ResumeSaasServiceRequest.js.map +1 -0
- package/dist/models/ResumeSaasServiceResponse.d.ts +19 -0
- package/dist/models/ResumeSaasServiceResponse.js +69 -0
- package/dist/models/ResumeSaasServiceResponse.js.map +1 -0
- package/dist/models/ResumeSaasServiceResponseBody.d.ts +23 -0
- package/dist/models/ResumeSaasServiceResponseBody.js +60 -0
- package/dist/models/ResumeSaasServiceResponseBody.js.map +1 -0
- package/dist/models/SetAsDefaultBranchRequest.d.ts +41 -0
- package/dist/models/SetAsDefaultBranchRequest.js +62 -0
- package/dist/models/SetAsDefaultBranchRequest.js.map +1 -0
- package/dist/models/SetAsDefaultBranchResponse.d.ts +19 -0
- package/dist/models/SetAsDefaultBranchResponse.js +69 -0
- package/dist/models/SetAsDefaultBranchResponse.js.map +1 -0
- package/dist/models/SetAsDefaultBranchResponseBody.d.ts +21 -0
- package/dist/models/SetAsDefaultBranchResponseBody.js +58 -0
- package/dist/models/SetAsDefaultBranchResponseBody.js.map +1 -0
- package/dist/models/UpdateBranchRequest.d.ts +126 -0
- package/dist/models/UpdateBranchRequest.js +98 -0
- package/dist/models/UpdateBranchRequest.js.map +1 -0
- package/dist/models/UpdateBranchResponse.d.ts +19 -0
- package/dist/models/UpdateBranchResponse.js +69 -0
- package/dist/models/UpdateBranchResponse.js.map +1 -0
- package/dist/models/UpdateBranchResponseBody.d.ts +21 -0
- package/dist/models/UpdateBranchResponseBody.js +58 -0
- package/dist/models/UpdateBranchResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +19 -0
- package/dist/models/model.js +56 -18
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +406 -34
- package/src/models/ChatWithKnowledgeBaseRequest.ts +70 -111
- package/src/models/ChatWithKnowledgeBaseResponseBody.ts +45 -52
- package/src/models/ChatWithKnowledgeBaseShrinkRequest.ts +5 -6
- package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +73 -87
- package/src/models/ChatWithKnowledgeBaseStreamResponseBody.ts +44 -50
- package/src/models/ChatWithKnowledgeBaseStreamShrinkRequest.ts +6 -6
- package/src/models/PauseSaasServiceRequest.ts +41 -0
- package/src/models/PauseSaasServiceResponse.ts +40 -0
- package/src/models/PauseSaasServiceResponseBody.ts +38 -0
- package/src/models/QueryContentAdvanceRequest.ts +60 -71
- package/src/models/QueryContentRequest.ts +60 -71
- package/src/models/QueryContentResponseBody.ts +10 -11
- package/src/models/QueryContentShrinkRequest.ts +53 -67
- package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -78
- package/src/models/QueryKnowledgeBasesContentResponseBody.ts +11 -25
- package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +11 -15
- package/src/models/ResetBranchRequest.ts +58 -0
- package/src/models/ResetBranchResponse.ts +40 -0
- package/src/models/ResetBranchResponseBody.ts +34 -0
- package/src/models/RestoreBranchRequest.ts +110 -0
- package/src/models/RestoreBranchResponse.ts +40 -0
- package/src/models/RestoreBranchResponseBody.ts +44 -0
- package/src/models/ResumeSaasServiceRequest.ts +41 -0
- package/src/models/ResumeSaasServiceResponse.ts +40 -0
- package/src/models/ResumeSaasServiceResponseBody.ts +38 -0
- package/src/models/SetAsDefaultBranchRequest.ts +58 -0
- package/src/models/SetAsDefaultBranchResponse.ts +40 -0
- package/src/models/SetAsDefaultBranchResponseBody.ts +34 -0
- package/src/models/UpdateBranchRequest.ts +170 -0
- package/src/models/UpdateBranchResponse.ts +40 -0
- package/src/models/UpdateBranchResponseBody.ts +34 -0
- package/src/models/model.ts +19 -0
|
@@ -6,7 +6,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
6
6
|
export class QueryContentAdvanceRequestGraphSearchArgs extends $dara.Model {
|
|
7
7
|
/**
|
|
8
8
|
* @remarks
|
|
9
|
-
* The number of top entities and relationship edges to return.
|
|
9
|
+
* The number of top entities and relationship edges to return. Default value: 60.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* 60
|
|
@@ -36,8 +36,8 @@ export class QueryContentAdvanceRequestGraphSearchArgs extends $dara.Model {
|
|
|
36
36
|
export class QueryContentAdvanceRequestRerankModel extends $dara.Model {
|
|
37
37
|
/**
|
|
38
38
|
* @remarks
|
|
39
|
-
* This parameter
|
|
40
|
-
*
|
|
39
|
+
* This parameter can be set when RerankModel.Name is qwen3-rerank.
|
|
40
|
+
* Adds a custom sorting task type description. This parameter guides the model to adopt different sorting strategies.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* Given a web search query, retrieve relevant passages that answer the query
|
|
@@ -45,16 +45,18 @@ export class QueryContentAdvanceRequestRerankModel extends $dara.Model {
|
|
|
45
45
|
instruct?: string;
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The name of the
|
|
48
|
+
* The name of the rerank model. Valid values: qwen3-rerank, gte-rerank-v2.
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* qwen3-rerank
|
|
52
52
|
*/
|
|
53
53
|
name?: string;
|
|
54
|
+
rerankMetadataFields?: string;
|
|
54
55
|
static names(): { [key: string]: string } {
|
|
55
56
|
return {
|
|
56
57
|
instruct: 'Instruct',
|
|
57
58
|
name: 'Name',
|
|
59
|
+
rerankMetadataFields: 'RerankMetadataFields',
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
|
|
@@ -62,6 +64,7 @@ export class QueryContentAdvanceRequestRerankModel extends $dara.Model {
|
|
|
62
64
|
return {
|
|
63
65
|
instruct: 'string',
|
|
64
66
|
name: 'string',
|
|
67
|
+
rerankMetadataFields: 'string',
|
|
65
68
|
};
|
|
66
69
|
}
|
|
67
70
|
|
|
@@ -79,7 +82,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
79
82
|
* @remarks
|
|
80
83
|
* The name of the document collection.
|
|
81
84
|
*
|
|
82
|
-
* >
|
|
85
|
+
* > 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.
|
|
83
86
|
*
|
|
84
87
|
* This parameter is required.
|
|
85
88
|
*
|
|
@@ -89,7 +92,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
89
92
|
collection?: string;
|
|
90
93
|
/**
|
|
91
94
|
* @remarks
|
|
92
|
-
* The text
|
|
95
|
+
* The text content used for retrieval.
|
|
93
96
|
*
|
|
94
97
|
* @example
|
|
95
98
|
* What is AnalyticDB for PostgreSQL?
|
|
@@ -99,7 +102,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
99
102
|
* @remarks
|
|
100
103
|
* The instance ID.
|
|
101
104
|
*
|
|
102
|
-
* > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to
|
|
105
|
+
* > 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.
|
|
103
106
|
*
|
|
104
107
|
* This parameter is required.
|
|
105
108
|
*
|
|
@@ -109,9 +112,9 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
109
112
|
DBInstanceId?: string;
|
|
110
113
|
/**
|
|
111
114
|
* @remarks
|
|
112
|
-
* The
|
|
115
|
+
* The name of the source image file to search in image-to-image search scenarios.
|
|
113
116
|
*
|
|
114
|
-
* > The image file must have a file extension.
|
|
117
|
+
* > The image file must have a file extension. Supported image extensions: bmp, jpg, jpeg, png, and tiff.
|
|
115
118
|
*
|
|
116
119
|
* @example
|
|
117
120
|
* test.jpg
|
|
@@ -119,9 +122,9 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
119
122
|
fileName?: string;
|
|
120
123
|
/**
|
|
121
124
|
* @remarks
|
|
122
|
-
* The publicly accessible URL of the image file
|
|
125
|
+
* The publicly accessible URL of the image file in image-to-image search scenarios.
|
|
123
126
|
*
|
|
124
|
-
* > The image file must have a file extension.
|
|
127
|
+
* > The image file must have a file extension. Supported image extensions: bmp, jpg, jpeg, png, and tiff.
|
|
125
128
|
*
|
|
126
129
|
* @example
|
|
127
130
|
* https://xx/myImage.jpg
|
|
@@ -129,9 +132,10 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
129
132
|
fileUrlObject?: Readable;
|
|
130
133
|
/**
|
|
131
134
|
* @remarks
|
|
132
|
-
*
|
|
135
|
+
* 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.
|
|
133
136
|
*
|
|
134
|
-
* >
|
|
137
|
+
* >
|
|
138
|
+
* > - For detailed syntax, refer to: https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-where/.
|
|
135
139
|
*
|
|
136
140
|
* @example
|
|
137
141
|
* title = \\"test\\" AND name like \\"test%\\"
|
|
@@ -139,7 +143,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
139
143
|
filter?: string;
|
|
140
144
|
/**
|
|
141
145
|
* @remarks
|
|
142
|
-
* Specifies whether to enable knowledge graph enhancement.
|
|
146
|
+
* Specifies whether to enable knowledge graph enhancement. Default value: false.
|
|
143
147
|
*
|
|
144
148
|
* @example
|
|
145
149
|
* false
|
|
@@ -147,20 +151,18 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
147
151
|
graphEnhance?: boolean;
|
|
148
152
|
/**
|
|
149
153
|
* @remarks
|
|
150
|
-
* The
|
|
154
|
+
* The knowledge graph retrieval parameters.
|
|
151
155
|
*/
|
|
152
156
|
graphSearchArgs?: QueryContentAdvanceRequestGraphSearchArgs;
|
|
153
157
|
/**
|
|
154
158
|
* @remarks
|
|
155
|
-
*
|
|
159
|
+
* The multi-channel recall algorithm. Default value: empty, which indicates that the dense vector and full-text index scores are directly compared and sorted.
|
|
156
160
|
*
|
|
157
161
|
* Valid values:
|
|
158
162
|
*
|
|
159
|
-
* - RRF:
|
|
160
|
-
*
|
|
161
|
-
* -
|
|
162
|
-
*
|
|
163
|
-
* - Cascaded: Performs full-text search first, and then performs vector retrieval on the results.
|
|
163
|
+
* - RRF: Reciprocal Rank Fusion. A parameter k controls the fusion effect. For more information, see the HybridSearchArgs configuration.
|
|
164
|
+
* - 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.
|
|
165
|
+
* - Cascaded: Full-text index retrieve is performed first, followed by AISearch retrieve based on the full-text index results.
|
|
164
166
|
*
|
|
165
167
|
* @example
|
|
166
168
|
* RRF
|
|
@@ -168,10 +170,9 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
168
170
|
hybridSearch?: string;
|
|
169
171
|
/**
|
|
170
172
|
* @remarks
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
* - RRF: Specifies the constant `k` in the scoring formula `1/(k+rank_i)`. The value must be an integer greater than 1. Example:
|
|
173
|
+
* 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.
|
|
174
174
|
*
|
|
175
|
+
* - 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:
|
|
175
176
|
* ```
|
|
176
177
|
* {
|
|
177
178
|
* "HybridPathsSetting": {
|
|
@@ -183,12 +184,9 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
183
184
|
* }
|
|
184
185
|
* ```
|
|
185
186
|
*
|
|
186
|
-
* - Weight:
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* - 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.
|
|
191
|
-
*
|
|
187
|
+
* - Weight:
|
|
188
|
+
* - Dual-path recall (without specifying HybridPathsSetting, only specifying alpha):
|
|
189
|
+
* - 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:
|
|
192
190
|
* ```
|
|
193
191
|
* {
|
|
194
192
|
* "Weight": {
|
|
@@ -196,11 +194,8 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
196
194
|
* }
|
|
197
195
|
* }
|
|
198
196
|
* ```
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
* - 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)`).
|
|
203
|
-
*
|
|
197
|
+
* - Three-path recall pattern:
|
|
198
|
+
* - 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)).
|
|
204
199
|
* ```
|
|
205
200
|
* {
|
|
206
201
|
* "HybridPathsSetting": {
|
|
@@ -217,7 +212,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
217
212
|
hybridSearchArgs?: { [key: string]: {[key: string]: any} };
|
|
218
213
|
/**
|
|
219
214
|
* @remarks
|
|
220
|
-
* Specifies whether to return the URL of the document.
|
|
215
|
+
* Specifies whether to synchronously return the URL of the document. By default, the URL is not returned.
|
|
221
216
|
*
|
|
222
217
|
* @example
|
|
223
218
|
* false
|
|
@@ -225,7 +220,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
225
220
|
includeFileUrl?: boolean;
|
|
226
221
|
/**
|
|
227
222
|
* @remarks
|
|
228
|
-
* The metadata fields to
|
|
223
|
+
* The metadata fields to return. Default value: empty. Separate multiple fields with commas.
|
|
229
224
|
*
|
|
230
225
|
* @example
|
|
231
226
|
* title,page
|
|
@@ -233,11 +228,9 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
233
228
|
includeMetadataFields?: string;
|
|
234
229
|
/**
|
|
235
230
|
* @remarks
|
|
236
|
-
* Specifies whether to
|
|
237
|
-
*
|
|
238
|
-
* > - **
|
|
239
|
-
* >
|
|
240
|
-
* > - **true**: The vector is returned.
|
|
231
|
+
* Specifies whether to return vectors. Default value: false.
|
|
232
|
+
* > - **false**: Does not return vectors.
|
|
233
|
+
* > - **true**: Returns vectors.
|
|
241
234
|
*
|
|
242
235
|
* @example
|
|
243
236
|
* true
|
|
@@ -245,14 +238,11 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
245
238
|
includeVector?: boolean;
|
|
246
239
|
/**
|
|
247
240
|
* @remarks
|
|
248
|
-
* The similarity algorithm used for retrieval. If this
|
|
241
|
+
* 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.
|
|
249
242
|
*
|
|
250
243
|
* > Valid values:
|
|
251
|
-
* >
|
|
252
244
|
* > - **l2**: Euclidean distance.
|
|
253
|
-
* >
|
|
254
|
-
* > - **ip**: dot product (inner product) distance.
|
|
255
|
-
* >
|
|
245
|
+
* > - **ip**: inner product distance.
|
|
256
246
|
* > - **cosine**: cosine similarity.
|
|
257
247
|
*
|
|
258
248
|
* @example
|
|
@@ -261,9 +251,9 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
261
251
|
metrics?: string;
|
|
262
252
|
/**
|
|
263
253
|
* @remarks
|
|
264
|
-
* The namespace.
|
|
254
|
+
* The namespace. Default value: public.
|
|
265
255
|
*
|
|
266
|
-
* > You can
|
|
256
|
+
* > 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.
|
|
267
257
|
*
|
|
268
258
|
* @example
|
|
269
259
|
* mynamespace
|
|
@@ -271,9 +261,9 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
271
261
|
namespace?: string;
|
|
272
262
|
/**
|
|
273
263
|
* @remarks
|
|
274
|
-
* The password
|
|
264
|
+
* The password of the namespace.
|
|
275
265
|
*
|
|
276
|
-
* > This
|
|
266
|
+
* > This value is specified by the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation.
|
|
277
267
|
*
|
|
278
268
|
* This parameter is required.
|
|
279
269
|
*
|
|
@@ -283,7 +273,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
283
273
|
namespacePassword?: string;
|
|
284
274
|
/**
|
|
285
275
|
* @remarks
|
|
286
|
-
* The offset for
|
|
276
|
+
* The offset for paged query. Used for paging through results.
|
|
287
277
|
*
|
|
288
278
|
* @example
|
|
289
279
|
* 0
|
|
@@ -291,9 +281,13 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
291
281
|
offset?: number;
|
|
292
282
|
/**
|
|
293
283
|
* @remarks
|
|
294
|
-
* The field
|
|
284
|
+
* The field used for sorting. Default value: empty.
|
|
285
|
+
*
|
|
286
|
+
* The field must belong to metadata or a default field in the table, such as id. Supported formats:
|
|
295
287
|
*
|
|
296
|
-
*
|
|
288
|
+
* A single field, such as chunk_id.
|
|
289
|
+
* Multiple fields separated by commas, such as block_id, chunk_id.
|
|
290
|
+
* Descending order, such as block_id DESC, chunk_id DESC.
|
|
297
291
|
*
|
|
298
292
|
* @example
|
|
299
293
|
* created_at
|
|
@@ -302,11 +296,9 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
302
296
|
ownerId?: number;
|
|
303
297
|
/**
|
|
304
298
|
* @remarks
|
|
305
|
-
* The recall window.
|
|
306
|
-
*
|
|
307
|
-
* > -
|
|
308
|
-
* >
|
|
309
|
-
* > - Reranking is prioritized over windowing. The system first applies reranking and then processes the window.
|
|
299
|
+
* 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.
|
|
300
|
+
* > - Use this parameter when documents are split into overly small chunks and retrieval may lose contextual information.
|
|
301
|
+
* > - Reranking takes priority over windowing. Reranking is performed first, followed by windowing.
|
|
310
302
|
*/
|
|
311
303
|
recallWindow?: number[];
|
|
312
304
|
/**
|
|
@@ -321,11 +313,9 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
321
313
|
regionId?: string;
|
|
322
314
|
/**
|
|
323
315
|
* @remarks
|
|
324
|
-
* The factor
|
|
325
|
-
*
|
|
326
|
-
* > -
|
|
327
|
-
* >
|
|
328
|
-
* > - For best performance, the number of items to be reranked (`TopK` \\* `RerankFactor`, rounded up) should not exceed 50.
|
|
316
|
+
* The reranking factor. When this value is not empty, the AISearch retrieve results are reranked. Valid values: 1 < RerankFactor <= 5.
|
|
317
|
+
* > - Reranking is slow when documents are sparsely chunked.
|
|
318
|
+
* > - The total number of reranked results (TopK × Factor, rounded up) should not exceed 50.
|
|
329
319
|
*
|
|
330
320
|
* @example
|
|
331
321
|
* 2
|
|
@@ -333,7 +323,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
333
323
|
rerankFactor?: number;
|
|
334
324
|
/**
|
|
335
325
|
* @remarks
|
|
336
|
-
* The
|
|
326
|
+
* The rerank model parameters.
|
|
337
327
|
*/
|
|
338
328
|
rerankModel?: QueryContentAdvanceRequestRerankModel;
|
|
339
329
|
/**
|
|
@@ -348,11 +338,10 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
348
338
|
* @remarks
|
|
349
339
|
* The validity period of the returned image URL.
|
|
350
340
|
*
|
|
351
|
-
* >
|
|
352
|
-
* >
|
|
353
|
-
* > -
|
|
354
|
-
* >
|
|
355
|
-
* > - Default value: `7200s` (2 hours).
|
|
341
|
+
* > Valid values:
|
|
342
|
+
* > - 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.
|
|
343
|
+
* > - Valid values: 60s to 365d.
|
|
344
|
+
* > - Default value: 7200s (2 hours).
|
|
356
345
|
*
|
|
357
346
|
* @example
|
|
358
347
|
* 7200s
|
|
@@ -360,7 +349,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
360
349
|
urlExpiration?: string;
|
|
361
350
|
/**
|
|
362
351
|
* @remarks
|
|
363
|
-
* (Deprecated) Specifies whether to use full-text
|
|
352
|
+
* (Deprecated) Specifies whether to use full-text retrieval (dual-path recall). Default value: false, which indicates that only vector retrieval is used.
|
|
364
353
|
*
|
|
365
354
|
* @example
|
|
366
355
|
* true
|