@alicloud/bailian20231229 2.8.0 → 2.8.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.
- package/dist/client.d.ts +22 -22
- package/dist/client.js +31 -22
- package/dist/client.js.map +1 -1
- package/dist/models/CreateIndexRequest.d.ts +50 -0
- package/dist/models/CreateIndexRequest.js +6 -0
- package/dist/models/CreateIndexRequest.js.map +1 -1
- package/dist/models/CreateIndexShrinkRequest.d.ts +15 -0
- package/dist/models/CreateIndexShrinkRequest.js +6 -0
- package/dist/models/CreateIndexShrinkRequest.js.map +1 -1
- package/dist/models/HighCodeDeployResponseBody.d.ts +1 -1
- package/package.json +1 -1
- package/src/client.ts +34 -22
- package/src/models/CreateIndexRequest.ts +56 -0
- package/src/models/CreateIndexShrinkRequest.ts +21 -0
- package/src/models/HighCodeDeployResponseBody.ts +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export default class Client extends OpenApi {
|
|
|
91
91
|
*/
|
|
92
92
|
addFilesFromAuthorizedOss(WorkspaceId: string, request: $_model.AddFilesFromAuthorizedOssRequest): Promise<$_model.AddFilesFromAuthorizedOssResponse>;
|
|
93
93
|
/**
|
|
94
|
-
* Applies for a document upload lease to upload a document.
|
|
94
|
+
* Applies for a document upload lease to upload a document. You cannot use the API to upload structured documents. Use the console instead.
|
|
95
95
|
*
|
|
96
96
|
* @remarks
|
|
97
97
|
* 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.
|
|
@@ -108,7 +108,7 @@ export default class Client extends OpenApi {
|
|
|
108
108
|
[key: string]: string;
|
|
109
109
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ApplyFileUploadLeaseResponse>;
|
|
110
110
|
/**
|
|
111
|
-
* Applies for a document upload lease to upload a document.
|
|
111
|
+
* Applies for a document upload lease to upload a document. You cannot use the API to upload structured documents. Use the console instead.
|
|
112
112
|
*
|
|
113
113
|
* @remarks
|
|
114
114
|
* 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.
|
|
@@ -288,7 +288,7 @@ export default class Client extends OpenApi {
|
|
|
288
288
|
*/
|
|
289
289
|
deleteAgent(workspaceId: string, appCode: string): Promise<$_model.DeleteAgentResponse>;
|
|
290
290
|
/**
|
|
291
|
-
*
|
|
291
|
+
* Deletes a specified category permanently.
|
|
292
292
|
*
|
|
293
293
|
* @param headers - map
|
|
294
294
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -298,7 +298,7 @@ export default class Client extends OpenApi {
|
|
|
298
298
|
[key: string]: string;
|
|
299
299
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteCategoryResponse>;
|
|
300
300
|
/**
|
|
301
|
-
*
|
|
301
|
+
* Deletes a specified category permanently.
|
|
302
302
|
* @returns DeleteCategoryResponse
|
|
303
303
|
*/
|
|
304
304
|
deleteCategory(CategoryId: string, WorkspaceId: string): Promise<$_model.DeleteCategoryResponse>;
|
|
@@ -343,7 +343,7 @@ export default class Client extends OpenApi {
|
|
|
343
343
|
*/
|
|
344
344
|
deleteChunk(WorkspaceId: string, request: $_model.DeleteChunkRequest): Promise<$_model.DeleteChunkResponse>;
|
|
345
345
|
/**
|
|
346
|
-
*
|
|
346
|
+
* Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
347
347
|
*
|
|
348
348
|
* @param headers - map
|
|
349
349
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -353,7 +353,7 @@ export default class Client extends OpenApi {
|
|
|
353
353
|
[key: string]: string;
|
|
354
354
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteFileResponse>;
|
|
355
355
|
/**
|
|
356
|
-
*
|
|
356
|
+
* Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
357
357
|
* @returns DeleteFileResponse
|
|
358
358
|
*/
|
|
359
359
|
deleteFile(FileId: string, WorkspaceId: string): Promise<$_model.DeleteFileResponse>;
|
|
@@ -390,7 +390,7 @@ export default class Client extends OpenApi {
|
|
|
390
390
|
*/
|
|
391
391
|
deleteIndex(WorkspaceId: string, request: $_model.DeleteIndexRequest): Promise<$_model.DeleteIndexResponse>;
|
|
392
392
|
/**
|
|
393
|
-
* Deletes one or more documents from a specified unstructured knowledge base permanently.
|
|
393
|
+
* Deletes one or more documents from a specified unstructured knowledge base permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
394
394
|
*
|
|
395
395
|
* @remarks
|
|
396
396
|
* 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.
|
|
@@ -408,7 +408,7 @@ export default class Client extends OpenApi {
|
|
|
408
408
|
[key: string]: string;
|
|
409
409
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteIndexDocumentResponse>;
|
|
410
410
|
/**
|
|
411
|
-
* Deletes one or more documents from a specified unstructured knowledge base permanently.
|
|
411
|
+
* Deletes one or more documents from a specified unstructured knowledge base permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
412
412
|
*
|
|
413
413
|
* @remarks
|
|
414
414
|
* 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.
|
|
@@ -467,7 +467,7 @@ export default class Client extends OpenApi {
|
|
|
467
467
|
*/
|
|
468
468
|
deletePromptTemplate(workspaceId: string, promptTemplateId: string): Promise<$_model.DeletePromptTemplateResponse>;
|
|
469
469
|
/**
|
|
470
|
-
*
|
|
470
|
+
* Obtains the basic information of a document, including the document name, type, and status.
|
|
471
471
|
*
|
|
472
472
|
* @remarks
|
|
473
473
|
* 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.
|
|
@@ -483,7 +483,7 @@ export default class Client extends OpenApi {
|
|
|
483
483
|
[key: string]: string;
|
|
484
484
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeFileResponse>;
|
|
485
485
|
/**
|
|
486
|
-
*
|
|
486
|
+
* Obtains the basic information of a document, including the document name, type, and status.
|
|
487
487
|
*
|
|
488
488
|
* @remarks
|
|
489
489
|
* 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.
|
|
@@ -576,7 +576,7 @@ export default class Client extends OpenApi {
|
|
|
576
576
|
*/
|
|
577
577
|
getIndexJobStatus(WorkspaceId: string, request: $_model.GetIndexJobStatusRequest): Promise<$_model.GetIndexJobStatusResponse>;
|
|
578
578
|
/**
|
|
579
|
-
*
|
|
579
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
580
580
|
*
|
|
581
581
|
* @param request - GetIndexMonitorRequest
|
|
582
582
|
* @param headers - map
|
|
@@ -587,7 +587,7 @@ export default class Client extends OpenApi {
|
|
|
587
587
|
[key: string]: string;
|
|
588
588
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetIndexMonitorResponse>;
|
|
589
589
|
/**
|
|
590
|
-
*
|
|
590
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
591
591
|
*
|
|
592
592
|
* @param request - GetIndexMonitorRequest
|
|
593
593
|
* @returns GetIndexMonitorResponse
|
|
@@ -690,7 +690,7 @@ export default class Client extends OpenApi {
|
|
|
690
690
|
*/
|
|
691
691
|
highCodeDeploy(workspaceId: string, request: $_model.HighCodeDeployRequest): Promise<$_model.HighCodeDeployResponse>;
|
|
692
692
|
/**
|
|
693
|
-
*
|
|
693
|
+
* Lists the details about the next or multiple categories in a specified workspace.
|
|
694
694
|
*
|
|
695
695
|
* @param request - ListCategoryRequest
|
|
696
696
|
* @param headers - map
|
|
@@ -701,7 +701,7 @@ export default class Client extends OpenApi {
|
|
|
701
701
|
[key: string]: string;
|
|
702
702
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListCategoryResponse>;
|
|
703
703
|
/**
|
|
704
|
-
*
|
|
704
|
+
* Lists the details about the next or multiple categories in a specified workspace.
|
|
705
705
|
*
|
|
706
706
|
* @param request - ListCategoryRequest
|
|
707
707
|
* @returns ListCategoryResponse
|
|
@@ -808,7 +808,7 @@ export default class Client extends OpenApi {
|
|
|
808
808
|
*/
|
|
809
809
|
listIndexFileDetails(WorkspaceId: string, request: $_model.ListIndexFileDetailsRequest): Promise<$_model.ListIndexFileDetailsResponse>;
|
|
810
810
|
/**
|
|
811
|
-
* Lists knowledge bases in a specified workspace.
|
|
811
|
+
* Lists the details about the next or multiple knowledge bases in a specified workspace.
|
|
812
812
|
*
|
|
813
813
|
* @remarks
|
|
814
814
|
* This interface is idempotent.
|
|
@@ -822,7 +822,7 @@ export default class Client extends OpenApi {
|
|
|
822
822
|
[key: string]: string;
|
|
823
823
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIndicesResponse>;
|
|
824
824
|
/**
|
|
825
|
-
* Lists knowledge bases in a specified workspace.
|
|
825
|
+
* Lists the details about the next or multiple knowledge bases in a specified workspace.
|
|
826
826
|
*
|
|
827
827
|
* @remarks
|
|
828
828
|
* This interface is idempotent.
|
|
@@ -932,7 +932,7 @@ export default class Client extends OpenApi {
|
|
|
932
932
|
*/
|
|
933
933
|
retrieve(WorkspaceId: string, request: $_model.RetrieveRequest): Promise<$_model.RetrieveResponse>;
|
|
934
934
|
/**
|
|
935
|
-
* Adds parsed documents to an unstructured knowledge base.
|
|
935
|
+
* Adds parsed documents to an unstructured knowledge base. You cannot use the API to add knowledge to structured knowledge bases, see the Usage notes section of this topic.
|
|
936
936
|
*
|
|
937
937
|
* @remarks
|
|
938
938
|
* 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).
|
|
@@ -949,7 +949,7 @@ export default class Client extends OpenApi {
|
|
|
949
949
|
[key: string]: string;
|
|
950
950
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.SubmitIndexAddDocumentsJobResponse>;
|
|
951
951
|
/**
|
|
952
|
-
* Adds parsed documents to an unstructured knowledge base.
|
|
952
|
+
* Adds parsed documents to an unstructured knowledge base. You cannot use the API to add knowledge to structured knowledge bases, see the Usage notes section of this topic.
|
|
953
953
|
*
|
|
954
954
|
* @remarks
|
|
955
955
|
* 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).
|
|
@@ -1066,7 +1066,7 @@ export default class Client extends OpenApi {
|
|
|
1066
1066
|
*/
|
|
1067
1067
|
updateChunk(WorkspaceId: string, request: $_model.UpdateChunkRequest): Promise<$_model.UpdateChunkResponse>;
|
|
1068
1068
|
/**
|
|
1069
|
-
*
|
|
1069
|
+
* Updates the tags of a specified document.
|
|
1070
1070
|
*
|
|
1071
1071
|
* @param tmpReq - UpdateFileTagRequest
|
|
1072
1072
|
* @param headers - map
|
|
@@ -1077,14 +1077,14 @@ export default class Client extends OpenApi {
|
|
|
1077
1077
|
[key: string]: string;
|
|
1078
1078
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateFileTagResponse>;
|
|
1079
1079
|
/**
|
|
1080
|
-
*
|
|
1080
|
+
* Updates the tags of a specified document.
|
|
1081
1081
|
*
|
|
1082
1082
|
* @param request - UpdateFileTagRequest
|
|
1083
1083
|
* @returns UpdateFileTagResponse
|
|
1084
1084
|
*/
|
|
1085
1085
|
updateFileTag(WorkspaceId: string, FileId: string, request: $_model.UpdateFileTagRequest): Promise<$_model.UpdateFileTagResponse>;
|
|
1086
1086
|
/**
|
|
1087
|
-
*
|
|
1087
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
1088
1088
|
*
|
|
1089
1089
|
* @param request - UpdateIndexRequest
|
|
1090
1090
|
* @param headers - map
|
|
@@ -1095,7 +1095,7 @@ export default class Client extends OpenApi {
|
|
|
1095
1095
|
[key: string]: string;
|
|
1096
1096
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateIndexResponse>;
|
|
1097
1097
|
/**
|
|
1098
|
-
*
|
|
1098
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
1099
1099
|
*
|
|
1100
1100
|
* @param request - UpdateIndexRequest
|
|
1101
1101
|
* @returns UpdateIndexResponse
|
package/dist/client.js
CHANGED
|
@@ -268,7 +268,7 @@ class Client extends openapi_core_1.default {
|
|
|
268
268
|
return await this.addFilesFromAuthorizedOssWithOptions(WorkspaceId, request, headers, runtime);
|
|
269
269
|
}
|
|
270
270
|
/**
|
|
271
|
-
* Applies for a document upload lease to upload a document.
|
|
271
|
+
* Applies for a document upload lease to upload a document. You cannot use the API to upload structured documents. Use the console instead.
|
|
272
272
|
*
|
|
273
273
|
* @remarks
|
|
274
274
|
* 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.
|
|
@@ -317,7 +317,7 @@ class Client extends openapi_core_1.default {
|
|
|
317
317
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ApplyFileUploadLeaseResponse({}));
|
|
318
318
|
}
|
|
319
319
|
/**
|
|
320
|
-
* Applies for a document upload lease to upload a document.
|
|
320
|
+
* Applies for a document upload lease to upload a document. You cannot use the API to upload structured documents. Use the console instead.
|
|
321
321
|
*
|
|
322
322
|
* @remarks
|
|
323
323
|
* 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.
|
|
@@ -603,9 +603,15 @@ class Client extends openapi_core_1.default {
|
|
|
603
603
|
if (!$dara.isNull(request.tableIdsShrink)) {
|
|
604
604
|
query["TableIds"] = request.tableIdsShrink;
|
|
605
605
|
}
|
|
606
|
+
if (!$dara.isNull(request.channelType)) {
|
|
607
|
+
query["channelType"] = request.channelType;
|
|
608
|
+
}
|
|
606
609
|
if (!$dara.isNull(request.chunkMode)) {
|
|
607
610
|
query["chunkMode"] = request.chunkMode;
|
|
608
611
|
}
|
|
612
|
+
if (!$dara.isNull(request.connectId)) {
|
|
613
|
+
query["connectId"] = request.connectId;
|
|
614
|
+
}
|
|
609
615
|
if (!$dara.isNull(request.database)) {
|
|
610
616
|
query["database"] = request.database;
|
|
611
617
|
}
|
|
@@ -615,6 +621,9 @@ class Client extends openapi_core_1.default {
|
|
|
615
621
|
if (!$dara.isNull(request.enableHeaders)) {
|
|
616
622
|
query["enableHeaders"] = request.enableHeaders;
|
|
617
623
|
}
|
|
624
|
+
if (!$dara.isNull(request.knowledgeScene)) {
|
|
625
|
+
query["knowledgeScene"] = request.knowledgeScene;
|
|
626
|
+
}
|
|
618
627
|
if (!$dara.isNull(request.metaExtractColumnsShrink)) {
|
|
619
628
|
query["metaExtractColumns"] = request.metaExtractColumnsShrink;
|
|
620
629
|
}
|
|
@@ -831,7 +840,7 @@ class Client extends openapi_core_1.default {
|
|
|
831
840
|
return await this.deleteAgentWithOptions(workspaceId, appCode, headers, runtime);
|
|
832
841
|
}
|
|
833
842
|
/**
|
|
834
|
-
*
|
|
843
|
+
* Deletes a specified category permanently.
|
|
835
844
|
*
|
|
836
845
|
* @param headers - map
|
|
837
846
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -855,7 +864,7 @@ class Client extends openapi_core_1.default {
|
|
|
855
864
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteCategoryResponse({}));
|
|
856
865
|
}
|
|
857
866
|
/**
|
|
858
|
-
*
|
|
867
|
+
* Deletes a specified category permanently.
|
|
859
868
|
* @returns DeleteCategoryResponse
|
|
860
869
|
*/
|
|
861
870
|
async deleteCategory(CategoryId, WorkspaceId) {
|
|
@@ -936,7 +945,7 @@ class Client extends openapi_core_1.default {
|
|
|
936
945
|
return await this.deleteChunkWithOptions(WorkspaceId, request, headers, runtime);
|
|
937
946
|
}
|
|
938
947
|
/**
|
|
939
|
-
*
|
|
948
|
+
* Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
940
949
|
*
|
|
941
950
|
* @param headers - map
|
|
942
951
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -960,7 +969,7 @@ class Client extends openapi_core_1.default {
|
|
|
960
969
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteFileResponse({}));
|
|
961
970
|
}
|
|
962
971
|
/**
|
|
963
|
-
*
|
|
972
|
+
* Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
964
973
|
* @returns DeleteFileResponse
|
|
965
974
|
*/
|
|
966
975
|
async deleteFile(FileId, WorkspaceId) {
|
|
@@ -1025,7 +1034,7 @@ class Client extends openapi_core_1.default {
|
|
|
1025
1034
|
return await this.deleteIndexWithOptions(WorkspaceId, request, headers, runtime);
|
|
1026
1035
|
}
|
|
1027
1036
|
/**
|
|
1028
|
-
* Deletes one or more documents from a specified unstructured knowledge base permanently.
|
|
1037
|
+
* Deletes one or more documents from a specified unstructured knowledge base permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
1029
1038
|
*
|
|
1030
1039
|
* @remarks
|
|
1031
1040
|
* 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.
|
|
@@ -1071,7 +1080,7 @@ class Client extends openapi_core_1.default {
|
|
|
1071
1080
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteIndexDocumentResponse({}));
|
|
1072
1081
|
}
|
|
1073
1082
|
/**
|
|
1074
|
-
* Deletes one or more documents from a specified unstructured knowledge base permanently.
|
|
1083
|
+
* Deletes one or more documents from a specified unstructured knowledge base permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
1075
1084
|
*
|
|
1076
1085
|
* @remarks
|
|
1077
1086
|
* 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.
|
|
@@ -1188,7 +1197,7 @@ class Client extends openapi_core_1.default {
|
|
|
1188
1197
|
return await this.deletePromptTemplateWithOptions(workspaceId, promptTemplateId, headers, runtime);
|
|
1189
1198
|
}
|
|
1190
1199
|
/**
|
|
1191
|
-
*
|
|
1200
|
+
* Obtains the basic information of a document, including the document name, type, and status.
|
|
1192
1201
|
*
|
|
1193
1202
|
* @remarks
|
|
1194
1203
|
* 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.
|
|
@@ -1218,7 +1227,7 @@ class Client extends openapi_core_1.default {
|
|
|
1218
1227
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeFileResponse({}));
|
|
1219
1228
|
}
|
|
1220
1229
|
/**
|
|
1221
|
-
*
|
|
1230
|
+
* Obtains the basic information of a document, including the document name, type, and status.
|
|
1222
1231
|
*
|
|
1223
1232
|
* @remarks
|
|
1224
1233
|
* 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.
|
|
@@ -1426,7 +1435,7 @@ class Client extends openapi_core_1.default {
|
|
|
1426
1435
|
return await this.getIndexJobStatusWithOptions(WorkspaceId, request, headers, runtime);
|
|
1427
1436
|
}
|
|
1428
1437
|
/**
|
|
1429
|
-
*
|
|
1438
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
1430
1439
|
*
|
|
1431
1440
|
* @param request - GetIndexMonitorRequest
|
|
1432
1441
|
* @param headers - map
|
|
@@ -1463,7 +1472,7 @@ class Client extends openapi_core_1.default {
|
|
|
1463
1472
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIndexMonitorResponse({}));
|
|
1464
1473
|
}
|
|
1465
1474
|
/**
|
|
1466
|
-
*
|
|
1475
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
1467
1476
|
*
|
|
1468
1477
|
* @param request - GetIndexMonitorRequest
|
|
1469
1478
|
* @returns GetIndexMonitorResponse
|
|
@@ -1705,7 +1714,7 @@ class Client extends openapi_core_1.default {
|
|
|
1705
1714
|
return await this.highCodeDeployWithOptions(workspaceId, request, headers, runtime);
|
|
1706
1715
|
}
|
|
1707
1716
|
/**
|
|
1708
|
-
*
|
|
1717
|
+
* Lists the details about the next or multiple categories in a specified workspace.
|
|
1709
1718
|
*
|
|
1710
1719
|
* @param request - ListCategoryRequest
|
|
1711
1720
|
* @param headers - map
|
|
@@ -1748,7 +1757,7 @@ class Client extends openapi_core_1.default {
|
|
|
1748
1757
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCategoryResponse({}));
|
|
1749
1758
|
}
|
|
1750
1759
|
/**
|
|
1751
|
-
*
|
|
1760
|
+
* Lists the details about the next or multiple categories in a specified workspace.
|
|
1752
1761
|
*
|
|
1753
1762
|
* @param request - ListCategoryRequest
|
|
1754
1763
|
* @returns ListCategoryResponse
|
|
@@ -2009,7 +2018,7 @@ class Client extends openapi_core_1.default {
|
|
|
2009
2018
|
return await this.listIndexFileDetailsWithOptions(WorkspaceId, request, headers, runtime);
|
|
2010
2019
|
}
|
|
2011
2020
|
/**
|
|
2012
|
-
* Lists knowledge bases in a specified workspace.
|
|
2021
|
+
* Lists the details about the next or multiple knowledge bases in a specified workspace.
|
|
2013
2022
|
*
|
|
2014
2023
|
* @remarks
|
|
2015
2024
|
* This interface is idempotent.
|
|
@@ -2049,7 +2058,7 @@ class Client extends openapi_core_1.default {
|
|
|
2049
2058
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListIndicesResponse({}));
|
|
2050
2059
|
}
|
|
2051
2060
|
/**
|
|
2052
|
-
* Lists knowledge bases in a specified workspace.
|
|
2061
|
+
* Lists the details about the next or multiple knowledge bases in a specified workspace.
|
|
2053
2062
|
*
|
|
2054
2063
|
* @remarks
|
|
2055
2064
|
* This interface is idempotent.
|
|
@@ -2357,7 +2366,7 @@ class Client extends openapi_core_1.default {
|
|
|
2357
2366
|
return await this.retrieveWithOptions(WorkspaceId, request, headers, runtime);
|
|
2358
2367
|
}
|
|
2359
2368
|
/**
|
|
2360
|
-
* Adds parsed documents to an unstructured knowledge base.
|
|
2369
|
+
* Adds parsed documents to an unstructured knowledge base. You cannot use the API to add knowledge to structured knowledge bases, see the Usage notes section of this topic.
|
|
2361
2370
|
*
|
|
2362
2371
|
* @remarks
|
|
2363
2372
|
* 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).
|
|
@@ -2426,7 +2435,7 @@ class Client extends openapi_core_1.default {
|
|
|
2426
2435
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SubmitIndexAddDocumentsJobResponse({}));
|
|
2427
2436
|
}
|
|
2428
2437
|
/**
|
|
2429
|
-
* Adds parsed documents to an unstructured knowledge base.
|
|
2438
|
+
* Adds parsed documents to an unstructured knowledge base. You cannot use the API to add knowledge to structured knowledge bases, see the Usage notes section of this topic.
|
|
2430
2439
|
*
|
|
2431
2440
|
* @remarks
|
|
2432
2441
|
* 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).
|
|
@@ -2698,7 +2707,7 @@ class Client extends openapi_core_1.default {
|
|
|
2698
2707
|
return await this.updateChunkWithOptions(WorkspaceId, request, headers, runtime);
|
|
2699
2708
|
}
|
|
2700
2709
|
/**
|
|
2701
|
-
*
|
|
2710
|
+
* Updates the tags of a specified document.
|
|
2702
2711
|
*
|
|
2703
2712
|
* @param tmpReq - UpdateFileTagRequest
|
|
2704
2713
|
* @param headers - map
|
|
@@ -2734,7 +2743,7 @@ class Client extends openapi_core_1.default {
|
|
|
2734
2743
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateFileTagResponse({}));
|
|
2735
2744
|
}
|
|
2736
2745
|
/**
|
|
2737
|
-
*
|
|
2746
|
+
* Updates the tags of a specified document.
|
|
2738
2747
|
*
|
|
2739
2748
|
* @param request - UpdateFileTagRequest
|
|
2740
2749
|
* @returns UpdateFileTagResponse
|
|
@@ -2745,7 +2754,7 @@ class Client extends openapi_core_1.default {
|
|
|
2745
2754
|
return await this.updateFileTagWithOptions(WorkspaceId, FileId, request, headers, runtime);
|
|
2746
2755
|
}
|
|
2747
2756
|
/**
|
|
2748
|
-
*
|
|
2757
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
2749
2758
|
*
|
|
2750
2759
|
* @param request - UpdateIndexRequest
|
|
2751
2760
|
* @param headers - map
|
|
@@ -2797,7 +2806,7 @@ class Client extends openapi_core_1.default {
|
|
|
2797
2806
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateIndexResponse({}));
|
|
2798
2807
|
}
|
|
2799
2808
|
/**
|
|
2800
|
-
*
|
|
2809
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
2801
2810
|
*
|
|
2802
2811
|
* @param request - UpdateIndexRequest
|
|
2803
2812
|
* @returns UpdateIndexResponse
|