@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
|
@@ -102,6 +102,40 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgs extends
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
export class ChatWithKnowledgeBaseRequestKnowledgeParamsRerankModel extends $dara.Model {
|
|
106
|
+
/**
|
|
107
|
+
* @example
|
|
108
|
+
* Given a web search query, retrieve relevant passages that answer the query
|
|
109
|
+
*/
|
|
110
|
+
instruct?: string;
|
|
111
|
+
/**
|
|
112
|
+
* @example
|
|
113
|
+
* qwen3-rerank
|
|
114
|
+
*/
|
|
115
|
+
name?: string;
|
|
116
|
+
static names(): { [key: string]: string } {
|
|
117
|
+
return {
|
|
118
|
+
instruct: 'Instruct',
|
|
119
|
+
name: 'Name',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
static types(): { [key: string]: any } {
|
|
124
|
+
return {
|
|
125
|
+
instruct: 'string',
|
|
126
|
+
name: 'string',
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
validate() {
|
|
131
|
+
super.validate();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
constructor(map?: { [key: string]: any }) {
|
|
135
|
+
super(map);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
105
139
|
export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParamsGraphSearchArgs extends $dara.Model {
|
|
106
140
|
/**
|
|
107
141
|
* @remarks
|
|
@@ -132,6 +166,40 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
|
|
|
132
166
|
}
|
|
133
167
|
}
|
|
134
168
|
|
|
169
|
+
export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel extends $dara.Model {
|
|
170
|
+
/**
|
|
171
|
+
* @example
|
|
172
|
+
* Given a web search query, retrieve relevant passages that answer the query
|
|
173
|
+
*/
|
|
174
|
+
instruct?: string;
|
|
175
|
+
/**
|
|
176
|
+
* @example
|
|
177
|
+
* qwen3-rerank
|
|
178
|
+
*/
|
|
179
|
+
name?: string;
|
|
180
|
+
static names(): { [key: string]: string } {
|
|
181
|
+
return {
|
|
182
|
+
instruct: 'Instruct',
|
|
183
|
+
name: 'Name',
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
static types(): { [key: string]: any } {
|
|
188
|
+
return {
|
|
189
|
+
instruct: 'string',
|
|
190
|
+
name: 'string',
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
validate() {
|
|
195
|
+
super.validate();
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
constructor(map?: { [key: string]: any }) {
|
|
199
|
+
super(map);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
135
203
|
export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParams extends $dara.Model {
|
|
136
204
|
/**
|
|
137
205
|
* @remarks
|
|
@@ -230,6 +298,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
|
|
|
230
298
|
* 1.5
|
|
231
299
|
*/
|
|
232
300
|
rerankFactor?: number;
|
|
301
|
+
rerankModel?: ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel;
|
|
233
302
|
/**
|
|
234
303
|
* @remarks
|
|
235
304
|
* The number of top results.
|
|
@@ -256,6 +325,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
|
|
|
256
325
|
metrics: 'Metrics',
|
|
257
326
|
recallWindow: 'RecallWindow',
|
|
258
327
|
rerankFactor: 'RerankFactor',
|
|
328
|
+
rerankModel: 'RerankModel',
|
|
259
329
|
topK: 'TopK',
|
|
260
330
|
useFullTextRetrieval: 'UseFullTextRetrieval',
|
|
261
331
|
};
|
|
@@ -271,6 +341,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
|
|
|
271
341
|
metrics: 'string',
|
|
272
342
|
recallWindow: { 'type': 'array', 'itemType': 'number' },
|
|
273
343
|
rerankFactor: 'number',
|
|
344
|
+
rerankModel: ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel,
|
|
274
345
|
topK: 'number',
|
|
275
346
|
useFullTextRetrieval: 'boolean',
|
|
276
347
|
};
|
|
@@ -286,6 +357,9 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryPar
|
|
|
286
357
|
if(Array.isArray(this.recallWindow)) {
|
|
287
358
|
$dara.Model.validateArray(this.recallWindow);
|
|
288
359
|
}
|
|
360
|
+
if(this.rerankModel && typeof (this.rerankModel as any).validate === 'function') {
|
|
361
|
+
(this.rerankModel as any).validate();
|
|
362
|
+
}
|
|
289
363
|
super.validate();
|
|
290
364
|
}
|
|
291
365
|
|
|
@@ -393,6 +467,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParams extends $dara.Model {
|
|
|
393
467
|
* 1.0001
|
|
394
468
|
*/
|
|
395
469
|
rerankFactor?: number;
|
|
470
|
+
rerankModel?: ChatWithKnowledgeBaseRequestKnowledgeParamsRerankModel;
|
|
396
471
|
/**
|
|
397
472
|
* @remarks
|
|
398
473
|
* Knowledge base.
|
|
@@ -413,6 +488,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParams extends $dara.Model {
|
|
|
413
488
|
mergeMethod: 'MergeMethod',
|
|
414
489
|
mergeMethodArgs: 'MergeMethodArgs',
|
|
415
490
|
rerankFactor: 'RerankFactor',
|
|
491
|
+
rerankModel: 'RerankModel',
|
|
416
492
|
sourceCollection: 'SourceCollection',
|
|
417
493
|
topK: 'TopK',
|
|
418
494
|
};
|
|
@@ -423,6 +499,7 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParams extends $dara.Model {
|
|
|
423
499
|
mergeMethod: 'string',
|
|
424
500
|
mergeMethodArgs: ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgs,
|
|
425
501
|
rerankFactor: 'number',
|
|
502
|
+
rerankModel: ChatWithKnowledgeBaseRequestKnowledgeParamsRerankModel,
|
|
426
503
|
sourceCollection: { 'type': 'array', 'itemType': ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollection },
|
|
427
504
|
topK: 'number',
|
|
428
505
|
};
|
|
@@ -432,6 +509,9 @@ export class ChatWithKnowledgeBaseRequestKnowledgeParams extends $dara.Model {
|
|
|
432
509
|
if(this.mergeMethodArgs && typeof (this.mergeMethodArgs as any).validate === 'function') {
|
|
433
510
|
(this.mergeMethodArgs as any).validate();
|
|
434
511
|
}
|
|
512
|
+
if(this.rerankModel && typeof (this.rerankModel as any).validate === 'function') {
|
|
513
|
+
(this.rerankModel as any).validate();
|
|
514
|
+
}
|
|
435
515
|
if(Array.isArray(this.sourceCollection)) {
|
|
436
516
|
$dara.Model.validateArray(this.sourceCollection);
|
|
437
517
|
}
|
|
@@ -102,6 +102,40 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgs ex
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsRerankModel extends $dara.Model {
|
|
106
|
+
/**
|
|
107
|
+
* @example
|
|
108
|
+
* Given a web search query, retrieve relevant passages that answer the query
|
|
109
|
+
*/
|
|
110
|
+
instruct?: string;
|
|
111
|
+
/**
|
|
112
|
+
* @example
|
|
113
|
+
* qwen3-rerank
|
|
114
|
+
*/
|
|
115
|
+
name?: string;
|
|
116
|
+
static names(): { [key: string]: string } {
|
|
117
|
+
return {
|
|
118
|
+
instruct: 'Instruct',
|
|
119
|
+
name: 'Name',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
static types(): { [key: string]: any } {
|
|
124
|
+
return {
|
|
125
|
+
instruct: 'string',
|
|
126
|
+
name: 'string',
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
validate() {
|
|
131
|
+
super.validate();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
constructor(map?: { [key: string]: any }) {
|
|
135
|
+
super(map);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
105
139
|
export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParamsGraphSearchArgs extends $dara.Model {
|
|
106
140
|
/**
|
|
107
141
|
* @remarks
|
|
@@ -132,6 +166,40 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
|
|
|
132
166
|
}
|
|
133
167
|
}
|
|
134
168
|
|
|
169
|
+
export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel extends $dara.Model {
|
|
170
|
+
/**
|
|
171
|
+
* @example
|
|
172
|
+
* Given a web search query, retrieve relevant passages that answer the query
|
|
173
|
+
*/
|
|
174
|
+
instruct?: string;
|
|
175
|
+
/**
|
|
176
|
+
* @example
|
|
177
|
+
* qwen3-rerank
|
|
178
|
+
*/
|
|
179
|
+
name?: string;
|
|
180
|
+
static names(): { [key: string]: string } {
|
|
181
|
+
return {
|
|
182
|
+
instruct: 'Instruct',
|
|
183
|
+
name: 'Name',
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
static types(): { [key: string]: any } {
|
|
188
|
+
return {
|
|
189
|
+
instruct: 'string',
|
|
190
|
+
name: 'string',
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
validate() {
|
|
195
|
+
super.validate();
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
constructor(map?: { [key: string]: any }) {
|
|
199
|
+
super(map);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
135
203
|
export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParams extends $dara.Model {
|
|
136
204
|
/**
|
|
137
205
|
* @remarks
|
|
@@ -230,6 +298,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
|
|
|
230
298
|
* 2.0
|
|
231
299
|
*/
|
|
232
300
|
rerankFactor?: number;
|
|
301
|
+
rerankModel?: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel;
|
|
233
302
|
/**
|
|
234
303
|
* @remarks
|
|
235
304
|
* The number of top results.
|
|
@@ -256,6 +325,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
|
|
|
256
325
|
metrics: 'Metrics',
|
|
257
326
|
recallWindow: 'RecallWindow',
|
|
258
327
|
rerankFactor: 'RerankFactor',
|
|
328
|
+
rerankModel: 'RerankModel',
|
|
259
329
|
topK: 'TopK',
|
|
260
330
|
useFullTextRetrieval: 'UseFullTextRetrieval',
|
|
261
331
|
};
|
|
@@ -271,6 +341,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
|
|
|
271
341
|
metrics: 'string',
|
|
272
342
|
recallWindow: { 'type': 'array', 'itemType': 'number' },
|
|
273
343
|
rerankFactor: 'number',
|
|
344
|
+
rerankModel: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQueryParamsRerankModel,
|
|
274
345
|
topK: 'number',
|
|
275
346
|
useFullTextRetrieval: 'boolean',
|
|
276
347
|
};
|
|
@@ -286,6 +357,9 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollectionQu
|
|
|
286
357
|
if(Array.isArray(this.recallWindow)) {
|
|
287
358
|
$dara.Model.validateArray(this.recallWindow);
|
|
288
359
|
}
|
|
360
|
+
if(this.rerankModel && typeof (this.rerankModel as any).validate === 'function') {
|
|
361
|
+
(this.rerankModel as any).validate();
|
|
362
|
+
}
|
|
289
363
|
super.validate();
|
|
290
364
|
}
|
|
291
365
|
|
|
@@ -393,6 +467,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParams extends $dara.Mod
|
|
|
393
467
|
* 5.0
|
|
394
468
|
*/
|
|
395
469
|
rerankFactor?: number;
|
|
470
|
+
rerankModel?: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsRerankModel;
|
|
396
471
|
/**
|
|
397
472
|
* @remarks
|
|
398
473
|
* Knowledge base.
|
|
@@ -413,6 +488,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParams extends $dara.Mod
|
|
|
413
488
|
mergeMethod: 'MergeMethod',
|
|
414
489
|
mergeMethodArgs: 'MergeMethodArgs',
|
|
415
490
|
rerankFactor: 'RerankFactor',
|
|
491
|
+
rerankModel: 'RerankModel',
|
|
416
492
|
sourceCollection: 'SourceCollection',
|
|
417
493
|
topK: 'TopK',
|
|
418
494
|
};
|
|
@@ -423,6 +499,7 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParams extends $dara.Mod
|
|
|
423
499
|
mergeMethod: 'string',
|
|
424
500
|
mergeMethodArgs: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsMergeMethodArgs,
|
|
425
501
|
rerankFactor: 'number',
|
|
502
|
+
rerankModel: ChatWithKnowledgeBaseStreamRequestKnowledgeParamsRerankModel,
|
|
426
503
|
sourceCollection: { 'type': 'array', 'itemType': ChatWithKnowledgeBaseStreamRequestKnowledgeParamsSourceCollection },
|
|
427
504
|
topK: 'number',
|
|
428
505
|
};
|
|
@@ -432,6 +509,9 @@ export class ChatWithKnowledgeBaseStreamRequestKnowledgeParams extends $dara.Mod
|
|
|
432
509
|
if(this.mergeMethodArgs && typeof (this.mergeMethodArgs as any).validate === 'function') {
|
|
433
510
|
(this.mergeMethodArgs as any).validate();
|
|
434
511
|
}
|
|
512
|
+
if(this.rerankModel && typeof (this.rerankModel as any).validate === 'function') {
|
|
513
|
+
(this.rerankModel as any).validate();
|
|
514
|
+
}
|
|
435
515
|
if(Array.isArray(this.sourceCollection)) {
|
|
436
516
|
$dara.Model.validateArray(this.sourceCollection);
|
|
437
517
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateAIServiceRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* gp-xxxxxxxxx
|
|
12
|
+
*/
|
|
13
|
+
DBInstanceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* dramatest
|
|
17
|
+
*/
|
|
18
|
+
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* 127.0.0.1
|
|
22
|
+
*/
|
|
23
|
+
securityIPList?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* dramauser
|
|
30
|
+
*/
|
|
31
|
+
serviceAccount?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* This parameter is required.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* 123456Aa!
|
|
38
|
+
*/
|
|
39
|
+
serviceAccountPassword?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* This parameter is required.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* drama
|
|
46
|
+
*/
|
|
47
|
+
type?: string;
|
|
48
|
+
static names(): { [key: string]: string } {
|
|
49
|
+
return {
|
|
50
|
+
DBInstanceId: 'DBInstanceId',
|
|
51
|
+
description: 'Description',
|
|
52
|
+
securityIPList: 'SecurityIPList',
|
|
53
|
+
serviceAccount: 'ServiceAccount',
|
|
54
|
+
serviceAccountPassword: 'ServiceAccountPassword',
|
|
55
|
+
type: 'Type',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static types(): { [key: string]: any } {
|
|
60
|
+
return {
|
|
61
|
+
DBInstanceId: 'string',
|
|
62
|
+
description: 'string',
|
|
63
|
+
securityIPList: 'string',
|
|
64
|
+
serviceAccount: 'string',
|
|
65
|
+
serviceAccountPassword: 'string',
|
|
66
|
+
type: 'string',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
validate() {
|
|
71
|
+
super.validate();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
constructor(map?: { [key: string]: any }) {
|
|
75
|
+
super(map);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateAIServiceResponseBody } from "./CreateAiserviceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateAIServiceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateAIServiceResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateAIServiceResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateAIServiceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* ABB39CC3-4488-4857-905D-2E4A051D0521
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* drama-123456
|
|
14
|
+
*/
|
|
15
|
+
serviceId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
requestId: 'RequestId',
|
|
19
|
+
serviceId: 'ServiceId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
requestId: 'string',
|
|
26
|
+
serviceId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -3,10 +3,12 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class CreateCollectionRequestSparseVectorIndexConfig extends $dara.Model {
|
|
6
|
+
algorithm?: string;
|
|
6
7
|
hnswEfConstruction?: number;
|
|
7
8
|
hnswM?: number;
|
|
8
9
|
static names(): { [key: string]: string } {
|
|
9
10
|
return {
|
|
11
|
+
algorithm: 'Algorithm',
|
|
10
12
|
hnswEfConstruction: 'HnswEfConstruction',
|
|
11
13
|
hnswM: 'HnswM',
|
|
12
14
|
};
|
|
@@ -14,6 +16,7 @@ export class CreateCollectionRequestSparseVectorIndexConfig extends $dara.Model
|
|
|
14
16
|
|
|
15
17
|
static types(): { [key: string]: any } {
|
|
16
18
|
return {
|
|
19
|
+
algorithm: 'string',
|
|
17
20
|
hnswEfConstruction: 'number',
|
|
18
21
|
hnswM: 'number',
|
|
19
22
|
};
|
|
@@ -28,7 +31,34 @@ export class CreateCollectionRequestSparseVectorIndexConfig extends $dara.Model
|
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
|
|
34
|
+
export class CreateCollectionRequestVectorIndexConfig extends $dara.Model {
|
|
35
|
+
nlist?: number;
|
|
36
|
+
rabitqBits?: number;
|
|
37
|
+
static names(): { [key: string]: string } {
|
|
38
|
+
return {
|
|
39
|
+
nlist: 'Nlist',
|
|
40
|
+
rabitqBits: 'RabitqBits',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static types(): { [key: string]: any } {
|
|
45
|
+
return {
|
|
46
|
+
nlist: 'number',
|
|
47
|
+
rabitqBits: 'number',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
validate() {
|
|
52
|
+
super.validate();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constructor(map?: { [key: string]: any }) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
31
60
|
export class CreateCollectionRequest extends $dara.Model {
|
|
61
|
+
algorithm?: string;
|
|
32
62
|
/**
|
|
33
63
|
* @remarks
|
|
34
64
|
* The name of the collection that you want to create.
|
|
@@ -206,6 +236,7 @@ export class CreateCollectionRequest extends $dara.Model {
|
|
|
206
236
|
regionId?: string;
|
|
207
237
|
sparseVectorIndexConfig?: CreateCollectionRequestSparseVectorIndexConfig;
|
|
208
238
|
supportSparse?: boolean;
|
|
239
|
+
vectorIndexConfig?: CreateCollectionRequestVectorIndexConfig;
|
|
209
240
|
/**
|
|
210
241
|
* @remarks
|
|
211
242
|
* The ID of the workspace that consists of multiple AnalyticDB for PostgreSQL instances. You must specify one of the WorkspaceId and DBInstanceId parameters. If you specify both parameters, the WorkspaceId parameter takes effect.
|
|
@@ -216,6 +247,7 @@ export class CreateCollectionRequest extends $dara.Model {
|
|
|
216
247
|
workspaceId?: string;
|
|
217
248
|
static names(): { [key: string]: string } {
|
|
218
249
|
return {
|
|
250
|
+
algorithm: 'Algorithm',
|
|
219
251
|
collection: 'Collection',
|
|
220
252
|
DBInstanceId: 'DBInstanceId',
|
|
221
253
|
dimension: 'Dimension',
|
|
@@ -235,12 +267,14 @@ export class CreateCollectionRequest extends $dara.Model {
|
|
|
235
267
|
regionId: 'RegionId',
|
|
236
268
|
sparseVectorIndexConfig: 'SparseVectorIndexConfig',
|
|
237
269
|
supportSparse: 'SupportSparse',
|
|
270
|
+
vectorIndexConfig: 'VectorIndexConfig',
|
|
238
271
|
workspaceId: 'WorkspaceId',
|
|
239
272
|
};
|
|
240
273
|
}
|
|
241
274
|
|
|
242
275
|
static types(): { [key: string]: any } {
|
|
243
276
|
return {
|
|
277
|
+
algorithm: 'string',
|
|
244
278
|
collection: 'string',
|
|
245
279
|
DBInstanceId: 'string',
|
|
246
280
|
dimension: 'number',
|
|
@@ -260,6 +294,7 @@ export class CreateCollectionRequest extends $dara.Model {
|
|
|
260
294
|
regionId: 'string',
|
|
261
295
|
sparseVectorIndexConfig: CreateCollectionRequestSparseVectorIndexConfig,
|
|
262
296
|
supportSparse: 'boolean',
|
|
297
|
+
vectorIndexConfig: CreateCollectionRequestVectorIndexConfig,
|
|
263
298
|
workspaceId: 'string',
|
|
264
299
|
};
|
|
265
300
|
}
|
|
@@ -268,6 +303,9 @@ export class CreateCollectionRequest extends $dara.Model {
|
|
|
268
303
|
if(this.sparseVectorIndexConfig && typeof (this.sparseVectorIndexConfig as any).validate === 'function') {
|
|
269
304
|
(this.sparseVectorIndexConfig as any).validate();
|
|
270
305
|
}
|
|
306
|
+
if(this.vectorIndexConfig && typeof (this.vectorIndexConfig as any).validate === 'function') {
|
|
307
|
+
(this.vectorIndexConfig as any).validate();
|
|
308
|
+
}
|
|
271
309
|
super.validate();
|
|
272
310
|
}
|
|
273
311
|
|
|
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class CreateCollectionShrinkRequest extends $dara.Model {
|
|
6
|
+
algorithm?: string;
|
|
6
7
|
/**
|
|
7
8
|
* @remarks
|
|
8
9
|
* The name of the collection that you want to create.
|
|
@@ -180,6 +181,7 @@ export class CreateCollectionShrinkRequest extends $dara.Model {
|
|
|
180
181
|
regionId?: string;
|
|
181
182
|
sparseVectorIndexConfigShrink?: string;
|
|
182
183
|
supportSparse?: boolean;
|
|
184
|
+
vectorIndexConfigShrink?: string;
|
|
183
185
|
/**
|
|
184
186
|
* @remarks
|
|
185
187
|
* The ID of the workspace that consists of multiple AnalyticDB for PostgreSQL instances. You must specify one of the WorkspaceId and DBInstanceId parameters. If you specify both parameters, the WorkspaceId parameter takes effect.
|
|
@@ -190,6 +192,7 @@ export class CreateCollectionShrinkRequest extends $dara.Model {
|
|
|
190
192
|
workspaceId?: string;
|
|
191
193
|
static names(): { [key: string]: string } {
|
|
192
194
|
return {
|
|
195
|
+
algorithm: 'Algorithm',
|
|
193
196
|
collection: 'Collection',
|
|
194
197
|
DBInstanceId: 'DBInstanceId',
|
|
195
198
|
dimension: 'Dimension',
|
|
@@ -209,12 +212,14 @@ export class CreateCollectionShrinkRequest extends $dara.Model {
|
|
|
209
212
|
regionId: 'RegionId',
|
|
210
213
|
sparseVectorIndexConfigShrink: 'SparseVectorIndexConfig',
|
|
211
214
|
supportSparse: 'SupportSparse',
|
|
215
|
+
vectorIndexConfigShrink: 'VectorIndexConfig',
|
|
212
216
|
workspaceId: 'WorkspaceId',
|
|
213
217
|
};
|
|
214
218
|
}
|
|
215
219
|
|
|
216
220
|
static types(): { [key: string]: any } {
|
|
217
221
|
return {
|
|
222
|
+
algorithm: 'string',
|
|
218
223
|
collection: 'string',
|
|
219
224
|
DBInstanceId: 'string',
|
|
220
225
|
dimension: 'number',
|
|
@@ -234,6 +239,7 @@ export class CreateCollectionShrinkRequest extends $dara.Model {
|
|
|
234
239
|
regionId: 'string',
|
|
235
240
|
sparseVectorIndexConfigShrink: 'string',
|
|
236
241
|
supportSparse: 'boolean',
|
|
242
|
+
vectorIndexConfigShrink: 'string',
|
|
237
243
|
workspaceId: 'string',
|
|
238
244
|
};
|
|
239
245
|
}
|
|
@@ -3,10 +3,12 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class CreateDocumentCollectionRequestSparseVectorIndexConfig extends $dara.Model {
|
|
6
|
+
algorithm?: string;
|
|
6
7
|
hnswEfConstruction?: number;
|
|
7
8
|
hnswM?: number;
|
|
8
9
|
static names(): { [key: string]: string } {
|
|
9
10
|
return {
|
|
11
|
+
algorithm: 'Algorithm',
|
|
10
12
|
hnswEfConstruction: 'HnswEfConstruction',
|
|
11
13
|
hnswM: 'HnswM',
|
|
12
14
|
};
|
|
@@ -14,6 +16,7 @@ export class CreateDocumentCollectionRequestSparseVectorIndexConfig extends $dar
|
|
|
14
16
|
|
|
15
17
|
static types(): { [key: string]: any } {
|
|
16
18
|
return {
|
|
19
|
+
algorithm: 'string',
|
|
17
20
|
hnswEfConstruction: 'number',
|
|
18
21
|
hnswM: 'number',
|
|
19
22
|
};
|
|
@@ -28,7 +31,34 @@ export class CreateDocumentCollectionRequestSparseVectorIndexConfig extends $dar
|
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
|
|
34
|
+
export class CreateDocumentCollectionRequestVectorIndexConfig extends $dara.Model {
|
|
35
|
+
nlist?: number;
|
|
36
|
+
rabitqBits?: number;
|
|
37
|
+
static names(): { [key: string]: string } {
|
|
38
|
+
return {
|
|
39
|
+
nlist: 'Nlist',
|
|
40
|
+
rabitqBits: 'RabitqBits',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static types(): { [key: string]: any } {
|
|
45
|
+
return {
|
|
46
|
+
nlist: 'number',
|
|
47
|
+
rabitqBits: 'number',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
validate() {
|
|
52
|
+
super.validate();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constructor(map?: { [key: string]: any }) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
31
60
|
export class CreateDocumentCollectionRequest extends $dara.Model {
|
|
61
|
+
algorithm?: string;
|
|
32
62
|
/**
|
|
33
63
|
* @remarks
|
|
34
64
|
* The name of the document collection that you want to create.
|
|
@@ -236,8 +266,10 @@ export class CreateDocumentCollectionRequest extends $dara.Model {
|
|
|
236
266
|
sparseRetrievalFields?: string;
|
|
237
267
|
sparseVectorIndexConfig?: CreateDocumentCollectionRequestSparseVectorIndexConfig;
|
|
238
268
|
supportSparse?: boolean;
|
|
269
|
+
vectorIndexConfig?: CreateDocumentCollectionRequestVectorIndexConfig;
|
|
239
270
|
static names(): { [key: string]: string } {
|
|
240
271
|
return {
|
|
272
|
+
algorithm: 'Algorithm',
|
|
241
273
|
collection: 'Collection',
|
|
242
274
|
DBInstanceId: 'DBInstanceId',
|
|
243
275
|
dimension: 'Dimension',
|
|
@@ -264,11 +296,13 @@ export class CreateDocumentCollectionRequest extends $dara.Model {
|
|
|
264
296
|
sparseRetrievalFields: 'SparseRetrievalFields',
|
|
265
297
|
sparseVectorIndexConfig: 'SparseVectorIndexConfig',
|
|
266
298
|
supportSparse: 'SupportSparse',
|
|
299
|
+
vectorIndexConfig: 'VectorIndexConfig',
|
|
267
300
|
};
|
|
268
301
|
}
|
|
269
302
|
|
|
270
303
|
static types(): { [key: string]: any } {
|
|
271
304
|
return {
|
|
305
|
+
algorithm: 'string',
|
|
272
306
|
collection: 'string',
|
|
273
307
|
DBInstanceId: 'string',
|
|
274
308
|
dimension: 'number',
|
|
@@ -295,6 +329,7 @@ export class CreateDocumentCollectionRequest extends $dara.Model {
|
|
|
295
329
|
sparseRetrievalFields: 'string',
|
|
296
330
|
sparseVectorIndexConfig: CreateDocumentCollectionRequestSparseVectorIndexConfig,
|
|
297
331
|
supportSparse: 'boolean',
|
|
332
|
+
vectorIndexConfig: CreateDocumentCollectionRequestVectorIndexConfig,
|
|
298
333
|
};
|
|
299
334
|
}
|
|
300
335
|
|
|
@@ -308,6 +343,9 @@ export class CreateDocumentCollectionRequest extends $dara.Model {
|
|
|
308
343
|
if(this.sparseVectorIndexConfig && typeof (this.sparseVectorIndexConfig as any).validate === 'function') {
|
|
309
344
|
(this.sparseVectorIndexConfig as any).validate();
|
|
310
345
|
}
|
|
346
|
+
if(this.vectorIndexConfig && typeof (this.vectorIndexConfig as any).validate === 'function') {
|
|
347
|
+
(this.vectorIndexConfig as any).validate();
|
|
348
|
+
}
|
|
311
349
|
super.validate();
|
|
312
350
|
}
|
|
313
351
|
|