@alicloud/bailian20231229 2.8.2 → 2.8.4
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.js +9 -6
- package/dist/client.js.map +1 -1
- package/dist/models/CreateIndexRequest.d.ts +3 -67
- package/dist/models/CreateIndexRequest.js +7 -43
- package/dist/models/CreateIndexRequest.js.map +1 -1
- package/dist/models/CreateIndexShrinkRequest.d.ts +3 -5
- package/dist/models/CreateIndexShrinkRequest.js +6 -2
- package/dist/models/CreateIndexShrinkRequest.js.map +1 -1
- package/dist/models/RetrieveRequest.d.ts +2 -0
- package/dist/models/RetrieveRequest.js +4 -0
- package/dist/models/RetrieveRequest.js.map +1 -1
- package/dist/models/model.d.ts +0 -1
- package/dist/models/model.js +9 -11
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +12 -8
- package/src/models/CreateIndexRequest.ts +9 -100
- package/src/models/CreateIndexShrinkRequest.ts +9 -7
- package/src/models/RetrieveRequest.ts +6 -0
- package/src/models/model.ts +0 -1
|
@@ -72,96 +72,6 @@ export class CreateIndexRequestColumns extends $dara.Model {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export class CreateIndexRequestDataSource extends $dara.Model {
|
|
76
|
-
/**
|
|
77
|
-
* @remarks
|
|
78
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
79
|
-
*/
|
|
80
|
-
credentialId?: string;
|
|
81
|
-
/**
|
|
82
|
-
* @remarks
|
|
83
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
84
|
-
*/
|
|
85
|
-
credentialKey?: string;
|
|
86
|
-
/**
|
|
87
|
-
* @remarks
|
|
88
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
89
|
-
*/
|
|
90
|
-
database?: string;
|
|
91
|
-
/**
|
|
92
|
-
* @remarks
|
|
93
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
94
|
-
*/
|
|
95
|
-
endpoint?: string;
|
|
96
|
-
/**
|
|
97
|
-
* @remarks
|
|
98
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
99
|
-
*/
|
|
100
|
-
isPrivateLink?: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* @remarks
|
|
103
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
104
|
-
*/
|
|
105
|
-
region?: string;
|
|
106
|
-
/**
|
|
107
|
-
* @remarks
|
|
108
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
109
|
-
*/
|
|
110
|
-
subPath?: string;
|
|
111
|
-
/**
|
|
112
|
-
* @remarks
|
|
113
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
114
|
-
*/
|
|
115
|
-
subType?: string;
|
|
116
|
-
/**
|
|
117
|
-
* @remarks
|
|
118
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
119
|
-
*/
|
|
120
|
-
table?: string;
|
|
121
|
-
/**
|
|
122
|
-
* @remarks
|
|
123
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
124
|
-
*/
|
|
125
|
-
type?: string;
|
|
126
|
-
static names(): { [key: string]: string } {
|
|
127
|
-
return {
|
|
128
|
-
credentialId: 'CredentialId',
|
|
129
|
-
credentialKey: 'CredentialKey',
|
|
130
|
-
database: 'Database',
|
|
131
|
-
endpoint: 'Endpoint',
|
|
132
|
-
isPrivateLink: 'IsPrivateLink',
|
|
133
|
-
region: 'Region',
|
|
134
|
-
subPath: 'SubPath',
|
|
135
|
-
subType: 'SubType',
|
|
136
|
-
table: 'Table',
|
|
137
|
-
type: 'Type',
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
static types(): { [key: string]: any } {
|
|
142
|
-
return {
|
|
143
|
-
credentialId: 'string',
|
|
144
|
-
credentialKey: 'string',
|
|
145
|
-
database: 'string',
|
|
146
|
-
endpoint: 'string',
|
|
147
|
-
isPrivateLink: 'boolean',
|
|
148
|
-
region: 'string',
|
|
149
|
-
subPath: 'string',
|
|
150
|
-
subType: 'string',
|
|
151
|
-
table: 'string',
|
|
152
|
-
type: 'string',
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
validate() {
|
|
157
|
-
super.validate();
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
constructor(map?: { [key: string]: any }) {
|
|
161
|
-
super(map);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
75
|
export class CreateIndexRequestMetaExtractColumns extends $dara.Model {
|
|
166
76
|
/**
|
|
167
77
|
* @remarks
|
|
@@ -294,11 +204,6 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
294
204
|
* > This parameter is not available. Do not specify this parameter.
|
|
295
205
|
*/
|
|
296
206
|
createIndexType?: string;
|
|
297
|
-
/**
|
|
298
|
-
* @remarks
|
|
299
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
300
|
-
*/
|
|
301
|
-
dataSource?: CreateIndexRequestDataSource;
|
|
302
207
|
/**
|
|
303
208
|
* @remarks
|
|
304
209
|
* The description of the knowledge base. The description must be 0 to 1,000 characters in length. This parameter is empty by default.
|
|
@@ -353,6 +258,7 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
353
258
|
* 16
|
|
354
259
|
*/
|
|
355
260
|
overlapSize?: number;
|
|
261
|
+
rerankInstruct?: string;
|
|
356
262
|
/**
|
|
357
263
|
* @remarks
|
|
358
264
|
* The similarity threshold. Only chunks with a similarity score higher than this value can be recalled. This parameter is used to filter chunks returned by the re-rank model. Valid values: 0.01 to 1.00.
|
|
@@ -363,6 +269,7 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
363
269
|
* 0.20
|
|
364
270
|
*/
|
|
365
271
|
rerankMinScore?: number;
|
|
272
|
+
rerankMode?: string;
|
|
366
273
|
/**
|
|
367
274
|
* @remarks
|
|
368
275
|
* The re-ranking model used in the knowledge base. The re-rank model is a scoring system outside the knowledge base. It calculates the similarity score of the query and text chunks in the knowledge base and ranks them in descending order. Then, the model returns the top K chunks with the highest scores. Valid values:
|
|
@@ -494,6 +401,7 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
494
401
|
*/
|
|
495
402
|
enableHeaders?: boolean;
|
|
496
403
|
knowledgeScene?: string;
|
|
404
|
+
knowledgeType?: string;
|
|
497
405
|
/**
|
|
498
406
|
* @remarks
|
|
499
407
|
* The metadata extraction configurations. Metadata refers to a set of additional attributes associated with unstructured data, which are integrated into text chunks in key-value pairs. For more information, see [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
|
|
@@ -521,14 +429,15 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
521
429
|
chunkSize: 'ChunkSize',
|
|
522
430
|
columns: 'Columns',
|
|
523
431
|
createIndexType: 'CreateIndexType',
|
|
524
|
-
dataSource: 'DataSource',
|
|
525
432
|
description: 'Description',
|
|
526
433
|
documentIds: 'DocumentIds',
|
|
527
434
|
embeddingModelName: 'EmbeddingModelName',
|
|
528
435
|
enableRewrite: 'EnableRewrite',
|
|
529
436
|
name: 'Name',
|
|
530
437
|
overlapSize: 'OverlapSize',
|
|
438
|
+
rerankInstruct: 'RerankInstruct',
|
|
531
439
|
rerankMinScore: 'RerankMinScore',
|
|
440
|
+
rerankMode: 'RerankMode',
|
|
532
441
|
rerankModelName: 'RerankModelName',
|
|
533
442
|
separator: 'Separator',
|
|
534
443
|
sinkInstanceId: 'SinkInstanceId',
|
|
@@ -544,6 +453,7 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
544
453
|
datasourceCode: 'datasourceCode',
|
|
545
454
|
enableHeaders: 'enableHeaders',
|
|
546
455
|
knowledgeScene: 'knowledgeScene',
|
|
456
|
+
knowledgeType: 'knowledgeType',
|
|
547
457
|
metaExtractColumns: 'metaExtractColumns',
|
|
548
458
|
pipelineCommercialCu: 'pipelineCommercialCu',
|
|
549
459
|
pipelineCommercialType: 'pipelineCommercialType',
|
|
@@ -558,14 +468,15 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
558
468
|
chunkSize: 'number',
|
|
559
469
|
columns: { 'type': 'array', 'itemType': CreateIndexRequestColumns },
|
|
560
470
|
createIndexType: 'string',
|
|
561
|
-
dataSource: CreateIndexRequestDataSource,
|
|
562
471
|
description: 'string',
|
|
563
472
|
documentIds: { 'type': 'array', 'itemType': 'string' },
|
|
564
473
|
embeddingModelName: 'string',
|
|
565
474
|
enableRewrite: 'boolean',
|
|
566
475
|
name: 'string',
|
|
567
476
|
overlapSize: 'number',
|
|
477
|
+
rerankInstruct: 'string',
|
|
568
478
|
rerankMinScore: 'number',
|
|
479
|
+
rerankMode: 'string',
|
|
569
480
|
rerankModelName: 'string',
|
|
570
481
|
separator: 'string',
|
|
571
482
|
sinkInstanceId: 'string',
|
|
@@ -581,6 +492,7 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
581
492
|
datasourceCode: 'string',
|
|
582
493
|
enableHeaders: 'boolean',
|
|
583
494
|
knowledgeScene: 'string',
|
|
495
|
+
knowledgeType: 'string',
|
|
584
496
|
metaExtractColumns: { 'type': 'array', 'itemType': CreateIndexRequestMetaExtractColumns },
|
|
585
497
|
pipelineCommercialCu: 'number',
|
|
586
498
|
pipelineCommercialType: 'string',
|
|
@@ -596,9 +508,6 @@ export class CreateIndexRequest extends $dara.Model {
|
|
|
596
508
|
if(Array.isArray(this.columns)) {
|
|
597
509
|
$dara.Model.validateArray(this.columns);
|
|
598
510
|
}
|
|
599
|
-
if(this.dataSource && typeof (this.dataSource as any).validate === 'function') {
|
|
600
|
-
(this.dataSource as any).validate();
|
|
601
|
-
}
|
|
602
511
|
if(Array.isArray(this.documentIds)) {
|
|
603
512
|
$dara.Model.validateArray(this.documentIds);
|
|
604
513
|
}
|
|
@@ -30,11 +30,6 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
30
30
|
* > This parameter is not available. Do not specify this parameter.
|
|
31
31
|
*/
|
|
32
32
|
createIndexType?: string;
|
|
33
|
-
/**
|
|
34
|
-
* @remarks
|
|
35
|
-
* > This parameter is not available. Do not specify this parameter.
|
|
36
|
-
*/
|
|
37
|
-
dataSourceShrink?: string;
|
|
38
33
|
/**
|
|
39
34
|
* @remarks
|
|
40
35
|
* The description of the knowledge base. The description must be 0 to 1,000 characters in length. This parameter is empty by default.
|
|
@@ -89,6 +84,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
89
84
|
* 16
|
|
90
85
|
*/
|
|
91
86
|
overlapSize?: number;
|
|
87
|
+
rerankInstruct?: string;
|
|
92
88
|
/**
|
|
93
89
|
* @remarks
|
|
94
90
|
* The similarity threshold. Only chunks with a similarity score higher than this value can be recalled. This parameter is used to filter chunks returned by the re-rank model. Valid values: 0.01 to 1.00.
|
|
@@ -99,6 +95,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
99
95
|
* 0.20
|
|
100
96
|
*/
|
|
101
97
|
rerankMinScore?: number;
|
|
98
|
+
rerankMode?: string;
|
|
102
99
|
/**
|
|
103
100
|
* @remarks
|
|
104
101
|
* The re-ranking model used in the knowledge base. The re-rank model is a scoring system outside the knowledge base. It calculates the similarity score of the query and text chunks in the knowledge base and ranks them in descending order. Then, the model returns the top K chunks with the highest scores. Valid values:
|
|
@@ -230,6 +227,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
230
227
|
*/
|
|
231
228
|
enableHeaders?: boolean;
|
|
232
229
|
knowledgeScene?: string;
|
|
230
|
+
knowledgeType?: string;
|
|
233
231
|
/**
|
|
234
232
|
* @remarks
|
|
235
233
|
* The metadata extraction configurations. Metadata refers to a set of additional attributes associated with unstructured data, which are integrated into text chunks in key-value pairs. For more information, see [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
|
|
@@ -257,14 +255,15 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
257
255
|
chunkSize: 'ChunkSize',
|
|
258
256
|
columnsShrink: 'Columns',
|
|
259
257
|
createIndexType: 'CreateIndexType',
|
|
260
|
-
dataSourceShrink: 'DataSource',
|
|
261
258
|
description: 'Description',
|
|
262
259
|
documentIdsShrink: 'DocumentIds',
|
|
263
260
|
embeddingModelName: 'EmbeddingModelName',
|
|
264
261
|
enableRewrite: 'EnableRewrite',
|
|
265
262
|
name: 'Name',
|
|
266
263
|
overlapSize: 'OverlapSize',
|
|
264
|
+
rerankInstruct: 'RerankInstruct',
|
|
267
265
|
rerankMinScore: 'RerankMinScore',
|
|
266
|
+
rerankMode: 'RerankMode',
|
|
268
267
|
rerankModelName: 'RerankModelName',
|
|
269
268
|
separator: 'Separator',
|
|
270
269
|
sinkInstanceId: 'SinkInstanceId',
|
|
@@ -280,6 +279,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
280
279
|
datasourceCode: 'datasourceCode',
|
|
281
280
|
enableHeaders: 'enableHeaders',
|
|
282
281
|
knowledgeScene: 'knowledgeScene',
|
|
282
|
+
knowledgeType: 'knowledgeType',
|
|
283
283
|
metaExtractColumnsShrink: 'metaExtractColumns',
|
|
284
284
|
pipelineCommercialCu: 'pipelineCommercialCu',
|
|
285
285
|
pipelineCommercialType: 'pipelineCommercialType',
|
|
@@ -294,14 +294,15 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
294
294
|
chunkSize: 'number',
|
|
295
295
|
columnsShrink: 'string',
|
|
296
296
|
createIndexType: 'string',
|
|
297
|
-
dataSourceShrink: 'string',
|
|
298
297
|
description: 'string',
|
|
299
298
|
documentIdsShrink: 'string',
|
|
300
299
|
embeddingModelName: 'string',
|
|
301
300
|
enableRewrite: 'boolean',
|
|
302
301
|
name: 'string',
|
|
303
302
|
overlapSize: 'number',
|
|
303
|
+
rerankInstruct: 'string',
|
|
304
304
|
rerankMinScore: 'number',
|
|
305
|
+
rerankMode: 'string',
|
|
305
306
|
rerankModelName: 'string',
|
|
306
307
|
separator: 'string',
|
|
307
308
|
sinkInstanceId: 'string',
|
|
@@ -317,6 +318,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
317
318
|
datasourceCode: 'string',
|
|
318
319
|
enableHeaders: 'boolean',
|
|
319
320
|
knowledgeScene: 'string',
|
|
321
|
+
knowledgeType: 'string',
|
|
320
322
|
metaExtractColumnsShrink: 'string',
|
|
321
323
|
pipelineCommercialCu: 'number',
|
|
322
324
|
pipelineCommercialType: 'string',
|
|
@@ -40,15 +40,21 @@ export class RetrieveRequestRerank extends $dara.Model {
|
|
|
40
40
|
* gte-rerank-hybrid
|
|
41
41
|
*/
|
|
42
42
|
modelName?: string;
|
|
43
|
+
rerankInstruct?: string;
|
|
44
|
+
rerankMode?: string;
|
|
43
45
|
static names(): { [key: string]: string } {
|
|
44
46
|
return {
|
|
45
47
|
modelName: 'ModelName',
|
|
48
|
+
rerankInstruct: 'RerankInstruct',
|
|
49
|
+
rerankMode: 'RerankMode',
|
|
46
50
|
};
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
static types(): { [key: string]: any } {
|
|
50
54
|
return {
|
|
51
55
|
modelName: 'string',
|
|
56
|
+
rerankInstruct: 'string',
|
|
57
|
+
rerankMode: 'string',
|
|
52
58
|
};
|
|
53
59
|
}
|
|
54
60
|
|
package/src/models/model.ts
CHANGED
|
@@ -19,7 +19,6 @@ export { CreateAndPulishAgentRequestApplicationConfigWorkFlows } from './CreateA
|
|
|
19
19
|
export { CreateAndPulishAgentRequestApplicationConfig } from './CreateAndPulishAgentRequest';
|
|
20
20
|
export { CreateAndPulishAgentRequestSampleLibrary } from './CreateAndPulishAgentRequest';
|
|
21
21
|
export { CreateIndexRequestColumns } from './CreateIndexRequest';
|
|
22
|
-
export { CreateIndexRequestDataSource } from './CreateIndexRequest';
|
|
23
22
|
export { CreateIndexRequestMetaExtractColumns } from './CreateIndexRequest';
|
|
24
23
|
export { CreateIndexResponseBodyData } from './CreateIndexResponseBody';
|
|
25
24
|
export { DeleteCategoryResponseBodyData } from './DeleteCategoryResponseBody';
|