@alicloud/gpdb20160503 3.1.0 → 3.2.1
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 +105 -0
- package/dist/client.js +407 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseRequest.d.ts +46 -0
- package/dist/models/ChatWithKnowledgeBaseRequest.js +53 -1
- package/dist/models/ChatWithKnowledgeBaseRequest.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.d.ts +46 -0
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.js +53 -1
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.js.map +1 -1
- package/dist/models/CreateAiserviceRequest.d.ts +55 -0
- package/dist/models/CreateAiserviceRequest.js +68 -0
- package/dist/models/CreateAiserviceRequest.js.map +1 -0
- package/dist/models/CreateAiserviceResponse.d.ts +19 -0
- package/dist/models/CreateAiserviceResponse.js +69 -0
- package/dist/models/CreateAiserviceResponse.js.map +1 -0
- package/dist/models/CreateAiserviceResponseBody.d.ts +23 -0
- package/dist/models/CreateAiserviceResponseBody.js +60 -0
- package/dist/models/CreateAiserviceResponseBody.js.map +1 -0
- package/dist/models/CreateCollectionRequest.d.ts +17 -0
- package/dist/models/CreateCollectionRequest.js +31 -1
- package/dist/models/CreateCollectionRequest.js.map +1 -1
- package/dist/models/CreateCollectionShrinkRequest.d.ts +2 -0
- package/dist/models/CreateCollectionShrinkRequest.js +4 -0
- package/dist/models/CreateCollectionShrinkRequest.js.map +1 -1
- package/dist/models/CreateDocumentCollectionRequest.d.ts +17 -0
- package/dist/models/CreateDocumentCollectionRequest.js +31 -1
- package/dist/models/CreateDocumentCollectionRequest.js.map +1 -1
- package/dist/models/CreateDocumentCollectionShrinkRequest.d.ts +2 -0
- package/dist/models/CreateDocumentCollectionShrinkRequest.js +4 -0
- package/dist/models/CreateDocumentCollectionShrinkRequest.js.map +1 -1
- package/dist/models/CreateVectorIndexRequest.d.ts +3 -0
- package/dist/models/CreateVectorIndexRequest.js +6 -0
- package/dist/models/CreateVectorIndexRequest.js.map +1 -1
- package/dist/models/DeleteAiserviceRequest.d.ts +37 -0
- package/dist/models/DeleteAiserviceRequest.js +62 -0
- package/dist/models/DeleteAiserviceRequest.js.map +1 -0
- package/dist/models/DeleteAiserviceResponse.d.ts +19 -0
- package/dist/models/DeleteAiserviceResponse.js +69 -0
- package/dist/models/DeleteAiserviceResponse.js.map +1 -0
- package/dist/models/DeleteAiserviceResponseBody.d.ts +18 -0
- package/dist/models/DeleteAiserviceResponseBody.js +58 -0
- package/dist/models/DeleteAiserviceResponseBody.js.map +1 -0
- package/dist/models/DeleteChunksRequest.d.ts +55 -0
- package/dist/models/DeleteChunksRequest.js +71 -0
- package/dist/models/DeleteChunksRequest.js.map +1 -0
- package/dist/models/DeleteChunksResponse.d.ts +19 -0
- package/dist/models/DeleteChunksResponse.js +69 -0
- package/dist/models/DeleteChunksResponse.js.map +1 -0
- package/dist/models/DeleteChunksResponseBody.d.ts +18 -0
- package/dist/models/DeleteChunksResponseBody.js +58 -0
- package/dist/models/DeleteChunksResponseBody.js.map +1 -0
- package/dist/models/DeleteChunksShrinkRequest.d.ts +55 -0
- package/dist/models/DeleteChunksShrinkRequest.js +68 -0
- package/dist/models/DeleteChunksShrinkRequest.js.map +1 -0
- package/dist/models/DescribeAiserviceRequest.d.ts +37 -0
- package/dist/models/DescribeAiserviceRequest.js +62 -0
- package/dist/models/DescribeAiserviceRequest.js.map +1 -0
- package/dist/models/DescribeAiserviceResponse.d.ts +19 -0
- package/dist/models/DescribeAiserviceResponse.js +69 -0
- package/dist/models/DescribeAiserviceResponse.js.map +1 -0
- package/dist/models/DescribeAiserviceResponseBody.d.ts +68 -0
- package/dist/models/DescribeAiserviceResponseBody.js +78 -0
- package/dist/models/DescribeAiserviceResponseBody.js.map +1 -0
- package/dist/models/ListAiservicesRequest.d.ts +39 -0
- package/dist/models/ListAiservicesRequest.js +64 -0
- package/dist/models/ListAiservicesRequest.js.map +1 -0
- package/dist/models/ListAiservicesResponse.d.ts +19 -0
- package/dist/models/ListAiservicesResponse.js +69 -0
- package/dist/models/ListAiservicesResponse.js.map +1 -0
- package/dist/models/ListAiservicesResponseBody.d.ts +96 -0
- package/dist/models/ListAiservicesResponseBody.js +106 -0
- package/dist/models/ListAiservicesResponseBody.js.map +1 -0
- package/dist/models/ListChunksRequest.d.ts +75 -0
- package/dist/models/ListChunksRequest.js +76 -0
- package/dist/models/ListChunksRequest.js.map +1 -0
- package/dist/models/ListChunksResponse.d.ts +19 -0
- package/dist/models/ListChunksResponse.js +69 -0
- package/dist/models/ListChunksResponse.js.map +1 -0
- package/dist/models/ListChunksResponseBody.d.ts +81 -0
- package/dist/models/ListChunksResponseBody.js +150 -0
- package/dist/models/ListChunksResponseBody.js.map +1 -0
- package/dist/models/ModifyAiserviceSecurityIpsRequest.d.ts +45 -0
- package/dist/models/ModifyAiserviceSecurityIpsRequest.js +64 -0
- package/dist/models/ModifyAiserviceSecurityIpsRequest.js.map +1 -0
- package/dist/models/ModifyAiserviceSecurityIpsResponse.d.ts +19 -0
- package/dist/models/ModifyAiserviceSecurityIpsResponse.js +69 -0
- package/dist/models/ModifyAiserviceSecurityIpsResponse.js.map +1 -0
- package/dist/models/ModifyAiserviceSecurityIpsResponseBody.d.ts +18 -0
- package/dist/models/ModifyAiserviceSecurityIpsResponseBody.js +58 -0
- package/dist/models/ModifyAiserviceSecurityIpsResponseBody.js.map +1 -0
- package/dist/models/QueryContentAdvanceRequest.d.ts +23 -0
- package/dist/models/QueryContentAdvanceRequest.js +27 -1
- package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
- package/dist/models/QueryContentRequest.d.ts +23 -0
- package/dist/models/QueryContentRequest.js +27 -1
- package/dist/models/QueryContentRequest.js.map +1 -1
- package/dist/models/QueryContentShrinkRequest.d.ts +1 -0
- package/dist/models/QueryContentShrinkRequest.js +2 -0
- package/dist/models/QueryContentShrinkRequest.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentRequest.d.ts +30 -0
- package/dist/models/QueryKnowledgeBasesContentRequest.js +53 -1
- package/dist/models/QueryKnowledgeBasesContentRequest.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentShrinkRequest.d.ts +1 -0
- package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js +2 -0
- package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js.map +1 -1
- package/dist/models/RerankRequest.d.ts +5 -0
- package/dist/models/RerankRequest.js +2 -0
- package/dist/models/RerankRequest.js.map +1 -1
- package/dist/models/RerankShrinkRequest.d.ts +5 -0
- package/dist/models/RerankShrinkRequest.js +2 -0
- package/dist/models/RerankShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +36 -0
- package/dist/models/model.js +126 -53
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +472 -0
- package/src/models/ChatWithKnowledgeBaseRequest.ts +80 -0
- package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +80 -0
- package/src/models/CreateAiserviceRequest.ts +78 -0
- package/src/models/CreateAiserviceResponse.ts +40 -0
- package/src/models/CreateAiserviceResponseBody.ts +38 -0
- package/src/models/CreateCollectionRequest.ts +38 -0
- package/src/models/CreateCollectionShrinkRequest.ts +6 -0
- package/src/models/CreateDocumentCollectionRequest.ts +38 -0
- package/src/models/CreateDocumentCollectionShrinkRequest.ts +6 -0
- package/src/models/CreateVectorIndexRequest.ts +9 -0
- package/src/models/DeleteAiserviceRequest.ts +54 -0
- package/src/models/DeleteAiserviceResponse.ts +40 -0
- package/src/models/DeleteAiserviceResponseBody.ts +31 -0
- package/src/models/DeleteChunksRequest.ts +81 -0
- package/src/models/DeleteChunksResponse.ts +40 -0
- package/src/models/DeleteChunksResponseBody.ts +31 -0
- package/src/models/DeleteChunksShrinkRequest.ts +78 -0
- package/src/models/DescribeAiserviceRequest.ts +54 -0
- package/src/models/DescribeAiserviceResponse.ts +40 -0
- package/src/models/DescribeAiserviceResponseBody.ts +101 -0
- package/src/models/ListAiservicesRequest.ts +58 -0
- package/src/models/ListAiservicesResponse.ts +40 -0
- package/src/models/ListAiservicesResponseBody.ts +148 -0
- package/src/models/ListChunksRequest.ts +106 -0
- package/src/models/ListChunksResponse.ts +40 -0
- package/src/models/ListChunksResponseBody.ts +157 -0
- package/src/models/ModifyAiserviceSecurityIpsRequest.ts +64 -0
- package/src/models/ModifyAiserviceSecurityIpsResponse.ts +40 -0
- package/src/models/ModifyAiserviceSecurityIpsResponseBody.ts +31 -0
- package/src/models/QueryContentAdvanceRequest.ts +40 -0
- package/src/models/QueryContentRequest.ts +40 -0
- package/src/models/QueryContentShrinkRequest.ts +3 -0
- package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -0
- package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +3 -0
- package/src/models/RerankRequest.ts +7 -0
- package/src/models/RerankShrinkRequest.ts +7 -0
- package/src/models/model.ts +36 -0
|
@@ -33,6 +33,40 @@ export class QueryContentAdvanceRequestGraphSearchArgs extends $dara.Model {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
export class QueryContentAdvanceRequestRerankModel extends $dara.Model {
|
|
37
|
+
/**
|
|
38
|
+
* @example
|
|
39
|
+
* Given a web search query, retrieve relevant passages that answer the query
|
|
40
|
+
*/
|
|
41
|
+
instruct?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @example
|
|
44
|
+
* qwen3-rerank
|
|
45
|
+
*/
|
|
46
|
+
name?: string;
|
|
47
|
+
static names(): { [key: string]: string } {
|
|
48
|
+
return {
|
|
49
|
+
instruct: 'Instruct',
|
|
50
|
+
name: 'Name',
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
static types(): { [key: string]: any } {
|
|
55
|
+
return {
|
|
56
|
+
instruct: 'string',
|
|
57
|
+
name: 'string',
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
validate() {
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
constructor(map?: { [key: string]: any }) {
|
|
66
|
+
super(map);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
36
70
|
export class QueryContentAdvanceRequest extends $dara.Model {
|
|
37
71
|
/**
|
|
38
72
|
* @remarks
|
|
@@ -258,6 +292,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
258
292
|
* 2
|
|
259
293
|
*/
|
|
260
294
|
rerankFactor?: number;
|
|
295
|
+
rerankModel?: QueryContentAdvanceRequestRerankModel;
|
|
261
296
|
/**
|
|
262
297
|
* @remarks
|
|
263
298
|
* The number of the returned top results.
|
|
@@ -314,6 +349,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
314
349
|
recallWindow: 'RecallWindow',
|
|
315
350
|
regionId: 'RegionId',
|
|
316
351
|
rerankFactor: 'RerankFactor',
|
|
352
|
+
rerankModel: 'RerankModel',
|
|
317
353
|
topK: 'TopK',
|
|
318
354
|
urlExpiration: 'UrlExpiration',
|
|
319
355
|
useFullTextRetrieval: 'UseFullTextRetrieval',
|
|
@@ -344,6 +380,7 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
344
380
|
recallWindow: { 'type': 'array', 'itemType': 'number' },
|
|
345
381
|
regionId: 'string',
|
|
346
382
|
rerankFactor: 'number',
|
|
383
|
+
rerankModel: QueryContentAdvanceRequestRerankModel,
|
|
347
384
|
topK: 'number',
|
|
348
385
|
urlExpiration: 'string',
|
|
349
386
|
useFullTextRetrieval: 'boolean',
|
|
@@ -360,6 +397,9 @@ export class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
360
397
|
if(Array.isArray(this.recallWindow)) {
|
|
361
398
|
$dara.Model.validateArray(this.recallWindow);
|
|
362
399
|
}
|
|
400
|
+
if(this.rerankModel && typeof (this.rerankModel as any).validate === 'function') {
|
|
401
|
+
(this.rerankModel as any).validate();
|
|
402
|
+
}
|
|
363
403
|
super.validate();
|
|
364
404
|
}
|
|
365
405
|
|
|
@@ -32,6 +32,40 @@ export class QueryContentRequestGraphSearchArgs extends $dara.Model {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
export class QueryContentRequestRerankModel extends $dara.Model {
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* Given a web search query, retrieve relevant passages that answer the query
|
|
39
|
+
*/
|
|
40
|
+
instruct?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* qwen3-rerank
|
|
44
|
+
*/
|
|
45
|
+
name?: string;
|
|
46
|
+
static names(): { [key: string]: string } {
|
|
47
|
+
return {
|
|
48
|
+
instruct: 'Instruct',
|
|
49
|
+
name: 'Name',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static types(): { [key: string]: any } {
|
|
54
|
+
return {
|
|
55
|
+
instruct: 'string',
|
|
56
|
+
name: 'string',
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
validate() {
|
|
61
|
+
super.validate();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
constructor(map?: { [key: string]: any }) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
35
69
|
export class QueryContentRequest extends $dara.Model {
|
|
36
70
|
/**
|
|
37
71
|
* @remarks
|
|
@@ -257,6 +291,7 @@ export class QueryContentRequest extends $dara.Model {
|
|
|
257
291
|
* 2
|
|
258
292
|
*/
|
|
259
293
|
rerankFactor?: number;
|
|
294
|
+
rerankModel?: QueryContentRequestRerankModel;
|
|
260
295
|
/**
|
|
261
296
|
* @remarks
|
|
262
297
|
* The number of the returned top results.
|
|
@@ -313,6 +348,7 @@ export class QueryContentRequest extends $dara.Model {
|
|
|
313
348
|
recallWindow: 'RecallWindow',
|
|
314
349
|
regionId: 'RegionId',
|
|
315
350
|
rerankFactor: 'RerankFactor',
|
|
351
|
+
rerankModel: 'RerankModel',
|
|
316
352
|
topK: 'TopK',
|
|
317
353
|
urlExpiration: 'UrlExpiration',
|
|
318
354
|
useFullTextRetrieval: 'UseFullTextRetrieval',
|
|
@@ -343,6 +379,7 @@ export class QueryContentRequest extends $dara.Model {
|
|
|
343
379
|
recallWindow: { 'type': 'array', 'itemType': 'number' },
|
|
344
380
|
regionId: 'string',
|
|
345
381
|
rerankFactor: 'number',
|
|
382
|
+
rerankModel: QueryContentRequestRerankModel,
|
|
346
383
|
topK: 'number',
|
|
347
384
|
urlExpiration: 'string',
|
|
348
385
|
useFullTextRetrieval: 'boolean',
|
|
@@ -359,6 +396,9 @@ export class QueryContentRequest extends $dara.Model {
|
|
|
359
396
|
if(Array.isArray(this.recallWindow)) {
|
|
360
397
|
$dara.Model.validateArray(this.recallWindow);
|
|
361
398
|
}
|
|
399
|
+
if(this.rerankModel && typeof (this.rerankModel as any).validate === 'function') {
|
|
400
|
+
(this.rerankModel as any).validate();
|
|
401
|
+
}
|
|
362
402
|
super.validate();
|
|
363
403
|
}
|
|
364
404
|
|
|
@@ -227,6 +227,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
227
227
|
* 2
|
|
228
228
|
*/
|
|
229
229
|
rerankFactor?: number;
|
|
230
|
+
rerankModelShrink?: string;
|
|
230
231
|
/**
|
|
231
232
|
* @remarks
|
|
232
233
|
* The number of the returned top results.
|
|
@@ -283,6 +284,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
283
284
|
recallWindowShrink: 'RecallWindow',
|
|
284
285
|
regionId: 'RegionId',
|
|
285
286
|
rerankFactor: 'RerankFactor',
|
|
287
|
+
rerankModelShrink: 'RerankModel',
|
|
286
288
|
topK: 'TopK',
|
|
287
289
|
urlExpiration: 'UrlExpiration',
|
|
288
290
|
useFullTextRetrieval: 'UseFullTextRetrieval',
|
|
@@ -313,6 +315,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
313
315
|
recallWindowShrink: 'string',
|
|
314
316
|
regionId: 'string',
|
|
315
317
|
rerankFactor: 'number',
|
|
318
|
+
rerankModelShrink: 'string',
|
|
316
319
|
topK: 'number',
|
|
317
320
|
urlExpiration: 'string',
|
|
318
321
|
useFullTextRetrieval: 'boolean',
|
|
@@ -102,6 +102,32 @@ export class QueryKnowledgeBasesContentRequestMergeMethodArgs extends $dara.Mode
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
export class QueryKnowledgeBasesContentRequestRerankModel extends $dara.Model {
|
|
106
|
+
instruct?: string;
|
|
107
|
+
name?: string;
|
|
108
|
+
static names(): { [key: string]: string } {
|
|
109
|
+
return {
|
|
110
|
+
instruct: 'Instruct',
|
|
111
|
+
name: 'Name',
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static types(): { [key: string]: any } {
|
|
116
|
+
return {
|
|
117
|
+
instruct: 'string',
|
|
118
|
+
name: 'string',
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
validate() {
|
|
123
|
+
super.validate();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
constructor(map?: { [key: string]: any }) {
|
|
127
|
+
super(map);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
105
131
|
export class QueryKnowledgeBasesContentRequestSourceCollectionQueryParamsGraphSearchArgs extends $dara.Model {
|
|
106
132
|
/**
|
|
107
133
|
* @remarks
|
|
@@ -132,6 +158,32 @@ export class QueryKnowledgeBasesContentRequestSourceCollectionQueryParamsGraphSe
|
|
|
132
158
|
}
|
|
133
159
|
}
|
|
134
160
|
|
|
161
|
+
export class QueryKnowledgeBasesContentRequestSourceCollectionQueryParamsRerankModel extends $dara.Model {
|
|
162
|
+
instruct?: string;
|
|
163
|
+
name?: string;
|
|
164
|
+
static names(): { [key: string]: string } {
|
|
165
|
+
return {
|
|
166
|
+
instruct: 'Instruct',
|
|
167
|
+
name: 'Name',
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
static types(): { [key: string]: any } {
|
|
172
|
+
return {
|
|
173
|
+
instruct: 'string',
|
|
174
|
+
name: 'string',
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
validate() {
|
|
179
|
+
super.validate();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
constructor(map?: { [key: string]: any }) {
|
|
183
|
+
super(map);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
135
187
|
export class QueryKnowledgeBasesContentRequestSourceCollectionQueryParams extends $dara.Model {
|
|
136
188
|
/**
|
|
137
189
|
* @remarks
|
|
@@ -254,6 +306,7 @@ export class QueryKnowledgeBasesContentRequestSourceCollectionQueryParams extend
|
|
|
254
306
|
* 2.0
|
|
255
307
|
*/
|
|
256
308
|
rerankFactor?: number;
|
|
309
|
+
rerankModel?: QueryKnowledgeBasesContentRequestSourceCollectionQueryParamsRerankModel;
|
|
257
310
|
/**
|
|
258
311
|
* @remarks
|
|
259
312
|
* The number of top results.
|
|
@@ -282,6 +335,7 @@ export class QueryKnowledgeBasesContentRequestSourceCollectionQueryParams extend
|
|
|
282
335
|
orderBy: 'OrderBy',
|
|
283
336
|
recallWindow: 'RecallWindow',
|
|
284
337
|
rerankFactor: 'RerankFactor',
|
|
338
|
+
rerankModel: 'RerankModel',
|
|
285
339
|
topK: 'TopK',
|
|
286
340
|
useFullTextRetrieval: 'UseFullTextRetrieval',
|
|
287
341
|
};
|
|
@@ -299,6 +353,7 @@ export class QueryKnowledgeBasesContentRequestSourceCollectionQueryParams extend
|
|
|
299
353
|
orderBy: 'string',
|
|
300
354
|
recallWindow: { 'type': 'array', 'itemType': 'number' },
|
|
301
355
|
rerankFactor: 'number',
|
|
356
|
+
rerankModel: QueryKnowledgeBasesContentRequestSourceCollectionQueryParamsRerankModel,
|
|
302
357
|
topK: 'number',
|
|
303
358
|
useFullTextRetrieval: 'boolean',
|
|
304
359
|
};
|
|
@@ -314,6 +369,9 @@ export class QueryKnowledgeBasesContentRequestSourceCollectionQueryParams extend
|
|
|
314
369
|
if(Array.isArray(this.recallWindow)) {
|
|
315
370
|
$dara.Model.validateArray(this.recallWindow);
|
|
316
371
|
}
|
|
372
|
+
if(this.rerankModel && typeof (this.rerankModel as any).validate === 'function') {
|
|
373
|
+
(this.rerankModel as any).validate();
|
|
374
|
+
}
|
|
317
375
|
super.validate();
|
|
318
376
|
}
|
|
319
377
|
|
|
@@ -453,6 +511,7 @@ export class QueryKnowledgeBasesContentRequest extends $dara.Model {
|
|
|
453
511
|
* 2
|
|
454
512
|
*/
|
|
455
513
|
rerankFactor?: number;
|
|
514
|
+
rerankModel?: QueryKnowledgeBasesContentRequestRerankModel;
|
|
456
515
|
/**
|
|
457
516
|
* @remarks
|
|
458
517
|
* The information about collections to retrieve from.
|
|
@@ -477,6 +536,7 @@ export class QueryKnowledgeBasesContentRequest extends $dara.Model {
|
|
|
477
536
|
ownerId: 'OwnerId',
|
|
478
537
|
regionId: 'RegionId',
|
|
479
538
|
rerankFactor: 'RerankFactor',
|
|
539
|
+
rerankModel: 'RerankModel',
|
|
480
540
|
sourceCollection: 'SourceCollection',
|
|
481
541
|
topK: 'TopK',
|
|
482
542
|
};
|
|
@@ -491,6 +551,7 @@ export class QueryKnowledgeBasesContentRequest extends $dara.Model {
|
|
|
491
551
|
ownerId: 'number',
|
|
492
552
|
regionId: 'string',
|
|
493
553
|
rerankFactor: 'number',
|
|
554
|
+
rerankModel: QueryKnowledgeBasesContentRequestRerankModel,
|
|
494
555
|
sourceCollection: { 'type': 'array', 'itemType': QueryKnowledgeBasesContentRequestSourceCollection },
|
|
495
556
|
topK: 'number',
|
|
496
557
|
};
|
|
@@ -500,6 +561,9 @@ export class QueryKnowledgeBasesContentRequest extends $dara.Model {
|
|
|
500
561
|
if(this.mergeMethodArgs && typeof (this.mergeMethodArgs as any).validate === 'function') {
|
|
501
562
|
(this.mergeMethodArgs as any).validate();
|
|
502
563
|
}
|
|
564
|
+
if(this.rerankModel && typeof (this.rerankModel as any).validate === 'function') {
|
|
565
|
+
(this.rerankModel as any).validate();
|
|
566
|
+
}
|
|
503
567
|
if(Array.isArray(this.sourceCollection)) {
|
|
504
568
|
$dara.Model.validateArray(this.sourceCollection);
|
|
505
569
|
}
|
|
@@ -63,6 +63,7 @@ export class QueryKnowledgeBasesContentShrinkRequest extends $dara.Model {
|
|
|
63
63
|
* 2
|
|
64
64
|
*/
|
|
65
65
|
rerankFactor?: number;
|
|
66
|
+
rerankModelShrink?: string;
|
|
66
67
|
/**
|
|
67
68
|
* @remarks
|
|
68
69
|
* The information about collections to retrieve from.
|
|
@@ -87,6 +88,7 @@ export class QueryKnowledgeBasesContentShrinkRequest extends $dara.Model {
|
|
|
87
88
|
ownerId: 'OwnerId',
|
|
88
89
|
regionId: 'RegionId',
|
|
89
90
|
rerankFactor: 'RerankFactor',
|
|
91
|
+
rerankModelShrink: 'RerankModel',
|
|
90
92
|
sourceCollectionShrink: 'SourceCollection',
|
|
91
93
|
topK: 'TopK',
|
|
92
94
|
};
|
|
@@ -101,6 +103,7 @@ export class QueryKnowledgeBasesContentShrinkRequest extends $dara.Model {
|
|
|
101
103
|
ownerId: 'number',
|
|
102
104
|
regionId: 'string',
|
|
103
105
|
rerankFactor: 'number',
|
|
106
|
+
rerankModelShrink: 'string',
|
|
104
107
|
sourceCollectionShrink: 'string',
|
|
105
108
|
topK: 'number',
|
|
106
109
|
};
|
|
@@ -20,6 +20,11 @@ export class RerankRequest extends $dara.Model {
|
|
|
20
20
|
* List of documents to be re-ordered.
|
|
21
21
|
*/
|
|
22
22
|
documents?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* Given a web search query, retrieve relevant passages that answer the query
|
|
26
|
+
*/
|
|
27
|
+
instruct?: string;
|
|
23
28
|
/**
|
|
24
29
|
* @remarks
|
|
25
30
|
* Maximum number of chunks allowed when the text exceeds the model window:
|
|
@@ -82,6 +87,7 @@ export class RerankRequest extends $dara.Model {
|
|
|
82
87
|
return {
|
|
83
88
|
DBInstanceId: 'DBInstanceId',
|
|
84
89
|
documents: 'Documents',
|
|
90
|
+
instruct: 'Instruct',
|
|
85
91
|
maxChunksPerDoc: 'MaxChunksPerDoc',
|
|
86
92
|
model: 'Model',
|
|
87
93
|
ownerId: 'OwnerId',
|
|
@@ -96,6 +102,7 @@ export class RerankRequest extends $dara.Model {
|
|
|
96
102
|
return {
|
|
97
103
|
DBInstanceId: 'string',
|
|
98
104
|
documents: { 'type': 'array', 'itemType': 'string' },
|
|
105
|
+
instruct: 'string',
|
|
99
106
|
maxChunksPerDoc: 'number',
|
|
100
107
|
model: 'string',
|
|
101
108
|
ownerId: 'number',
|
|
@@ -20,6 +20,11 @@ export class RerankShrinkRequest extends $dara.Model {
|
|
|
20
20
|
* List of documents to be re-ordered.
|
|
21
21
|
*/
|
|
22
22
|
documentsShrink?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* Given a web search query, retrieve relevant passages that answer the query
|
|
26
|
+
*/
|
|
27
|
+
instruct?: string;
|
|
23
28
|
/**
|
|
24
29
|
* @remarks
|
|
25
30
|
* Maximum number of chunks allowed when the text exceeds the model window:
|
|
@@ -82,6 +87,7 @@ export class RerankShrinkRequest extends $dara.Model {
|
|
|
82
87
|
return {
|
|
83
88
|
DBInstanceId: 'DBInstanceId',
|
|
84
89
|
documentsShrink: 'Documents',
|
|
90
|
+
instruct: 'Instruct',
|
|
85
91
|
maxChunksPerDoc: 'MaxChunksPerDoc',
|
|
86
92
|
model: 'Model',
|
|
87
93
|
ownerId: 'OwnerId',
|
|
@@ -96,6 +102,7 @@ export class RerankShrinkRequest extends $dara.Model {
|
|
|
96
102
|
return {
|
|
97
103
|
DBInstanceId: 'string',
|
|
98
104
|
documentsShrink: 'string',
|
|
105
|
+
instruct: 'string',
|
|
99
106
|
maxChunksPerDoc: 'number',
|
|
100
107
|
model: 'string',
|
|
101
108
|
ownerId: 'number',
|
package/src/models/model.ts
CHANGED
|
@@ -2,7 +2,9 @@ export { AddAINodeRequestAINodeSpecInfos } from './AddAinodeRequest';
|
|
|
2
2
|
export { ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgsRrf } from './ChatWithKnowledgeBaseRequest';
|
|
3
3
|
export { ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgsWeight } from './ChatWithKnowledgeBaseRequest';
|
|
4
4
|
export { ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgs } from './ChatWithKnowledgeBaseRequest';
|
|
5
|
+
export { ChatWithKnowledgeBaseRequestKnowledgeParamsRerankModel } from './ChatWithKnowledgeBaseRequest';
|
|
5
6
|
export { ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParamsGraphSearchArgs } from './ChatWithKnowledgeBaseRequest';
|
|
7
|
+
export { ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel } from './ChatWithKnowledgeBaseRequest';
|
|
6
8
|
export { ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParams } from './ChatWithKnowledgeBaseRequest';
|
|
7
9
|
export { ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollection } from './ChatWithKnowledgeBaseRequest';
|
|
8
10
|
export { ChatWithKnowledgeBaseRequestKnowledgeParams } from './ChatWithKnowledgeBaseRequest';
|
|
@@ -23,7 +25,9 @@ export { ChatWithKnowledgeBaseResponseBodyMultiCollectionRecallResult } from './
|
|
|
23
25
|
export { ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgsRrf } from './ChatWithKnowledgeBaseStreamRequest';
|
|
24
26
|
export { ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgsWeight } from './ChatWithKnowledgeBaseStreamRequest';
|
|
25
27
|
export { ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgs } from './ChatWithKnowledgeBaseStreamRequest';
|
|
28
|
+
export { ChatWithKnowledgeBaseStreamRequestKnowledgeParamsRerankModel } from './ChatWithKnowledgeBaseStreamRequest';
|
|
26
29
|
export { ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParamsGraphSearchArgs } from './ChatWithKnowledgeBaseStreamRequest';
|
|
30
|
+
export { ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel } from './ChatWithKnowledgeBaseStreamRequest';
|
|
27
31
|
export { ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParams } from './ChatWithKnowledgeBaseStreamRequest';
|
|
28
32
|
export { ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollection } from './ChatWithKnowledgeBaseStreamRequest';
|
|
29
33
|
export { ChatWithKnowledgeBaseStreamRequestKnowledgeParams } from './ChatWithKnowledgeBaseStreamRequest';
|
|
@@ -42,9 +46,11 @@ export { ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultMatch
|
|
|
42
46
|
export { ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultUsage } from './ChatWithKnowledgeBaseStreamResponseBody';
|
|
43
47
|
export { ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResult } from './ChatWithKnowledgeBaseStreamResponseBody';
|
|
44
48
|
export { CreateCollectionRequestSparseVectorIndexConfig } from './CreateCollectionRequest';
|
|
49
|
+
export { CreateCollectionRequestVectorIndexConfig } from './CreateCollectionRequest';
|
|
45
50
|
export { CreateDBInstanceRequestAINodeSpecInfos } from './CreateDbinstanceRequest';
|
|
46
51
|
export { CreateDBInstanceRequestTag } from './CreateDbinstanceRequest';
|
|
47
52
|
export { CreateDocumentCollectionRequestSparseVectorIndexConfig } from './CreateDocumentCollectionRequest';
|
|
53
|
+
export { CreateDocumentCollectionRequestVectorIndexConfig } from './CreateDocumentCollectionRequest';
|
|
48
54
|
export { CreateRemoteADBDataSourceResponseBodyDataSourceItem } from './CreateRemoteAdbdataSourceResponseBody';
|
|
49
55
|
export { DescribeAccountsResponseBodyAccountsDBInstanceAccount } from './DescribeAccountsResponseBody';
|
|
50
56
|
export { DescribeAccountsResponseBodyAccounts } from './DescribeAccountsResponseBody';
|
|
@@ -158,8 +164,12 @@ export { GetUpsertCollectionDataJobResponseBodyJob } from './GetUpsertCollection
|
|
|
158
164
|
export { HandleActiveSQLRecordResponseBodyResults } from './HandleActiveSqlrecordResponseBody';
|
|
159
165
|
export { ListAINodePoolsResponseBodyAINodePoolInfosAINodeInfos } from './ListAinodePoolsResponseBody';
|
|
160
166
|
export { ListAINodePoolsResponseBodyAINodePoolInfos } from './ListAinodePoolsResponseBody';
|
|
167
|
+
export { ListAIServicesResponseBodyServices } from './ListAiservicesResponseBody';
|
|
161
168
|
export { ListBackupJobsResponseBodyItemsBackupJob } from './ListBackupJobsResponseBody';
|
|
162
169
|
export { ListBackupJobsResponseBodyItems } from './ListBackupJobsResponseBody';
|
|
170
|
+
export { ListChunksResponseBodyChunksChunksVector } from './ListChunksResponseBody';
|
|
171
|
+
export { ListChunksResponseBodyChunksChunks } from './ListChunksResponseBody';
|
|
172
|
+
export { ListChunksResponseBodyChunks } from './ListChunksResponseBody';
|
|
163
173
|
export { ListCollectionsResponseBodyCollections } from './ListCollectionsResponseBody';
|
|
164
174
|
export { ListDatabaseExtensionsResponseBodyExtensions } from './ListDatabaseExtensionsResponseBody';
|
|
165
175
|
export { ListDatabasesResponseBodyDatabases } from './ListDatabasesResponseBody';
|
|
@@ -201,7 +211,9 @@ export { QueryCollectionDataResponseBodyMatchesMatchValues } from './QueryCollec
|
|
|
201
211
|
export { QueryCollectionDataResponseBodyMatchesMatch } from './QueryCollectionDataResponseBody';
|
|
202
212
|
export { QueryCollectionDataResponseBodyMatches } from './QueryCollectionDataResponseBody';
|
|
203
213
|
export { QueryContentRequestGraphSearchArgs } from './QueryContentRequest';
|
|
214
|
+
export { QueryContentRequestRerankModel } from './QueryContentRequest';
|
|
204
215
|
export { QueryContentAdvanceRequestGraphSearchArgs } from './QueryContentAdvanceRequest';
|
|
216
|
+
export { QueryContentAdvanceRequestRerankModel } from './QueryContentAdvanceRequest';
|
|
205
217
|
export { QueryContentResponseBodyEntitiesEntities } from './QueryContentResponseBody';
|
|
206
218
|
export { QueryContentResponseBodyEntities } from './QueryContentResponseBody';
|
|
207
219
|
export { QueryContentResponseBodyMatchesMatchListVector } from './QueryContentResponseBody';
|
|
@@ -217,7 +229,9 @@ export { QueryContentResponseBodyWindowMatches } from './QueryContentResponseBod
|
|
|
217
229
|
export { QueryKnowledgeBasesContentRequestMergeMethodArgsRrf } from './QueryKnowledgeBasesContentRequest';
|
|
218
230
|
export { QueryKnowledgeBasesContentRequestMergeMethodArgsWeight } from './QueryKnowledgeBasesContentRequest';
|
|
219
231
|
export { QueryKnowledgeBasesContentRequestMergeMethodArgs } from './QueryKnowledgeBasesContentRequest';
|
|
232
|
+
export { QueryKnowledgeBasesContentRequestRerankModel } from './QueryKnowledgeBasesContentRequest';
|
|
220
233
|
export { QueryKnowledgeBasesContentRequestSourceCollectionQueryParamsGraphSearchArgs } from './QueryKnowledgeBasesContentRequest';
|
|
234
|
+
export { QueryKnowledgeBasesContentRequestSourceCollectionQueryParamsRerankModel } from './QueryKnowledgeBasesContentRequest';
|
|
221
235
|
export { QueryKnowledgeBasesContentRequestSourceCollectionQueryParams } from './QueryKnowledgeBasesContentRequest';
|
|
222
236
|
export { QueryKnowledgeBasesContentRequestSourceCollection } from './QueryKnowledgeBasesContentRequest';
|
|
223
237
|
export { QueryKnowledgeBasesContentResponseBodyEntitiesEntities } from './QueryKnowledgeBasesContentResponseBody';
|
|
@@ -281,6 +295,9 @@ export { CheckServiceLinkedRoleResponse } from './CheckServiceLinkedRoleResponse
|
|
|
281
295
|
export { CloneDBInstanceRequest } from './CloneDbinstanceRequest';
|
|
282
296
|
export { CloneDBInstanceResponseBody } from './CloneDbinstanceResponseBody';
|
|
283
297
|
export { CloneDBInstanceResponse } from './CloneDbinstanceResponse';
|
|
298
|
+
export { CreateAIServiceRequest } from './CreateAiserviceRequest';
|
|
299
|
+
export { CreateAIServiceResponseBody } from './CreateAiserviceResponseBody';
|
|
300
|
+
export { CreateAIServiceResponse } from './CreateAiserviceResponse';
|
|
284
301
|
export { CreateAccountRequest } from './CreateAccountRequest';
|
|
285
302
|
export { CreateAccountResponseBody } from './CreateAccountResponseBody';
|
|
286
303
|
export { CreateAccountResponse } from './CreateAccountResponse';
|
|
@@ -364,12 +381,19 @@ export { CreateVectorIndexResponse } from './CreateVectorIndexResponse';
|
|
|
364
381
|
export { DeleteAINodeRequest } from './DeleteAinodeRequest';
|
|
365
382
|
export { DeleteAINodeResponseBody } from './DeleteAinodeResponseBody';
|
|
366
383
|
export { DeleteAINodeResponse } from './DeleteAinodeResponse';
|
|
384
|
+
export { DeleteAIServiceRequest } from './DeleteAiserviceRequest';
|
|
385
|
+
export { DeleteAIServiceResponseBody } from './DeleteAiserviceResponseBody';
|
|
386
|
+
export { DeleteAIServiceResponse } from './DeleteAiserviceResponse';
|
|
367
387
|
export { DeleteAccountRequest } from './DeleteAccountRequest';
|
|
368
388
|
export { DeleteAccountResponseBody } from './DeleteAccountResponseBody';
|
|
369
389
|
export { DeleteAccountResponse } from './DeleteAccountResponse';
|
|
370
390
|
export { DeleteBackupRequest } from './DeleteBackupRequest';
|
|
371
391
|
export { DeleteBackupResponseBody } from './DeleteBackupResponseBody';
|
|
372
392
|
export { DeleteBackupResponse } from './DeleteBackupResponse';
|
|
393
|
+
export { DeleteChunksRequest } from './DeleteChunksRequest';
|
|
394
|
+
export { DeleteChunksShrinkRequest } from './DeleteChunksShrinkRequest';
|
|
395
|
+
export { DeleteChunksResponseBody } from './DeleteChunksResponseBody';
|
|
396
|
+
export { DeleteChunksResponse } from './DeleteChunksResponse';
|
|
373
397
|
export { DeleteCollectionRequest } from './DeleteCollectionRequest';
|
|
374
398
|
export { DeleteCollectionResponseBody } from './DeleteCollectionResponseBody';
|
|
375
399
|
export { DeleteCollectionResponse } from './DeleteCollectionResponse';
|
|
@@ -445,6 +469,9 @@ export { DeleteVectorIndexResponse } from './DeleteVectorIndexResponse';
|
|
|
445
469
|
export { DeployPrivateRAGServiceRequest } from './DeployPrivateRagserviceRequest';
|
|
446
470
|
export { DeployPrivateRAGServiceResponseBody } from './DeployPrivateRagserviceResponseBody';
|
|
447
471
|
export { DeployPrivateRAGServiceResponse } from './DeployPrivateRagserviceResponse';
|
|
472
|
+
export { DescribeAIServiceRequest } from './DescribeAiserviceRequest';
|
|
473
|
+
export { DescribeAIServiceResponseBody } from './DescribeAiserviceResponseBody';
|
|
474
|
+
export { DescribeAIServiceResponse } from './DescribeAiserviceResponse';
|
|
448
475
|
export { DescribeAccountsRequest } from './DescribeAccountsRequest';
|
|
449
476
|
export { DescribeAccountsResponseBody } from './DescribeAccountsResponseBody';
|
|
450
477
|
export { DescribeAccountsResponse } from './DescribeAccountsResponse';
|
|
@@ -721,9 +748,15 @@ export { InitVectorDatabaseResponse } from './InitVectorDatabaseResponse';
|
|
|
721
748
|
export { ListAINodePoolsRequest } from './ListAinodePoolsRequest';
|
|
722
749
|
export { ListAINodePoolsResponseBody } from './ListAinodePoolsResponseBody';
|
|
723
750
|
export { ListAINodePoolsResponse } from './ListAinodePoolsResponse';
|
|
751
|
+
export { ListAIServicesRequest } from './ListAiservicesRequest';
|
|
752
|
+
export { ListAIServicesResponseBody } from './ListAiservicesResponseBody';
|
|
753
|
+
export { ListAIServicesResponse } from './ListAiservicesResponse';
|
|
724
754
|
export { ListBackupJobsRequest } from './ListBackupJobsRequest';
|
|
725
755
|
export { ListBackupJobsResponseBody } from './ListBackupJobsResponseBody';
|
|
726
756
|
export { ListBackupJobsResponse } from './ListBackupJobsResponse';
|
|
757
|
+
export { ListChunksRequest } from './ListChunksRequest';
|
|
758
|
+
export { ListChunksResponseBody } from './ListChunksResponseBody';
|
|
759
|
+
export { ListChunksResponse } from './ListChunksResponse';
|
|
727
760
|
export { ListCollectionsRequest } from './ListCollectionsRequest';
|
|
728
761
|
export { ListCollectionsResponseBody } from './ListCollectionsResponseBody';
|
|
729
762
|
export { ListCollectionsResponse } from './ListCollectionsResponse';
|
|
@@ -793,6 +826,9 @@ export { ListTablesResponse } from './ListTablesResponse';
|
|
|
793
826
|
export { ListTagResourcesRequest } from './ListTagResourcesRequest';
|
|
794
827
|
export { ListTagResourcesResponseBody } from './ListTagResourcesResponseBody';
|
|
795
828
|
export { ListTagResourcesResponse } from './ListTagResourcesResponse';
|
|
829
|
+
export { ModifyAIServiceSecurityIpsRequest } from './ModifyAiserviceSecurityIpsRequest';
|
|
830
|
+
export { ModifyAIServiceSecurityIpsResponseBody } from './ModifyAiserviceSecurityIpsResponseBody';
|
|
831
|
+
export { ModifyAIServiceSecurityIpsResponse } from './ModifyAiserviceSecurityIpsResponse';
|
|
796
832
|
export { ModifyAccountDescriptionRequest } from './ModifyAccountDescriptionRequest';
|
|
797
833
|
export { ModifyAccountDescriptionResponseBody } from './ModifyAccountDescriptionResponseBody';
|
|
798
834
|
export { ModifyAccountDescriptionResponse } from './ModifyAccountDescriptionResponse';
|