@alicloud/bailian20231229 1.9.0 → 1.10.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 +214 -75
- package/dist/client.js +203 -28
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +323 -75
package/dist/client.d.ts
CHANGED
|
@@ -443,7 +443,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
443
443
|
categoryIds?: string[];
|
|
444
444
|
/**
|
|
445
445
|
* @remarks
|
|
446
|
-
* The estimated length of chunks. The maximum number of characters for a chunk. Texts exceeding this limit are splited. For more information, see [Create a knowledge base](https://
|
|
446
|
+
* The estimated length of chunks. The maximum number of characters for a chunk. Texts exceeding this limit are splited. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values: [1-2048].
|
|
447
447
|
*
|
|
448
448
|
* The default value is empty, which means using the intelligent splitting method.
|
|
449
449
|
*
|
|
@@ -471,7 +471,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
471
471
|
documentIds?: string[];
|
|
472
472
|
/**
|
|
473
473
|
* @remarks
|
|
474
|
-
* The name of the embedding model. The embedding model converts the original input prompt and knowledge text into numerical vectors for similarity comparison. The default and only model available is DashScope text-embedding-v2. It supports multiple languages including Chinese and English and normalizes the vector results. For more information, see [Create a knowledge base](https://
|
|
474
|
+
* The name of the embedding model. The embedding model converts the original input prompt and knowledge text into numerical vectors for similarity comparison. The default and only model available is DashScope text-embedding-v2. It supports multiple languages including Chinese and English and normalizes the vector results. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid value:
|
|
475
475
|
*
|
|
476
476
|
* * text-embedding-v2
|
|
477
477
|
*
|
|
@@ -490,7 +490,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
490
490
|
name?: string;
|
|
491
491
|
/**
|
|
492
492
|
* @remarks
|
|
493
|
-
* The overlap length. The number of overlapping characters between two consecutive chunks. For more information, see [Create a knowledge base](https://
|
|
493
|
+
* The overlap length. The number of overlapping characters between two consecutive chunks. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values: 0 to 1024.
|
|
494
494
|
*
|
|
495
495
|
* The default value is empty, which means using the intelligent splitting method.
|
|
496
496
|
*
|
|
@@ -500,7 +500,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
500
500
|
overlapSize?: number;
|
|
501
501
|
/**
|
|
502
502
|
* @remarks
|
|
503
|
-
* Similarity Threshold. The lowest similarity score of chunks that can be returned. This parameter is used to filter text chunks returned by the rank model. For more information, see [Create a knowledge base](https://
|
|
503
|
+
* Similarity Threshold. The lowest similarity score of chunks that can be returned. This parameter is used to filter text chunks returned by the rank model. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values: [0.01-1.00].
|
|
504
504
|
*
|
|
505
505
|
* Default value: 0.20.
|
|
506
506
|
*
|
|
@@ -510,7 +510,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
510
510
|
rerankMinScore?: number;
|
|
511
511
|
/**
|
|
512
512
|
* @remarks
|
|
513
|
-
* The name of the rank model. The rank model is a scoring system outside the knowledge base. It calculates the similarity score of each text chunk in the input question and knowledge base and ranks them in descending order. Then, the model returns the top K chunks with the highest scores. For more information, see [Create a knowledge base](https://
|
|
513
|
+
* The name of the rank model. The rank model is a scoring system outside the knowledge base. It calculates the similarity score of each text chunk in the input question and knowledge base and ranks them in descending order. Then, the model returns the top K chunks with the highest scores. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
514
514
|
*
|
|
515
515
|
* * gte-rerank-hybrid
|
|
516
516
|
* * gte-rerank
|
|
@@ -525,7 +525,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
525
525
|
rerankModelName?: string;
|
|
526
526
|
/**
|
|
527
527
|
* @remarks
|
|
528
|
-
* The clause identifier. The document is split into chunks based on this identifier. For more information, see [Create a knowledge base](https://
|
|
528
|
+
* The clause identifier. The document is split into chunks based on this identifier. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). You can specify multiple identifiers and do not need to add any other characters to separate them. For example: !,\\\\\\n. Valid values:
|
|
529
529
|
*
|
|
530
530
|
* * \\n: line break
|
|
531
531
|
* * ,: Chinese comma
|
|
@@ -536,7 +536,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
536
536
|
* * ! : English exclamation point
|
|
537
537
|
* * ;: Chinese semicolon
|
|
538
538
|
* * ;: English semicolon
|
|
539
|
-
* *
|
|
539
|
+
* * ?: Chinese question mark
|
|
540
540
|
* * ?: English question mark
|
|
541
541
|
*
|
|
542
542
|
* The default value is empty, which means using the intelligent splitting method.
|
|
@@ -555,7 +555,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
555
555
|
sinkInstanceId?: string;
|
|
556
556
|
/**
|
|
557
557
|
* @remarks
|
|
558
|
-
* The region of the vector storage instance. This parameter is available only when SinkType is set to ADB. You can call the [DescribeRegions](https://
|
|
558
|
+
* The region of the vector storage instance. This parameter is available only when SinkType is set to ADB. You can call the [DescribeRegions](https://www.alibabacloud.com/help/en/analyticdb/analyticdb-for-postgresql/developer-reference/api-gpdb-2016-05-03-describeregions) operation to query the most recent region list.
|
|
559
559
|
*
|
|
560
560
|
* @example
|
|
561
561
|
* cn-hangzhou
|
|
@@ -563,7 +563,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
563
563
|
sinkRegion?: string;
|
|
564
564
|
/**
|
|
565
565
|
* @remarks
|
|
566
|
-
* The vector storage type of the knowledge base. For more information, see [Create a knowledge base](https://
|
|
566
|
+
* The vector storage type of the knowledge base. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
567
567
|
*
|
|
568
568
|
* * DEFAULT: The built-in vector database.
|
|
569
569
|
* * ADB: AnalyticDB for PostgreSQL database. If you need advanced features, such as managing, auditing, and monitoring, we recommend that you specify ADB.
|
|
@@ -578,7 +578,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
578
578
|
sinkType?: string;
|
|
579
579
|
/**
|
|
580
580
|
* @remarks
|
|
581
|
-
* The data type of [Data Management](https://bailian.console.aliyun.com/#/data-center). For more information, see [Create a knowledge base](https://
|
|
581
|
+
* The data type of [Data Management](https://bailian.console.aliyun.com/#/data-center). For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
582
582
|
*
|
|
583
583
|
* * DATA_CENTER_CATEGORY: The category type. Import all documents from one or more categories in Data Center.
|
|
584
584
|
* * DATA_CENTER_FILE: The document type. Import one or more documents from Data Center.
|
|
@@ -598,7 +598,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
598
598
|
sourceType?: string;
|
|
599
599
|
/**
|
|
600
600
|
* @remarks
|
|
601
|
-
* The data type of the knowledge base. For more information, see [Create a knowledge base](https://
|
|
601
|
+
* The data type of the knowledge base. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid value:
|
|
602
602
|
*
|
|
603
603
|
* * unstructured
|
|
604
604
|
*
|
|
@@ -610,6 +610,7 @@ export declare class CreateIndexRequest extends $tea.Model {
|
|
|
610
610
|
* structured
|
|
611
611
|
*/
|
|
612
612
|
structureType?: string;
|
|
613
|
+
metaExtractColumns?: CreateIndexRequestMetaExtractColumns[];
|
|
613
614
|
static names(): {
|
|
614
615
|
[key: string]: string;
|
|
615
616
|
};
|
|
@@ -628,7 +629,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
628
629
|
categoryIdsShrink?: string;
|
|
629
630
|
/**
|
|
630
631
|
* @remarks
|
|
631
|
-
* The estimated length of chunks. The maximum number of characters for a chunk. Texts exceeding this limit are splited. For more information, see [Create a knowledge base](https://
|
|
632
|
+
* The estimated length of chunks. The maximum number of characters for a chunk. Texts exceeding this limit are splited. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values: [1-2048].
|
|
632
633
|
*
|
|
633
634
|
* The default value is empty, which means using the intelligent splitting method.
|
|
634
635
|
*
|
|
@@ -656,7 +657,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
656
657
|
documentIdsShrink?: string;
|
|
657
658
|
/**
|
|
658
659
|
* @remarks
|
|
659
|
-
* The name of the embedding model. The embedding model converts the original input prompt and knowledge text into numerical vectors for similarity comparison. The default and only model available is DashScope text-embedding-v2. It supports multiple languages including Chinese and English and normalizes the vector results. For more information, see [Create a knowledge base](https://
|
|
660
|
+
* The name of the embedding model. The embedding model converts the original input prompt and knowledge text into numerical vectors for similarity comparison. The default and only model available is DashScope text-embedding-v2. It supports multiple languages including Chinese and English and normalizes the vector results. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid value:
|
|
660
661
|
*
|
|
661
662
|
* * text-embedding-v2
|
|
662
663
|
*
|
|
@@ -675,7 +676,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
675
676
|
name?: string;
|
|
676
677
|
/**
|
|
677
678
|
* @remarks
|
|
678
|
-
* The overlap length. The number of overlapping characters between two consecutive chunks. For more information, see [Create a knowledge base](https://
|
|
679
|
+
* The overlap length. The number of overlapping characters between two consecutive chunks. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values: 0 to 1024.
|
|
679
680
|
*
|
|
680
681
|
* The default value is empty, which means using the intelligent splitting method.
|
|
681
682
|
*
|
|
@@ -685,7 +686,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
685
686
|
overlapSize?: number;
|
|
686
687
|
/**
|
|
687
688
|
* @remarks
|
|
688
|
-
* Similarity Threshold. The lowest similarity score of chunks that can be returned. This parameter is used to filter text chunks returned by the rank model. For more information, see [Create a knowledge base](https://
|
|
689
|
+
* Similarity Threshold. The lowest similarity score of chunks that can be returned. This parameter is used to filter text chunks returned by the rank model. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values: [0.01-1.00].
|
|
689
690
|
*
|
|
690
691
|
* Default value: 0.20.
|
|
691
692
|
*
|
|
@@ -695,7 +696,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
695
696
|
rerankMinScore?: number;
|
|
696
697
|
/**
|
|
697
698
|
* @remarks
|
|
698
|
-
* The name of the rank model. The rank model is a scoring system outside the knowledge base. It calculates the similarity score of each text chunk in the input question and knowledge base and ranks them in descending order. Then, the model returns the top K chunks with the highest scores. For more information, see [Create a knowledge base](https://
|
|
699
|
+
* The name of the rank model. The rank model is a scoring system outside the knowledge base. It calculates the similarity score of each text chunk in the input question and knowledge base and ranks them in descending order. Then, the model returns the top K chunks with the highest scores. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
699
700
|
*
|
|
700
701
|
* * gte-rerank-hybrid
|
|
701
702
|
* * gte-rerank
|
|
@@ -710,7 +711,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
710
711
|
rerankModelName?: string;
|
|
711
712
|
/**
|
|
712
713
|
* @remarks
|
|
713
|
-
* The clause identifier. The document is split into chunks based on this identifier. For more information, see [Create a knowledge base](https://
|
|
714
|
+
* The clause identifier. The document is split into chunks based on this identifier. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). You can specify multiple identifiers and do not need to add any other characters to separate them. For example: !,\\\\\\n. Valid values:
|
|
714
715
|
*
|
|
715
716
|
* * \\n: line break
|
|
716
717
|
* * ,: Chinese comma
|
|
@@ -721,7 +722,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
721
722
|
* * ! : English exclamation point
|
|
722
723
|
* * ;: Chinese semicolon
|
|
723
724
|
* * ;: English semicolon
|
|
724
|
-
* *
|
|
725
|
+
* * ?: Chinese question mark
|
|
725
726
|
* * ?: English question mark
|
|
726
727
|
*
|
|
727
728
|
* The default value is empty, which means using the intelligent splitting method.
|
|
@@ -740,7 +741,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
740
741
|
sinkInstanceId?: string;
|
|
741
742
|
/**
|
|
742
743
|
* @remarks
|
|
743
|
-
* The region of the vector storage instance. This parameter is available only when SinkType is set to ADB. You can call the [DescribeRegions](https://
|
|
744
|
+
* The region of the vector storage instance. This parameter is available only when SinkType is set to ADB. You can call the [DescribeRegions](https://www.alibabacloud.com/help/en/analyticdb/analyticdb-for-postgresql/developer-reference/api-gpdb-2016-05-03-describeregions) operation to query the most recent region list.
|
|
744
745
|
*
|
|
745
746
|
* @example
|
|
746
747
|
* cn-hangzhou
|
|
@@ -748,7 +749,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
748
749
|
sinkRegion?: string;
|
|
749
750
|
/**
|
|
750
751
|
* @remarks
|
|
751
|
-
* The vector storage type of the knowledge base. For more information, see [Create a knowledge base](https://
|
|
752
|
+
* The vector storage type of the knowledge base. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
752
753
|
*
|
|
753
754
|
* * DEFAULT: The built-in vector database.
|
|
754
755
|
* * ADB: AnalyticDB for PostgreSQL database. If you need advanced features, such as managing, auditing, and monitoring, we recommend that you specify ADB.
|
|
@@ -763,7 +764,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
763
764
|
sinkType?: string;
|
|
764
765
|
/**
|
|
765
766
|
* @remarks
|
|
766
|
-
* The data type of [Data Management](https://bailian.console.aliyun.com/#/data-center). For more information, see [Create a knowledge base](https://
|
|
767
|
+
* The data type of [Data Management](https://bailian.console.aliyun.com/#/data-center). For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
767
768
|
*
|
|
768
769
|
* * DATA_CENTER_CATEGORY: The category type. Import all documents from one or more categories in Data Center.
|
|
769
770
|
* * DATA_CENTER_FILE: The document type. Import one or more documents from Data Center.
|
|
@@ -783,7 +784,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
783
784
|
sourceType?: string;
|
|
784
785
|
/**
|
|
785
786
|
* @remarks
|
|
786
|
-
* The data type of the knowledge base. For more information, see [Create a knowledge base](https://
|
|
787
|
+
* The data type of the knowledge base. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid value:
|
|
787
788
|
*
|
|
788
789
|
* * unstructured
|
|
789
790
|
*
|
|
@@ -795,6 +796,7 @@ export declare class CreateIndexShrinkRequest extends $tea.Model {
|
|
|
795
796
|
* structured
|
|
796
797
|
*/
|
|
797
798
|
structureType?: string;
|
|
799
|
+
metaExtractColumnsShrink?: string;
|
|
798
800
|
static names(): {
|
|
799
801
|
[key: string]: string;
|
|
800
802
|
};
|
|
@@ -1192,7 +1194,7 @@ export declare class DeleteFileResponse extends $tea.Model {
|
|
|
1192
1194
|
export declare class DeleteIndexRequest extends $tea.Model {
|
|
1193
1195
|
/**
|
|
1194
1196
|
* @remarks
|
|
1195
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
1197
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
1196
1198
|
*
|
|
1197
1199
|
* This parameter is required.
|
|
1198
1200
|
*
|
|
@@ -1290,7 +1292,7 @@ export declare class DeleteIndexDocumentRequest extends $tea.Model {
|
|
|
1290
1292
|
documentIds?: string[];
|
|
1291
1293
|
/**
|
|
1292
1294
|
* @remarks
|
|
1293
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
1295
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
1294
1296
|
*
|
|
1295
1297
|
* This parameter is required.
|
|
1296
1298
|
*
|
|
@@ -1318,7 +1320,7 @@ export declare class DeleteIndexDocumentShrinkRequest extends $tea.Model {
|
|
|
1318
1320
|
documentIdsShrink?: string;
|
|
1319
1321
|
/**
|
|
1320
1322
|
* @remarks
|
|
1321
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
1323
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
1322
1324
|
*
|
|
1323
1325
|
* This parameter is required.
|
|
1324
1326
|
*
|
|
@@ -1585,7 +1587,7 @@ export declare class DescribeFileResponse extends $tea.Model {
|
|
|
1585
1587
|
export declare class GetIndexJobStatusRequest extends $tea.Model {
|
|
1586
1588
|
/**
|
|
1587
1589
|
* @remarks
|
|
1588
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
1590
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
1589
1591
|
*
|
|
1590
1592
|
* This parameter is required.
|
|
1591
1593
|
*
|
|
@@ -1595,7 +1597,7 @@ export declare class GetIndexJobStatusRequest extends $tea.Model {
|
|
|
1595
1597
|
indexId?: string;
|
|
1596
1598
|
/**
|
|
1597
1599
|
* @remarks
|
|
1598
|
-
* The knowledge base job ID, which is the `Data.Id` parameter returned by the [SubmitIndexJob](https://
|
|
1600
|
+
* The knowledge base job ID, which is the `Data.Id` parameter returned by the [SubmitIndexJob](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-submitindexjob) or [SubmitIndexAddDocumentsJob](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-submitindexadddocumentsjob) operations.
|
|
1599
1601
|
*
|
|
1600
1602
|
* This parameter is required.
|
|
1601
1603
|
*
|
|
@@ -1605,7 +1607,7 @@ export declare class GetIndexJobStatusRequest extends $tea.Model {
|
|
|
1605
1607
|
jobId?: string;
|
|
1606
1608
|
/**
|
|
1607
1609
|
* @remarks
|
|
1608
|
-
* Both the [SubmitIndexJob](https://
|
|
1610
|
+
* Both the [SubmitIndexJob](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-submitindexjob) and [SubmitIndexAddDocumentsJob](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-submitindexadddocumentsjob) operations support batch import of documents. This operation returns both the overall `Status` of the job and the `Document.Status` of each document. If there are a large number of documents, you can use the `PageNumber` parameter to perform a paged query. Pages start from page 1. Default value: 1.
|
|
1609
1611
|
*
|
|
1610
1612
|
* @example
|
|
1611
1613
|
* 1
|
|
@@ -1975,7 +1977,7 @@ export declare class ListChunksRequest extends $tea.Model {
|
|
|
1975
1977
|
fields?: string[];
|
|
1976
1978
|
/**
|
|
1977
1979
|
* @remarks
|
|
1978
|
-
* The primary key ID of the document
|
|
1980
|
+
* The primary key ID of the document. This parameter is not required for structured knowledge base, but is required for unstructured knowledge base. To view the ID, you can click the ID icon next to the file name on the [Data Management](https://bailian.console.aliyun.com/#/data-center) page. You can filter returned chunks by the document ID. This parameter is left empty by default.
|
|
1979
1981
|
*
|
|
1980
1982
|
* @example
|
|
1981
1983
|
* file_5f03dfea56da4050ab68d61871fc4cb3_10151493
|
|
@@ -1983,7 +1985,7 @@ export declare class ListChunksRequest extends $tea.Model {
|
|
|
1983
1985
|
filed?: string;
|
|
1984
1986
|
/**
|
|
1985
1987
|
* @remarks
|
|
1986
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
1988
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
1987
1989
|
*
|
|
1988
1990
|
* This parameter is required.
|
|
1989
1991
|
*
|
|
@@ -2201,7 +2203,7 @@ export declare class ListIndexDocumentsRequest extends $tea.Model {
|
|
|
2201
2203
|
documentStatus?: string;
|
|
2202
2204
|
/**
|
|
2203
2205
|
* @remarks
|
|
2204
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
2206
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
2205
2207
|
*
|
|
2206
2208
|
* This parameter is required.
|
|
2207
2209
|
*
|
|
@@ -2704,7 +2706,7 @@ export declare class RetrieveRequest extends $tea.Model {
|
|
|
2704
2706
|
denseSimilarityTopK?: number;
|
|
2705
2707
|
/**
|
|
2706
2708
|
* @remarks
|
|
2707
|
-
* Specifies whether to enable reranking. For more information, see [Create a knowledge base](https://
|
|
2709
|
+
* Specifies whether to enable reranking. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
2708
2710
|
*
|
|
2709
2711
|
* * true
|
|
2710
2712
|
* * false
|
|
@@ -2717,7 +2719,7 @@ export declare class RetrieveRequest extends $tea.Model {
|
|
|
2717
2719
|
enableReranking?: boolean;
|
|
2718
2720
|
/**
|
|
2719
2721
|
* @remarks
|
|
2720
|
-
* Specifies whether to enable multi-round conversation rewriting. For more information, see [Create a knowledge base](https://
|
|
2722
|
+
* Specifies whether to enable multi-round conversation rewriting. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
2721
2723
|
*
|
|
2722
2724
|
* * true
|
|
2723
2725
|
* * false
|
|
@@ -2731,7 +2733,7 @@ export declare class RetrieveRequest extends $tea.Model {
|
|
|
2731
2733
|
images?: string[];
|
|
2732
2734
|
/**
|
|
2733
2735
|
* @remarks
|
|
2734
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
2736
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
2735
2737
|
*
|
|
2736
2738
|
* This parameter is required.
|
|
2737
2739
|
*
|
|
@@ -2751,7 +2753,7 @@ export declare class RetrieveRequest extends $tea.Model {
|
|
|
2751
2753
|
rerank?: RetrieveRequestRerank[];
|
|
2752
2754
|
/**
|
|
2753
2755
|
* @remarks
|
|
2754
|
-
* Similarity Threshold The lowest similarity score of chunks that can be returned. This parameter is used to filter text chunks returned by the rank model. For more information, see [Create a knowledge base](https://
|
|
2756
|
+
* Similarity Threshold The lowest similarity score of chunks that can be returned. This parameter is used to filter text chunks returned by the rank model. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values: [0.01-1.00]. The priority of this parameter is greater than the similarity threshold configured for the knowledge base.
|
|
2755
2757
|
*
|
|
2756
2758
|
* By default, this parameter is left empty. In this case, the similarity threshold of the knowledge base is used.
|
|
2757
2759
|
*
|
|
@@ -2825,7 +2827,7 @@ export declare class RetrieveShrinkRequest extends $tea.Model {
|
|
|
2825
2827
|
denseSimilarityTopK?: number;
|
|
2826
2828
|
/**
|
|
2827
2829
|
* @remarks
|
|
2828
|
-
* Specifies whether to enable reranking. For more information, see [Create a knowledge base](https://
|
|
2830
|
+
* Specifies whether to enable reranking. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
2829
2831
|
*
|
|
2830
2832
|
* * true
|
|
2831
2833
|
* * false
|
|
@@ -2838,7 +2840,7 @@ export declare class RetrieveShrinkRequest extends $tea.Model {
|
|
|
2838
2840
|
enableReranking?: boolean;
|
|
2839
2841
|
/**
|
|
2840
2842
|
* @remarks
|
|
2841
|
-
* Specifies whether to enable multi-round conversation rewriting. For more information, see [Create a knowledge base](https://
|
|
2843
|
+
* Specifies whether to enable multi-round conversation rewriting. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
2842
2844
|
*
|
|
2843
2845
|
* * true
|
|
2844
2846
|
* * false
|
|
@@ -2852,7 +2854,7 @@ export declare class RetrieveShrinkRequest extends $tea.Model {
|
|
|
2852
2854
|
imagesShrink?: string;
|
|
2853
2855
|
/**
|
|
2854
2856
|
* @remarks
|
|
2855
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
2857
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
2856
2858
|
*
|
|
2857
2859
|
* This parameter is required.
|
|
2858
2860
|
*
|
|
@@ -2872,7 +2874,7 @@ export declare class RetrieveShrinkRequest extends $tea.Model {
|
|
|
2872
2874
|
rerankShrink?: string;
|
|
2873
2875
|
/**
|
|
2874
2876
|
* @remarks
|
|
2875
|
-
* Similarity Threshold The lowest similarity score of chunks that can be returned. This parameter is used to filter text chunks returned by the rank model. For more information, see [Create a knowledge base](https://
|
|
2877
|
+
* Similarity Threshold The lowest similarity score of chunks that can be returned. This parameter is used to filter text chunks returned by the rank model. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values: [0.01-1.00]. The priority of this parameter is greater than the similarity threshold configured for the knowledge base.
|
|
2876
2878
|
*
|
|
2877
2879
|
* By default, this parameter is left empty. In this case, the similarity threshold of the knowledge base is used.
|
|
2878
2880
|
*
|
|
@@ -3019,7 +3021,7 @@ export declare class SubmitIndexAddDocumentsJobRequest extends $tea.Model {
|
|
|
3019
3021
|
documentIds?: string[];
|
|
3020
3022
|
/**
|
|
3021
3023
|
* @remarks
|
|
3022
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
3024
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
3023
3025
|
*
|
|
3024
3026
|
* This parameter is required.
|
|
3025
3027
|
*
|
|
@@ -3029,7 +3031,7 @@ export declare class SubmitIndexAddDocumentsJobRequest extends $tea.Model {
|
|
|
3029
3031
|
indexId?: string;
|
|
3030
3032
|
/**
|
|
3031
3033
|
* @remarks
|
|
3032
|
-
* The data type of [Data Management](https://bailian.console.aliyun.com/#/data-center). For more information, see [Create a knowledge base](https://
|
|
3034
|
+
* The data type of [Data Management](https://bailian.console.aliyun.com/#/data-center). For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
3033
3035
|
*
|
|
3034
3036
|
* * DATA_CENTER_CATEGORY: The category type. Import all documents from one or more categories in Data Center.
|
|
3035
3037
|
* * DATA_CENTER_FILE: The document type. Import one or more documents from Data Center.
|
|
@@ -3065,7 +3067,7 @@ export declare class SubmitIndexAddDocumentsJobShrinkRequest extends $tea.Model
|
|
|
3065
3067
|
documentIdsShrink?: string;
|
|
3066
3068
|
/**
|
|
3067
3069
|
* @remarks
|
|
3068
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
3070
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
3069
3071
|
*
|
|
3070
3072
|
* This parameter is required.
|
|
3071
3073
|
*
|
|
@@ -3075,7 +3077,7 @@ export declare class SubmitIndexAddDocumentsJobShrinkRequest extends $tea.Model
|
|
|
3075
3077
|
indexId?: string;
|
|
3076
3078
|
/**
|
|
3077
3079
|
* @remarks
|
|
3078
|
-
* The data type of [Data Management](https://bailian.console.aliyun.com/#/data-center). For more information, see [Create a knowledge base](https://
|
|
3080
|
+
* The data type of [Data Management](https://bailian.console.aliyun.com/#/data-center). For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
3079
3081
|
*
|
|
3080
3082
|
* * DATA_CENTER_CATEGORY: The category type. Import all documents from one or more categories in Data Center.
|
|
3081
3083
|
* * DATA_CENTER_FILE: The document type. Import one or more documents from Data Center.
|
|
@@ -3176,7 +3178,7 @@ export declare class SubmitIndexAddDocumentsJobResponse extends $tea.Model {
|
|
|
3176
3178
|
export declare class SubmitIndexJobRequest extends $tea.Model {
|
|
3177
3179
|
/**
|
|
3178
3180
|
* @remarks
|
|
3179
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
3181
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
3180
3182
|
*
|
|
3181
3183
|
* This parameter is required.
|
|
3182
3184
|
*
|
|
@@ -3332,6 +3334,94 @@ export declare class UpdateAndPublishAgentResponse extends $tea.Model {
|
|
|
3332
3334
|
[key: string]: any;
|
|
3333
3335
|
});
|
|
3334
3336
|
}
|
|
3337
|
+
export declare class UpdateFileTagRequest extends $tea.Model {
|
|
3338
|
+
/**
|
|
3339
|
+
* @remarks
|
|
3340
|
+
* This parameter is required.
|
|
3341
|
+
*/
|
|
3342
|
+
tags?: string[];
|
|
3343
|
+
static names(): {
|
|
3344
|
+
[key: string]: string;
|
|
3345
|
+
};
|
|
3346
|
+
static types(): {
|
|
3347
|
+
[key: string]: any;
|
|
3348
|
+
};
|
|
3349
|
+
constructor(map?: {
|
|
3350
|
+
[key: string]: any;
|
|
3351
|
+
});
|
|
3352
|
+
}
|
|
3353
|
+
export declare class UpdateFileTagShrinkRequest extends $tea.Model {
|
|
3354
|
+
/**
|
|
3355
|
+
* @remarks
|
|
3356
|
+
* This parameter is required.
|
|
3357
|
+
*/
|
|
3358
|
+
tagsShrink?: string;
|
|
3359
|
+
static names(): {
|
|
3360
|
+
[key: string]: string;
|
|
3361
|
+
};
|
|
3362
|
+
static types(): {
|
|
3363
|
+
[key: string]: any;
|
|
3364
|
+
};
|
|
3365
|
+
constructor(map?: {
|
|
3366
|
+
[key: string]: any;
|
|
3367
|
+
});
|
|
3368
|
+
}
|
|
3369
|
+
export declare class UpdateFileTagResponseBody extends $tea.Model {
|
|
3370
|
+
/**
|
|
3371
|
+
* @example
|
|
3372
|
+
* Success
|
|
3373
|
+
*/
|
|
3374
|
+
code?: string;
|
|
3375
|
+
data?: UpdateFileTagResponseBodyData;
|
|
3376
|
+
/**
|
|
3377
|
+
* @example
|
|
3378
|
+
* Requests throttling triggered.
|
|
3379
|
+
*/
|
|
3380
|
+
message?: string;
|
|
3381
|
+
/**
|
|
3382
|
+
* @remarks
|
|
3383
|
+
* RequestId
|
|
3384
|
+
*
|
|
3385
|
+
* @example
|
|
3386
|
+
* 35A267BF-xxxx-54DB-8394-AA3B0742D833
|
|
3387
|
+
*/
|
|
3388
|
+
requestId?: string;
|
|
3389
|
+
/**
|
|
3390
|
+
* @example
|
|
3391
|
+
* 200
|
|
3392
|
+
*/
|
|
3393
|
+
status?: string;
|
|
3394
|
+
/**
|
|
3395
|
+
* @example
|
|
3396
|
+
* true
|
|
3397
|
+
*/
|
|
3398
|
+
success?: boolean;
|
|
3399
|
+
static names(): {
|
|
3400
|
+
[key: string]: string;
|
|
3401
|
+
};
|
|
3402
|
+
static types(): {
|
|
3403
|
+
[key: string]: any;
|
|
3404
|
+
};
|
|
3405
|
+
constructor(map?: {
|
|
3406
|
+
[key: string]: any;
|
|
3407
|
+
});
|
|
3408
|
+
}
|
|
3409
|
+
export declare class UpdateFileTagResponse extends $tea.Model {
|
|
3410
|
+
headers?: {
|
|
3411
|
+
[key: string]: string;
|
|
3412
|
+
};
|
|
3413
|
+
statusCode?: number;
|
|
3414
|
+
body?: UpdateFileTagResponseBody;
|
|
3415
|
+
static names(): {
|
|
3416
|
+
[key: string]: string;
|
|
3417
|
+
};
|
|
3418
|
+
static types(): {
|
|
3419
|
+
[key: string]: any;
|
|
3420
|
+
};
|
|
3421
|
+
constructor(map?: {
|
|
3422
|
+
[key: string]: any;
|
|
3423
|
+
});
|
|
3424
|
+
}
|
|
3335
3425
|
export declare class UpdateMemoryRequest extends $tea.Model {
|
|
3336
3426
|
description?: string;
|
|
3337
3427
|
static names(): {
|
|
@@ -3557,7 +3647,7 @@ export declare class ApplyFileUploadLeaseResponseBodyDataParam extends $tea.Mode
|
|
|
3557
3647
|
export declare class ApplyFileUploadLeaseResponseBodyData extends $tea.Model {
|
|
3558
3648
|
/**
|
|
3559
3649
|
* @remarks
|
|
3560
|
-
* The unique ID of the lease.
|
|
3650
|
+
* The unique ID of the lease.
|
|
3561
3651
|
*
|
|
3562
3652
|
* @example
|
|
3563
3653
|
* 1e6a159107384782be5e45ac4759b247.1719325231035
|
|
@@ -3777,6 +3867,23 @@ export declare class CreateIndexRequestDataSource extends $tea.Model {
|
|
|
3777
3867
|
[key: string]: any;
|
|
3778
3868
|
});
|
|
3779
3869
|
}
|
|
3870
|
+
export declare class CreateIndexRequestMetaExtractColumns extends $tea.Model {
|
|
3871
|
+
desc?: string;
|
|
3872
|
+
enableLlm?: boolean;
|
|
3873
|
+
enableSearch?: boolean;
|
|
3874
|
+
key?: string;
|
|
3875
|
+
type?: string;
|
|
3876
|
+
value?: string;
|
|
3877
|
+
static names(): {
|
|
3878
|
+
[key: string]: string;
|
|
3879
|
+
};
|
|
3880
|
+
static types(): {
|
|
3881
|
+
[key: string]: any;
|
|
3882
|
+
};
|
|
3883
|
+
constructor(map?: {
|
|
3884
|
+
[key: string]: any;
|
|
3885
|
+
});
|
|
3886
|
+
}
|
|
3780
3887
|
export declare class CreateIndexResponseBodyData extends $tea.Model {
|
|
3781
3888
|
/**
|
|
3782
3889
|
* @remarks
|
|
@@ -4399,7 +4506,7 @@ export declare class ListIndexDocumentsResponseBodyDataDocuments extends $tea.Mo
|
|
|
4399
4506
|
size?: number;
|
|
4400
4507
|
/**
|
|
4401
4508
|
* @remarks
|
|
4402
|
-
* For unstructured knowledge base, this parameter is the category ID
|
|
4509
|
+
* For unstructured knowledge base, this parameter is the category ID. To view the category ID, you can click the ID icon next to the category name on the Unstructured Data tab of the [Data Management](https://bailian.console.aliyun.com/#/data-center) page.
|
|
4403
4510
|
*
|
|
4404
4511
|
* For structured knowledge base, this parameter is the data table ID. To view the table ID, you can click the ID icon next to the table name on the Structured Data tab of the [Data Management](https://bailian.console.aliyun.com/#/data-center) page.
|
|
4405
4512
|
*
|
|
@@ -4512,7 +4619,7 @@ export declare class ListIndicesResponseBodyDataIndices extends $tea.Model {
|
|
|
4512
4619
|
embeddingModelName?: string;
|
|
4513
4620
|
/**
|
|
4514
4621
|
* @remarks
|
|
4515
|
-
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://
|
|
4622
|
+
* The primary key ID of the knowledge base, which is the `Data.Id` parameter returned by the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation.
|
|
4516
4623
|
*
|
|
4517
4624
|
* @example
|
|
4518
4625
|
* 259899
|
|
@@ -4879,7 +4986,7 @@ export declare class ListPublishedAgentResponseBodyData extends $tea.Model {
|
|
|
4879
4986
|
export declare class RetrieveRequestRerank extends $tea.Model {
|
|
4880
4987
|
/**
|
|
4881
4988
|
* @remarks
|
|
4882
|
-
* The name of the rank model. For more information, see [Create a knowledge base](https://
|
|
4989
|
+
* The name of the rank model. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
|
|
4883
4990
|
*
|
|
4884
4991
|
* * gte-rerank-hybrid: Recommended official model.
|
|
4885
4992
|
* * gte-rerank
|
|
@@ -4988,7 +5095,7 @@ export declare class SubmitIndexAddDocumentsJobResponseBodyData extends $tea.Mod
|
|
|
4988
5095
|
export declare class SubmitIndexJobResponseBodyData extends $tea.Model {
|
|
4989
5096
|
/**
|
|
4990
5097
|
* @remarks
|
|
4991
|
-
* The primary key ID of the job, which is the `JobId` parameter of the [GetIndexJobStatus](https://
|
|
5098
|
+
* The primary key ID of the job, which is the `JobId` parameter of the [GetIndexJobStatus](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-getindexjobstatus) operation.
|
|
4992
5099
|
*
|
|
4993
5100
|
* @example
|
|
4994
5101
|
* eFDr2fGRzP9gdDZWAdo3YQ==
|
|
@@ -5123,6 +5230,22 @@ export declare class UpdateAndPublishAgentRequestApplicationConfig extends $tea.
|
|
|
5123
5230
|
[key: string]: any;
|
|
5124
5231
|
});
|
|
5125
5232
|
}
|
|
5233
|
+
export declare class UpdateFileTagResponseBodyData extends $tea.Model {
|
|
5234
|
+
/**
|
|
5235
|
+
* @example
|
|
5236
|
+
* file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx
|
|
5237
|
+
*/
|
|
5238
|
+
fileId?: string;
|
|
5239
|
+
static names(): {
|
|
5240
|
+
[key: string]: string;
|
|
5241
|
+
};
|
|
5242
|
+
static types(): {
|
|
5243
|
+
[key: string]: any;
|
|
5244
|
+
};
|
|
5245
|
+
constructor(map?: {
|
|
5246
|
+
[key: string]: any;
|
|
5247
|
+
});
|
|
5248
|
+
}
|
|
5126
5249
|
export default class Client extends OpenApi {
|
|
5127
5250
|
constructor(config: $OpenApi.Config);
|
|
5128
5251
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
@@ -5180,7 +5303,7 @@ export default class Client extends OpenApi {
|
|
|
5180
5303
|
* @remarks
|
|
5181
5304
|
* This operation returns an HTTP URL that can be used to upload an unstructured document (the lease) and parameters required for the upload. Structured documents are not supported.
|
|
5182
5305
|
* * The HTTP URL returned by this operation is valid only for minutes. Upload the document before the URL expires.
|
|
5183
|
-
* * After you apply for a lease and upload a document, the document is stored in a temporary storage space for 12 hours.
|
|
5306
|
+
* * After you apply for a lease and upload a document, the document is stored in a temporary storage space for 12 hours.
|
|
5184
5307
|
* * This interface is not idempotent.
|
|
5185
5308
|
*
|
|
5186
5309
|
* @param request - ApplyFileUploadLeaseRequest
|
|
@@ -5197,7 +5320,7 @@ export default class Client extends OpenApi {
|
|
|
5197
5320
|
* @remarks
|
|
5198
5321
|
* This operation returns an HTTP URL that can be used to upload an unstructured document (the lease) and parameters required for the upload. Structured documents are not supported.
|
|
5199
5322
|
* * The HTTP URL returned by this operation is valid only for minutes. Upload the document before the URL expires.
|
|
5200
|
-
* * After you apply for a lease and upload a document, the document is stored in a temporary storage space for 12 hours.
|
|
5323
|
+
* * After you apply for a lease and upload a document, the document is stored in a temporary storage space for 12 hours.
|
|
5201
5324
|
* * This interface is not idempotent.
|
|
5202
5325
|
*
|
|
5203
5326
|
* @param request - ApplyFileUploadLeaseRequest
|
|
@@ -5226,8 +5349,8 @@ export default class Client extends OpenApi {
|
|
|
5226
5349
|
* Creates an unstructured knowledge base and imports one or more parsed documents into the knowledge base. You cannot create a structured knowledge base by calling an API operation. Use the console instead.
|
|
5227
5350
|
*
|
|
5228
5351
|
* @remarks
|
|
5229
|
-
* 1. You must first upload documents to [Data Management](https://bailian.console.aliyun.com/#/data-center) and obtain the `FileId`. The documents are the knowledge source of the knowledge base.
|
|
5230
|
-
* 2. This operation only initializes a knowledge base creation job. You must also call the [SubmitIndexJob](https://
|
|
5352
|
+
* 1. You must first upload documents to [Data Management](https://bailian.console.aliyun.com/#/data-center) and obtain the `FileId`. The documents are the knowledge source of the knowledge base. For more information, see [Import Data](https://www.alibabacloud.com/help/en/model-studio/user-guide/data-import-instructions).
|
|
5353
|
+
* 2. This operation only initializes a knowledge base creation job. You must also call the [SubmitIndexJob](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-submitindexjob) operation to complete the job.
|
|
5231
5354
|
* 3. This interface is not idempotent.
|
|
5232
5355
|
*
|
|
5233
5356
|
* @param tmpReq - CreateIndexRequest
|
|
@@ -5242,8 +5365,8 @@ export default class Client extends OpenApi {
|
|
|
5242
5365
|
* Creates an unstructured knowledge base and imports one or more parsed documents into the knowledge base. You cannot create a structured knowledge base by calling an API operation. Use the console instead.
|
|
5243
5366
|
*
|
|
5244
5367
|
* @remarks
|
|
5245
|
-
* 1. You must first upload documents to [Data Management](https://bailian.console.aliyun.com/#/data-center) and obtain the `FileId`. The documents are the knowledge source of the knowledge base.
|
|
5246
|
-
* 2. This operation only initializes a knowledge base creation job. You must also call the [SubmitIndexJob](https://
|
|
5368
|
+
* 1. You must first upload documents to [Data Management](https://bailian.console.aliyun.com/#/data-center) and obtain the `FileId`. The documents are the knowledge source of the knowledge base. For more information, see [Import Data](https://www.alibabacloud.com/help/en/model-studio/user-guide/data-import-instructions).
|
|
5369
|
+
* 2. This operation only initializes a knowledge base creation job. You must also call the [SubmitIndexJob](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-submitindexjob) operation to complete the job.
|
|
5247
5370
|
* 3. This interface is not idempotent.
|
|
5248
5371
|
*
|
|
5249
5372
|
* @param request - CreateIndexRequest
|
|
@@ -5351,7 +5474,7 @@ export default class Client extends OpenApi {
|
|
|
5351
5474
|
*
|
|
5352
5475
|
* @remarks
|
|
5353
5476
|
* Before you call this operation, make sure that your knowledge base is created and is not deleted. That is, the primary key ID of the knowledge base `IndexId` is valid.
|
|
5354
|
-
* * If a knowledge base is being called by an application, disassociate the knowledge base before you can delete it. To disassociate the knowledge base, you must use the console. For more information, see [Create a knowledge base](https://
|
|
5477
|
+
* * If a knowledge base is being called by an application, disassociate the knowledge base before you can delete it. To disassociate the knowledge base, you must use the console. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base).
|
|
5355
5478
|
* * After you delete a knowledge base, it cannot be recovered. We recommend that you proceed with caution.
|
|
5356
5479
|
* * Imported documents are not deleted from the [Data Management](https://bailian.console.aliyun.com/#/data-center) if you call this operation.
|
|
5357
5480
|
* * This interface is idempotent.
|
|
@@ -5369,7 +5492,7 @@ export default class Client extends OpenApi {
|
|
|
5369
5492
|
*
|
|
5370
5493
|
* @remarks
|
|
5371
5494
|
* Before you call this operation, make sure that your knowledge base is created and is not deleted. That is, the primary key ID of the knowledge base `IndexId` is valid.
|
|
5372
|
-
* * If a knowledge base is being called by an application, disassociate the knowledge base before you can delete it. To disassociate the knowledge base, you must use the console. For more information, see [Create a knowledge base](https://
|
|
5495
|
+
* * If a knowledge base is being called by an application, disassociate the knowledge base before you can delete it. To disassociate the knowledge base, you must use the console. For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base).
|
|
5373
5496
|
* * After you delete a knowledge base, it cannot be recovered. We recommend that you proceed with caution.
|
|
5374
5497
|
* * Imported documents are not deleted from the [Data Management](https://bailian.console.aliyun.com/#/data-center) if you call this operation.
|
|
5375
5498
|
* * This interface is idempotent.
|
|
@@ -5383,8 +5506,8 @@ export default class Client extends OpenApi {
|
|
|
5383
5506
|
*
|
|
5384
5507
|
* @remarks
|
|
5385
5508
|
* Before you call this operation, make sure that your knowledge base is created and is not deleted. That is, the primary key ID of the knowledge base `IndexId` is valid.
|
|
5386
|
-
* * Only documents with the INSERT_ERROR and FINISH states can be deleted. To query the status of documents in a specified knowledge base, call the [ListIndexDocuments](https://
|
|
5387
|
-
* * After you delete a document, it cannot be recovered and the [Retrieve](https://
|
|
5509
|
+
* * Only documents with the INSERT_ERROR and FINISH states can be deleted. To query the status of documents in a specified knowledge base, call the [ListIndexDocuments](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-listindexdocuments) operation.
|
|
5510
|
+
* * After you delete a document, it cannot be recovered and the [Retrieve](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-retrieve) operation cannot query information about the document. We recommend that you proceed with caution.
|
|
5388
5511
|
* * Imported documents are not deleted from the [Data Management](https://bailian.console.aliyun.com/#/data-center) if you call this operation.
|
|
5389
5512
|
* * This interface is idempotent.
|
|
5390
5513
|
*
|
|
@@ -5401,8 +5524,8 @@ export default class Client extends OpenApi {
|
|
|
5401
5524
|
*
|
|
5402
5525
|
* @remarks
|
|
5403
5526
|
* Before you call this operation, make sure that your knowledge base is created and is not deleted. That is, the primary key ID of the knowledge base `IndexId` is valid.
|
|
5404
|
-
* * Only documents with the INSERT_ERROR and FINISH states can be deleted. To query the status of documents in a specified knowledge base, call the [ListIndexDocuments](https://
|
|
5405
|
-
* * After you delete a document, it cannot be recovered and the [Retrieve](https://
|
|
5527
|
+
* * Only documents with the INSERT_ERROR and FINISH states can be deleted. To query the status of documents in a specified knowledge base, call the [ListIndexDocuments](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-listindexdocuments) operation.
|
|
5528
|
+
* * After you delete a document, it cannot be recovered and the [Retrieve](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-retrieve) operation cannot query information about the document. We recommend that you proceed with caution.
|
|
5406
5529
|
* * Imported documents are not deleted from the [Data Management](https://bailian.console.aliyun.com/#/data-center) if you call this operation.
|
|
5407
5530
|
* * This interface is idempotent.
|
|
5408
5531
|
*
|
|
@@ -5460,7 +5583,6 @@ export default class Client extends OpenApi {
|
|
|
5460
5583
|
*
|
|
5461
5584
|
* @remarks
|
|
5462
5585
|
* Before you call this API, make sure that your document is uploaded to the [Data Management](https://bailian.console.aliyun.com/knowledge-base#/data-center) page of Alibaba Cloud Model Studio.
|
|
5463
|
-
* * If you upload the document by calling an API, make sure that you have called the [AddFile](https://help.aliyun.com/zh/model-studio/developer-reference/api-bailian-2023-12-29-addfile) operation to obtain `FileId`.
|
|
5464
5586
|
* * You can also call this operation to query unstructured documents that you upload on the [Data Management](https://bailian.console.aliyun.com/knowledge-base#/data-center) page.
|
|
5465
5587
|
* * This operation is idempotent.
|
|
5466
5588
|
* **Throttling:** Make sure that the interval between the two queries is at least 15 seconds. Otherwise, you may trigger system throttling. If throttling is triggered, try again later.
|
|
@@ -5477,7 +5599,6 @@ export default class Client extends OpenApi {
|
|
|
5477
5599
|
*
|
|
5478
5600
|
* @remarks
|
|
5479
5601
|
* Before you call this API, make sure that your document is uploaded to the [Data Management](https://bailian.console.aliyun.com/knowledge-base#/data-center) page of Alibaba Cloud Model Studio.
|
|
5480
|
-
* * If you upload the document by calling an API, make sure that you have called the [AddFile](https://help.aliyun.com/zh/model-studio/developer-reference/api-bailian-2023-12-29-addfile) operation to obtain `FileId`.
|
|
5481
5602
|
* * You can also call this operation to query unstructured documents that you upload on the [Data Management](https://bailian.console.aliyun.com/knowledge-base#/data-center) page.
|
|
5482
5603
|
* * This operation is idempotent.
|
|
5483
5604
|
* **Throttling:** Make sure that the interval between the two queries is at least 15 seconds. Otherwise, you may trigger system throttling. If throttling is triggered, try again later.
|
|
@@ -5488,7 +5609,7 @@ export default class Client extends OpenApi {
|
|
|
5488
5609
|
* Queries the current status of a specified knowledge base creation or add document job.
|
|
5489
5610
|
*
|
|
5490
5611
|
* @remarks
|
|
5491
|
-
* 1. A knowledge base job is running. You can call the [SubmitIndexJob](https://
|
|
5612
|
+
* 1. A knowledge base job is running. You can call the [SubmitIndexJob](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-submitindexjob) operation to create a creation job or the [SubmitIndexAddDocumentsJob](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-submitindexadddocumentsjob) operation to create a add document job. Then, obtain the `JobId` returned by the operations.
|
|
5492
5613
|
* 2. We recommend that you call this operation at intervals of more than 5 seconds.
|
|
5493
5614
|
* 3. This interface is idempotent.
|
|
5494
5615
|
*
|
|
@@ -5504,7 +5625,7 @@ export default class Client extends OpenApi {
|
|
|
5504
5625
|
* Queries the current status of a specified knowledge base creation or add document job.
|
|
5505
5626
|
*
|
|
5506
5627
|
* @remarks
|
|
5507
|
-
* 1. A knowledge base job is running. You can call the [SubmitIndexJob](https://
|
|
5628
|
+
* 1. A knowledge base job is running. You can call the [SubmitIndexJob](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-submitindexjob) operation to create a creation job or the [SubmitIndexAddDocumentsJob](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-submitindexadddocumentsjob) operation to create a add document job. Then, obtain the `JobId` returned by the operations.
|
|
5508
5629
|
* 2. We recommend that you call this operation at intervals of more than 5 seconds.
|
|
5509
5630
|
* 3. This interface is idempotent.
|
|
5510
5631
|
*
|
|
@@ -5788,9 +5909,9 @@ export default class Client extends OpenApi {
|
|
|
5788
5909
|
* Adds parsed documents to an unstructured knowledge base.
|
|
5789
5910
|
*
|
|
5790
5911
|
* @remarks
|
|
5791
|
-
*
|
|
5792
|
-
* * Before you call this operation,
|
|
5793
|
-
* * After you call this operation, you can call the [GetIndexJobStatus](https://
|
|
5912
|
+
* You must first upload documents to [Data Management](https://bailian.console.aliyun.com/#/data-center) and obtain the `FileId`. The documents are the knowledge source of the knowledge base. For more information, see [Import Data](https://www.alibabacloud.com/help/en/model-studio/user-guide/data-import-instructions).
|
|
5913
|
+
* * Before you call this operation, make sure that your knowledge base is created and is not deleted. That is, the primary key ID of the knowledge base `IndexId` is valid.
|
|
5914
|
+
* * After you call this operation, you can call the [GetIndexJobStatus](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-getindexjobstatus) operation to query the status of the job. More than 20 calls to the GetIndexJobStatus operation per minute may trigger throttling.
|
|
5794
5915
|
* * Execution takes a period of time after this operation is called. Do not make new request before the request is returned. This interface is not idempotent.
|
|
5795
5916
|
*
|
|
5796
5917
|
* @param tmpReq - SubmitIndexAddDocumentsJobRequest
|
|
@@ -5805,9 +5926,9 @@ export default class Client extends OpenApi {
|
|
|
5805
5926
|
* Adds parsed documents to an unstructured knowledge base.
|
|
5806
5927
|
*
|
|
5807
5928
|
* @remarks
|
|
5808
|
-
*
|
|
5809
|
-
* * Before you call this operation,
|
|
5810
|
-
* * After you call this operation, you can call the [GetIndexJobStatus](https://
|
|
5929
|
+
* You must first upload documents to [Data Management](https://bailian.console.aliyun.com/#/data-center) and obtain the `FileId`. The documents are the knowledge source of the knowledge base. For more information, see [Import Data](https://www.alibabacloud.com/help/en/model-studio/user-guide/data-import-instructions).
|
|
5930
|
+
* * Before you call this operation, make sure that your knowledge base is created and is not deleted. That is, the primary key ID of the knowledge base `IndexId` is valid.
|
|
5931
|
+
* * After you call this operation, you can call the [GetIndexJobStatus](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-getindexjobstatus) operation to query the status of the job. More than 20 calls to the GetIndexJobStatus operation per minute may trigger throttling.
|
|
5811
5932
|
* * Execution takes a period of time after this operation is called. Do not make new request before the request is returned. This interface is not idempotent.
|
|
5812
5933
|
*
|
|
5813
5934
|
* @param request - SubmitIndexAddDocumentsJobRequest
|
|
@@ -5818,9 +5939,9 @@ export default class Client extends OpenApi {
|
|
|
5818
5939
|
* Submits a specified CreateIndex job to complete knowledge base creation.
|
|
5819
5940
|
*
|
|
5820
5941
|
* @remarks
|
|
5821
|
-
* 1. Before you call this operation, you must call the [CreateIndex](https://
|
|
5942
|
+
* 1. Before you call this operation, you must call the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation and obtain the `IndexId`.
|
|
5822
5943
|
* 2. Execution takes a period of time after this operation is called. Do not make new request before the request is returned.
|
|
5823
|
-
* 3. If you want to query the execution status of the job after you call this operation, call the [GetIndexJobStatus](https://
|
|
5944
|
+
* 3. If you want to query the execution status of the job after you call this operation, call the [GetIndexJobStatus](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-getindexjobstatus) operation.
|
|
5824
5945
|
* 4. This interface is not idempotent.
|
|
5825
5946
|
*
|
|
5826
5947
|
* @param request - SubmitIndexJobRequest
|
|
@@ -5835,9 +5956,9 @@ export default class Client extends OpenApi {
|
|
|
5835
5956
|
* Submits a specified CreateIndex job to complete knowledge base creation.
|
|
5836
5957
|
*
|
|
5837
5958
|
* @remarks
|
|
5838
|
-
* 1. Before you call this operation, you must call the [CreateIndex](https://
|
|
5959
|
+
* 1. Before you call this operation, you must call the [CreateIndex](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-createindex) operation and obtain the `IndexId`.
|
|
5839
5960
|
* 2. Execution takes a period of time after this operation is called. Do not make new request before the request is returned.
|
|
5840
|
-
* 3. If you want to query the execution status of the job after you call this operation, call the [GetIndexJobStatus](https://
|
|
5961
|
+
* 3. If you want to query the execution status of the job after you call this operation, call the [GetIndexJobStatus](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-getindexjobstatus) operation.
|
|
5841
5962
|
* 4. This interface is not idempotent.
|
|
5842
5963
|
*
|
|
5843
5964
|
* @param request - SubmitIndexJobRequest
|
|
@@ -5862,6 +5983,24 @@ export default class Client extends OpenApi {
|
|
|
5862
5983
|
* @returns UpdateAndPublishAgentResponse
|
|
5863
5984
|
*/
|
|
5864
5985
|
updateAndPublishAgent(workspaceId: string, appCode: string, request: UpdateAndPublishAgentRequest): Promise<UpdateAndPublishAgentResponse>;
|
|
5986
|
+
/**
|
|
5987
|
+
* 更新文档Tag
|
|
5988
|
+
*
|
|
5989
|
+
* @param tmpReq - UpdateFileTagRequest
|
|
5990
|
+
* @param headers - map
|
|
5991
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5992
|
+
* @returns UpdateFileTagResponse
|
|
5993
|
+
*/
|
|
5994
|
+
updateFileTagWithOptions(WorkspaceId: string, FileId: string, tmpReq: UpdateFileTagRequest, headers: {
|
|
5995
|
+
[key: string]: string;
|
|
5996
|
+
}, runtime: $Util.RuntimeOptions): Promise<UpdateFileTagResponse>;
|
|
5997
|
+
/**
|
|
5998
|
+
* 更新文档Tag
|
|
5999
|
+
*
|
|
6000
|
+
* @param request - UpdateFileTagRequest
|
|
6001
|
+
* @returns UpdateFileTagResponse
|
|
6002
|
+
*/
|
|
6003
|
+
updateFileTag(WorkspaceId: string, FileId: string, request: UpdateFileTagRequest): Promise<UpdateFileTagResponse>;
|
|
5865
6004
|
/**
|
|
5866
6005
|
* 更新memory
|
|
5867
6006
|
*
|