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