@alicloud/gpdb20160503 3.2.0 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +188 -4
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ChatWithKnowledgeBaseRequest.d.ts +46 -0
  5. package/dist/models/ChatWithKnowledgeBaseRequest.js +53 -1
  6. package/dist/models/ChatWithKnowledgeBaseRequest.js.map +1 -1
  7. package/dist/models/ChatWithKnowledgeBaseStreamRequest.d.ts +46 -0
  8. package/dist/models/ChatWithKnowledgeBaseStreamRequest.js +53 -1
  9. package/dist/models/ChatWithKnowledgeBaseStreamRequest.js.map +1 -1
  10. package/dist/models/CreateCollectionRequest.d.ts +17 -0
  11. package/dist/models/CreateCollectionRequest.js +31 -1
  12. package/dist/models/CreateCollectionRequest.js.map +1 -1
  13. package/dist/models/CreateCollectionShrinkRequest.d.ts +2 -0
  14. package/dist/models/CreateCollectionShrinkRequest.js +4 -0
  15. package/dist/models/CreateCollectionShrinkRequest.js.map +1 -1
  16. package/dist/models/CreateDocumentCollectionRequest.d.ts +17 -0
  17. package/dist/models/CreateDocumentCollectionRequest.js +31 -1
  18. package/dist/models/CreateDocumentCollectionRequest.js.map +1 -1
  19. package/dist/models/CreateDocumentCollectionShrinkRequest.d.ts +2 -0
  20. package/dist/models/CreateDocumentCollectionShrinkRequest.js +4 -0
  21. package/dist/models/CreateDocumentCollectionShrinkRequest.js.map +1 -1
  22. package/dist/models/CreateSupabaseProjectRequest.d.ts +1 -0
  23. package/dist/models/CreateSupabaseProjectRequest.js +2 -0
  24. package/dist/models/CreateSupabaseProjectRequest.js.map +1 -1
  25. package/dist/models/CreateVectorIndexRequest.d.ts +3 -0
  26. package/dist/models/CreateVectorIndexRequest.js +6 -0
  27. package/dist/models/CreateVectorIndexRequest.js.map +1 -1
  28. package/dist/models/DeleteChunksRequest.d.ts +55 -0
  29. package/dist/models/DeleteChunksRequest.js +71 -0
  30. package/dist/models/DeleteChunksRequest.js.map +1 -0
  31. package/dist/models/DeleteChunksResponse.d.ts +19 -0
  32. package/dist/models/DeleteChunksResponse.js +69 -0
  33. package/dist/models/DeleteChunksResponse.js.map +1 -0
  34. package/dist/models/DeleteChunksResponseBody.d.ts +18 -0
  35. package/dist/models/DeleteChunksResponseBody.js +58 -0
  36. package/dist/models/DeleteChunksResponseBody.js.map +1 -0
  37. package/dist/models/DeleteChunksShrinkRequest.d.ts +55 -0
  38. package/dist/models/DeleteChunksShrinkRequest.js +68 -0
  39. package/dist/models/DeleteChunksShrinkRequest.js.map +1 -0
  40. package/dist/models/GetSupabaseProjectResponseBody.d.ts +1 -0
  41. package/dist/models/GetSupabaseProjectResponseBody.js +2 -0
  42. package/dist/models/GetSupabaseProjectResponseBody.js.map +1 -1
  43. package/dist/models/ListChunksRequest.d.ts +75 -0
  44. package/dist/models/ListChunksRequest.js +76 -0
  45. package/dist/models/ListChunksRequest.js.map +1 -0
  46. package/dist/models/ListChunksResponse.d.ts +19 -0
  47. package/dist/models/ListChunksResponse.js +69 -0
  48. package/dist/models/ListChunksResponse.js.map +1 -0
  49. package/dist/models/ListChunksResponseBody.d.ts +81 -0
  50. package/dist/models/ListChunksResponseBody.js +150 -0
  51. package/dist/models/ListChunksResponseBody.js.map +1 -0
  52. package/dist/models/ListSupabaseProjectsRequest.d.ts +4 -0
  53. package/dist/models/ListSupabaseProjectsRequest.js +8 -0
  54. package/dist/models/ListSupabaseProjectsRequest.js.map +1 -1
  55. package/dist/models/ListSupabaseProjectsResponseBody.d.ts +1 -0
  56. package/dist/models/ListSupabaseProjectsResponseBody.js +2 -0
  57. package/dist/models/ListSupabaseProjectsResponseBody.js.map +1 -1
  58. package/dist/models/QueryContentAdvanceRequest.d.ts +23 -0
  59. package/dist/models/QueryContentAdvanceRequest.js +27 -1
  60. package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
  61. package/dist/models/QueryContentRequest.d.ts +23 -0
  62. package/dist/models/QueryContentRequest.js +27 -1
  63. package/dist/models/QueryContentRequest.js.map +1 -1
  64. package/dist/models/QueryContentShrinkRequest.d.ts +1 -0
  65. package/dist/models/QueryContentShrinkRequest.js +2 -0
  66. package/dist/models/QueryContentShrinkRequest.js.map +1 -1
  67. package/dist/models/QueryKnowledgeBasesContentRequest.d.ts +30 -0
  68. package/dist/models/QueryKnowledgeBasesContentRequest.js +53 -1
  69. package/dist/models/QueryKnowledgeBasesContentRequest.js.map +1 -1
  70. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.d.ts +1 -0
  71. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js +2 -0
  72. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js.map +1 -1
  73. package/dist/models/RerankRequest.d.ts +5 -0
  74. package/dist/models/RerankRequest.js +2 -0
  75. package/dist/models/RerankRequest.js.map +1 -1
  76. package/dist/models/RerankShrinkRequest.d.ts +5 -0
  77. package/dist/models/RerankShrinkRequest.js +2 -0
  78. package/dist/models/RerankShrinkRequest.js.map +1 -1
  79. package/dist/models/model.d.ts +20 -0
  80. package/dist/models/model.js +94 -54
  81. package/dist/models/model.js.map +1 -1
  82. package/package.json +1 -1
  83. package/src/client.ts +228 -4
  84. package/src/models/ChatWithKnowledgeBaseRequest.ts +80 -0
  85. package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +80 -0
  86. package/src/models/CreateCollectionRequest.ts +38 -0
  87. package/src/models/CreateCollectionShrinkRequest.ts +6 -0
  88. package/src/models/CreateDocumentCollectionRequest.ts +38 -0
  89. package/src/models/CreateDocumentCollectionShrinkRequest.ts +6 -0
  90. package/src/models/CreateSupabaseProjectRequest.ts +3 -0
  91. package/src/models/CreateVectorIndexRequest.ts +9 -0
  92. package/src/models/DeleteChunksRequest.ts +81 -0
  93. package/src/models/DeleteChunksResponse.ts +40 -0
  94. package/src/models/DeleteChunksResponseBody.ts +31 -0
  95. package/src/models/DeleteChunksShrinkRequest.ts +78 -0
  96. package/src/models/GetSupabaseProjectResponseBody.ts +3 -0
  97. package/src/models/ListChunksRequest.ts +106 -0
  98. package/src/models/ListChunksResponse.ts +40 -0
  99. package/src/models/ListChunksResponseBody.ts +157 -0
  100. package/src/models/ListSupabaseProjectsRequest.ts +12 -0
  101. package/src/models/ListSupabaseProjectsResponseBody.ts +3 -0
  102. package/src/models/QueryContentAdvanceRequest.ts +40 -0
  103. package/src/models/QueryContentRequest.ts +40 -0
  104. package/src/models/QueryContentShrinkRequest.ts +3 -0
  105. package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -0
  106. package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +3 -0
  107. package/src/models/RerankRequest.ts +7 -0
  108. package/src/models/RerankShrinkRequest.ts +7 -0
  109. package/src/models/model.ts +20 -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
  }
@@ -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
 
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class CreateDocumentCollectionShrinkRequest extends $dara.Model {
6
+ algorithm?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * The name of the document collection that you want to create.
@@ -210,8 +211,10 @@ export class CreateDocumentCollectionShrinkRequest extends $dara.Model {
210
211
  sparseRetrievalFields?: string;
211
212
  sparseVectorIndexConfigShrink?: string;
212
213
  supportSparse?: boolean;
214
+ vectorIndexConfigShrink?: string;
213
215
  static names(): { [key: string]: string } {
214
216
  return {
217
+ algorithm: 'Algorithm',
215
218
  collection: 'Collection',
216
219
  DBInstanceId: 'DBInstanceId',
217
220
  dimension: 'Dimension',
@@ -238,11 +241,13 @@ export class CreateDocumentCollectionShrinkRequest extends $dara.Model {
238
241
  sparseRetrievalFields: 'SparseRetrievalFields',
239
242
  sparseVectorIndexConfigShrink: 'SparseVectorIndexConfig',
240
243
  supportSparse: 'SupportSparse',
244
+ vectorIndexConfigShrink: 'VectorIndexConfig',
241
245
  };
242
246
  }
243
247
 
244
248
  static types(): { [key: string]: any } {
245
249
  return {
250
+ algorithm: 'string',
246
251
  collection: 'string',
247
252
  DBInstanceId: 'string',
248
253
  dimension: 'number',
@@ -269,6 +274,7 @@ export class CreateDocumentCollectionShrinkRequest extends $dara.Model {
269
274
  sparseRetrievalFields: 'string',
270
275
  sparseVectorIndexConfigShrink: 'string',
271
276
  supportSparse: 'boolean',
277
+ vectorIndexConfigShrink: 'string',
272
278
  };
273
279
  }
274
280
 
@@ -17,6 +17,7 @@ export class CreateSupabaseProjectRequest extends $dara.Model {
17
17
  * Pw123456
18
18
  */
19
19
  accountPassword?: string;
20
+ autoScale?: boolean;
20
21
  /**
21
22
  * @remarks
22
23
  * The client token that is used to ensure the idempotence of the request. For more information, see [How to ensure idempotence](https://help.aliyun.com/document_detail/327176.html).
@@ -138,6 +139,7 @@ export class CreateSupabaseProjectRequest extends $dara.Model {
138
139
  static names(): { [key: string]: string } {
139
140
  return {
140
141
  accountPassword: 'AccountPassword',
142
+ autoScale: 'AutoScale',
141
143
  clientToken: 'ClientToken',
142
144
  diskPerformanceLevel: 'DiskPerformanceLevel',
143
145
  payType: 'PayType',
@@ -157,6 +159,7 @@ export class CreateSupabaseProjectRequest extends $dara.Model {
157
159
  static types(): { [key: string]: any } {
158
160
  return {
159
161
  accountPassword: 'string',
162
+ autoScale: 'boolean',
160
163
  clientToken: 'string',
161
164
  diskPerformanceLevel: 'string',
162
165
  payType: 'string',
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class CreateVectorIndexRequest extends $dara.Model {
6
+ algorithm?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * Collection name.
@@ -105,6 +106,7 @@ export class CreateVectorIndexRequest extends $dara.Model {
105
106
  * mynamespace
106
107
  */
107
108
  namespace?: string;
109
+ nlist?: number;
108
110
  ownerId?: number;
109
111
  /**
110
112
  * @remarks
@@ -116,6 +118,7 @@ export class CreateVectorIndexRequest extends $dara.Model {
116
118
  * 1
117
119
  */
118
120
  pqEnable?: number;
121
+ rabitqBits?: number;
119
122
  /**
120
123
  * @remarks
121
124
  * Region ID where the instance is located.
@@ -129,6 +132,7 @@ export class CreateVectorIndexRequest extends $dara.Model {
129
132
  type?: string;
130
133
  static names(): { [key: string]: string } {
131
134
  return {
135
+ algorithm: 'Algorithm',
132
136
  collection: 'Collection',
133
137
  DBInstanceId: 'DBInstanceId',
134
138
  dimension: 'Dimension',
@@ -139,8 +143,10 @@ export class CreateVectorIndexRequest extends $dara.Model {
139
143
  managerAccountPassword: 'ManagerAccountPassword',
140
144
  metrics: 'Metrics',
141
145
  namespace: 'Namespace',
146
+ nlist: 'Nlist',
142
147
  ownerId: 'OwnerId',
143
148
  pqEnable: 'PqEnable',
149
+ rabitqBits: 'RabitqBits',
144
150
  regionId: 'RegionId',
145
151
  type: 'Type',
146
152
  };
@@ -148,6 +154,7 @@ export class CreateVectorIndexRequest extends $dara.Model {
148
154
 
149
155
  static types(): { [key: string]: any } {
150
156
  return {
157
+ algorithm: 'string',
151
158
  collection: 'string',
152
159
  DBInstanceId: 'string',
153
160
  dimension: 'number',
@@ -158,8 +165,10 @@ export class CreateVectorIndexRequest extends $dara.Model {
158
165
  managerAccountPassword: 'string',
159
166
  metrics: 'string',
160
167
  namespace: 'string',
168
+ nlist: 'number',
161
169
  ownerId: 'number',
162
170
  pqEnable: 'number',
171
+ rabitqBits: 'number',
163
172
  regionId: 'string',
164
173
  type: 'string',
165
174
  };