@alicloud/bailian20231229 2.8.1 → 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 +25 -22
- package/dist/client.js.map +1 -1
- package/dist/models/CreateIndexRequest.d.ts +48 -0
- package/dist/models/CreateIndexRequest.js +2 -0
- package/dist/models/CreateIndexRequest.js.map +1 -1
- package/dist/models/CreateIndexShrinkRequest.d.ts +13 -0
- package/dist/models/CreateIndexShrinkRequest.js +2 -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 +26 -22
- package/src/models/CreateIndexRequest.ts +50 -0
- package/src/models/CreateIndexShrinkRequest.ts +15 -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,6 +603,9 @@ 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
|
}
|
|
@@ -837,7 +840,7 @@ class Client extends openapi_core_1.default {
|
|
|
837
840
|
return await this.deleteAgentWithOptions(workspaceId, appCode, headers, runtime);
|
|
838
841
|
}
|
|
839
842
|
/**
|
|
840
|
-
*
|
|
843
|
+
* Deletes a specified category permanently.
|
|
841
844
|
*
|
|
842
845
|
* @param headers - map
|
|
843
846
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -861,7 +864,7 @@ class Client extends openapi_core_1.default {
|
|
|
861
864
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteCategoryResponse({}));
|
|
862
865
|
}
|
|
863
866
|
/**
|
|
864
|
-
*
|
|
867
|
+
* Deletes a specified category permanently.
|
|
865
868
|
* @returns DeleteCategoryResponse
|
|
866
869
|
*/
|
|
867
870
|
async deleteCategory(CategoryId, WorkspaceId) {
|
|
@@ -942,7 +945,7 @@ class Client extends openapi_core_1.default {
|
|
|
942
945
|
return await this.deleteChunkWithOptions(WorkspaceId, request, headers, runtime);
|
|
943
946
|
}
|
|
944
947
|
/**
|
|
945
|
-
*
|
|
948
|
+
* Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
946
949
|
*
|
|
947
950
|
* @param headers - map
|
|
948
951
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -966,7 +969,7 @@ class Client extends openapi_core_1.default {
|
|
|
966
969
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteFileResponse({}));
|
|
967
970
|
}
|
|
968
971
|
/**
|
|
969
|
-
*
|
|
972
|
+
* Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
970
973
|
* @returns DeleteFileResponse
|
|
971
974
|
*/
|
|
972
975
|
async deleteFile(FileId, WorkspaceId) {
|
|
@@ -1031,7 +1034,7 @@ class Client extends openapi_core_1.default {
|
|
|
1031
1034
|
return await this.deleteIndexWithOptions(WorkspaceId, request, headers, runtime);
|
|
1032
1035
|
}
|
|
1033
1036
|
/**
|
|
1034
|
-
* 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.
|
|
1035
1038
|
*
|
|
1036
1039
|
* @remarks
|
|
1037
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.
|
|
@@ -1077,7 +1080,7 @@ class Client extends openapi_core_1.default {
|
|
|
1077
1080
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteIndexDocumentResponse({}));
|
|
1078
1081
|
}
|
|
1079
1082
|
/**
|
|
1080
|
-
* 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.
|
|
1081
1084
|
*
|
|
1082
1085
|
* @remarks
|
|
1083
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.
|
|
@@ -1194,7 +1197,7 @@ class Client extends openapi_core_1.default {
|
|
|
1194
1197
|
return await this.deletePromptTemplateWithOptions(workspaceId, promptTemplateId, headers, runtime);
|
|
1195
1198
|
}
|
|
1196
1199
|
/**
|
|
1197
|
-
*
|
|
1200
|
+
* Obtains the basic information of a document, including the document name, type, and status.
|
|
1198
1201
|
*
|
|
1199
1202
|
* @remarks
|
|
1200
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.
|
|
@@ -1224,7 +1227,7 @@ class Client extends openapi_core_1.default {
|
|
|
1224
1227
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeFileResponse({}));
|
|
1225
1228
|
}
|
|
1226
1229
|
/**
|
|
1227
|
-
*
|
|
1230
|
+
* Obtains the basic information of a document, including the document name, type, and status.
|
|
1228
1231
|
*
|
|
1229
1232
|
* @remarks
|
|
1230
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.
|
|
@@ -1432,7 +1435,7 @@ class Client extends openapi_core_1.default {
|
|
|
1432
1435
|
return await this.getIndexJobStatusWithOptions(WorkspaceId, request, headers, runtime);
|
|
1433
1436
|
}
|
|
1434
1437
|
/**
|
|
1435
|
-
*
|
|
1438
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
1436
1439
|
*
|
|
1437
1440
|
* @param request - GetIndexMonitorRequest
|
|
1438
1441
|
* @param headers - map
|
|
@@ -1469,7 +1472,7 @@ class Client extends openapi_core_1.default {
|
|
|
1469
1472
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIndexMonitorResponse({}));
|
|
1470
1473
|
}
|
|
1471
1474
|
/**
|
|
1472
|
-
*
|
|
1475
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
1473
1476
|
*
|
|
1474
1477
|
* @param request - GetIndexMonitorRequest
|
|
1475
1478
|
* @returns GetIndexMonitorResponse
|
|
@@ -1711,7 +1714,7 @@ class Client extends openapi_core_1.default {
|
|
|
1711
1714
|
return await this.highCodeDeployWithOptions(workspaceId, request, headers, runtime);
|
|
1712
1715
|
}
|
|
1713
1716
|
/**
|
|
1714
|
-
*
|
|
1717
|
+
* Lists the details about the next or multiple categories in a specified workspace.
|
|
1715
1718
|
*
|
|
1716
1719
|
* @param request - ListCategoryRequest
|
|
1717
1720
|
* @param headers - map
|
|
@@ -1754,7 +1757,7 @@ class Client extends openapi_core_1.default {
|
|
|
1754
1757
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCategoryResponse({}));
|
|
1755
1758
|
}
|
|
1756
1759
|
/**
|
|
1757
|
-
*
|
|
1760
|
+
* Lists the details about the next or multiple categories in a specified workspace.
|
|
1758
1761
|
*
|
|
1759
1762
|
* @param request - ListCategoryRequest
|
|
1760
1763
|
* @returns ListCategoryResponse
|
|
@@ -2015,7 +2018,7 @@ class Client extends openapi_core_1.default {
|
|
|
2015
2018
|
return await this.listIndexFileDetailsWithOptions(WorkspaceId, request, headers, runtime);
|
|
2016
2019
|
}
|
|
2017
2020
|
/**
|
|
2018
|
-
* Lists knowledge bases in a specified workspace.
|
|
2021
|
+
* Lists the details about the next or multiple knowledge bases in a specified workspace.
|
|
2019
2022
|
*
|
|
2020
2023
|
* @remarks
|
|
2021
2024
|
* This interface is idempotent.
|
|
@@ -2055,7 +2058,7 @@ class Client extends openapi_core_1.default {
|
|
|
2055
2058
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListIndicesResponse({}));
|
|
2056
2059
|
}
|
|
2057
2060
|
/**
|
|
2058
|
-
* Lists knowledge bases in a specified workspace.
|
|
2061
|
+
* Lists the details about the next or multiple knowledge bases in a specified workspace.
|
|
2059
2062
|
*
|
|
2060
2063
|
* @remarks
|
|
2061
2064
|
* This interface is idempotent.
|
|
@@ -2363,7 +2366,7 @@ class Client extends openapi_core_1.default {
|
|
|
2363
2366
|
return await this.retrieveWithOptions(WorkspaceId, request, headers, runtime);
|
|
2364
2367
|
}
|
|
2365
2368
|
/**
|
|
2366
|
-
* 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.
|
|
2367
2370
|
*
|
|
2368
2371
|
* @remarks
|
|
2369
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).
|
|
@@ -2432,7 +2435,7 @@ class Client extends openapi_core_1.default {
|
|
|
2432
2435
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SubmitIndexAddDocumentsJobResponse({}));
|
|
2433
2436
|
}
|
|
2434
2437
|
/**
|
|
2435
|
-
* 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.
|
|
2436
2439
|
*
|
|
2437
2440
|
* @remarks
|
|
2438
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).
|
|
@@ -2704,7 +2707,7 @@ class Client extends openapi_core_1.default {
|
|
|
2704
2707
|
return await this.updateChunkWithOptions(WorkspaceId, request, headers, runtime);
|
|
2705
2708
|
}
|
|
2706
2709
|
/**
|
|
2707
|
-
*
|
|
2710
|
+
* Updates the tags of a specified document.
|
|
2708
2711
|
*
|
|
2709
2712
|
* @param tmpReq - UpdateFileTagRequest
|
|
2710
2713
|
* @param headers - map
|
|
@@ -2740,7 +2743,7 @@ class Client extends openapi_core_1.default {
|
|
|
2740
2743
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateFileTagResponse({}));
|
|
2741
2744
|
}
|
|
2742
2745
|
/**
|
|
2743
|
-
*
|
|
2746
|
+
* Updates the tags of a specified document.
|
|
2744
2747
|
*
|
|
2745
2748
|
* @param request - UpdateFileTagRequest
|
|
2746
2749
|
* @returns UpdateFileTagResponse
|
|
@@ -2751,7 +2754,7 @@ class Client extends openapi_core_1.default {
|
|
|
2751
2754
|
return await this.updateFileTagWithOptions(WorkspaceId, FileId, request, headers, runtime);
|
|
2752
2755
|
}
|
|
2753
2756
|
/**
|
|
2754
|
-
*
|
|
2757
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
2755
2758
|
*
|
|
2756
2759
|
* @param request - UpdateIndexRequest
|
|
2757
2760
|
* @param headers - map
|
|
@@ -2803,7 +2806,7 @@ class Client extends openapi_core_1.default {
|
|
|
2803
2806
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateIndexResponse({}));
|
|
2804
2807
|
}
|
|
2805
2808
|
/**
|
|
2806
|
-
*
|
|
2809
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
2807
2810
|
*
|
|
2808
2811
|
* @param request - UpdateIndexRequest
|
|
2809
2812
|
* @returns UpdateIndexResponse
|