@alicloud/bailian20231229 2.8.1 → 2.8.3
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 +28 -28
- package/dist/client.js.map +1 -1
- package/dist/models/CreateIndexRequest.d.ts +37 -55
- package/dist/models/CreateIndexRequest.js +5 -43
- package/dist/models/CreateIndexRequest.js.map +1 -1
- package/dist/models/CreateIndexShrinkRequest.d.ts +13 -4
- package/dist/models/CreateIndexShrinkRequest.js +4 -2
- package/dist/models/CreateIndexShrinkRequest.js.map +1 -1
- package/dist/models/HighCodeDeployResponseBody.d.ts +1 -1
- package/dist/models/model.d.ts +0 -1
- package/dist/models/model.js +9 -11
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +30 -30
- package/src/models/CreateIndexRequest.ts +49 -96
- package/src/models/CreateIndexShrinkRequest.ts +17 -6
- package/src/models/HighCodeDeployResponseBody.ts +1 -1
- package/src/models/model.ts +0 -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.
|
|
@@ -530,9 +530,6 @@ class Client extends openapi_core_1.default {
|
|
|
530
530
|
if (!$dara.isNull(tmpReq.columns)) {
|
|
531
531
|
request.columnsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columns, "Columns", "json");
|
|
532
532
|
}
|
|
533
|
-
if (!$dara.isNull(tmpReq.dataSource)) {
|
|
534
|
-
request.dataSourceShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.dataSource, "DataSource", "json");
|
|
535
|
-
}
|
|
536
533
|
if (!$dara.isNull(tmpReq.documentIds)) {
|
|
537
534
|
request.documentIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.documentIds, "DocumentIds", "json");
|
|
538
535
|
}
|
|
@@ -555,9 +552,6 @@ class Client extends openapi_core_1.default {
|
|
|
555
552
|
if (!$dara.isNull(request.createIndexType)) {
|
|
556
553
|
query["CreateIndexType"] = request.createIndexType;
|
|
557
554
|
}
|
|
558
|
-
if (!$dara.isNull(request.dataSourceShrink)) {
|
|
559
|
-
query["DataSource"] = request.dataSourceShrink;
|
|
560
|
-
}
|
|
561
555
|
if (!$dara.isNull(request.description)) {
|
|
562
556
|
query["Description"] = request.description;
|
|
563
557
|
}
|
|
@@ -603,6 +597,9 @@ class Client extends openapi_core_1.default {
|
|
|
603
597
|
if (!$dara.isNull(request.tableIdsShrink)) {
|
|
604
598
|
query["TableIds"] = request.tableIdsShrink;
|
|
605
599
|
}
|
|
600
|
+
if (!$dara.isNull(request.channelType)) {
|
|
601
|
+
query["channelType"] = request.channelType;
|
|
602
|
+
}
|
|
606
603
|
if (!$dara.isNull(request.chunkMode)) {
|
|
607
604
|
query["chunkMode"] = request.chunkMode;
|
|
608
605
|
}
|
|
@@ -621,6 +618,9 @@ class Client extends openapi_core_1.default {
|
|
|
621
618
|
if (!$dara.isNull(request.knowledgeScene)) {
|
|
622
619
|
query["knowledgeScene"] = request.knowledgeScene;
|
|
623
620
|
}
|
|
621
|
+
if (!$dara.isNull(request.knowledgeType)) {
|
|
622
|
+
query["knowledgeType"] = request.knowledgeType;
|
|
623
|
+
}
|
|
624
624
|
if (!$dara.isNull(request.metaExtractColumnsShrink)) {
|
|
625
625
|
query["metaExtractColumns"] = request.metaExtractColumnsShrink;
|
|
626
626
|
}
|
|
@@ -837,7 +837,7 @@ class Client extends openapi_core_1.default {
|
|
|
837
837
|
return await this.deleteAgentWithOptions(workspaceId, appCode, headers, runtime);
|
|
838
838
|
}
|
|
839
839
|
/**
|
|
840
|
-
*
|
|
840
|
+
* Deletes a specified category permanently.
|
|
841
841
|
*
|
|
842
842
|
* @param headers - map
|
|
843
843
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -861,7 +861,7 @@ class Client extends openapi_core_1.default {
|
|
|
861
861
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteCategoryResponse({}));
|
|
862
862
|
}
|
|
863
863
|
/**
|
|
864
|
-
*
|
|
864
|
+
* Deletes a specified category permanently.
|
|
865
865
|
* @returns DeleteCategoryResponse
|
|
866
866
|
*/
|
|
867
867
|
async deleteCategory(CategoryId, WorkspaceId) {
|
|
@@ -942,7 +942,7 @@ class Client extends openapi_core_1.default {
|
|
|
942
942
|
return await this.deleteChunkWithOptions(WorkspaceId, request, headers, runtime);
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
|
-
*
|
|
945
|
+
* Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
946
946
|
*
|
|
947
947
|
* @param headers - map
|
|
948
948
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -966,7 +966,7 @@ class Client extends openapi_core_1.default {
|
|
|
966
966
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteFileResponse({}));
|
|
967
967
|
}
|
|
968
968
|
/**
|
|
969
|
-
*
|
|
969
|
+
* Deletes a specified unstructured document permanently. You cannot use the API to delete structured documents, see the Usage notes section of this topic.
|
|
970
970
|
* @returns DeleteFileResponse
|
|
971
971
|
*/
|
|
972
972
|
async deleteFile(FileId, WorkspaceId) {
|
|
@@ -1031,7 +1031,7 @@ class Client extends openapi_core_1.default {
|
|
|
1031
1031
|
return await this.deleteIndexWithOptions(WorkspaceId, request, headers, runtime);
|
|
1032
1032
|
}
|
|
1033
1033
|
/**
|
|
1034
|
-
* Deletes one or more documents from a specified unstructured knowledge base permanently.
|
|
1034
|
+
* 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
1035
|
*
|
|
1036
1036
|
* @remarks
|
|
1037
1037
|
* 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 +1077,7 @@ class Client extends openapi_core_1.default {
|
|
|
1077
1077
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteIndexDocumentResponse({}));
|
|
1078
1078
|
}
|
|
1079
1079
|
/**
|
|
1080
|
-
* Deletes one or more documents from a specified unstructured knowledge base permanently.
|
|
1080
|
+
* 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
1081
|
*
|
|
1082
1082
|
* @remarks
|
|
1083
1083
|
* 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 +1194,7 @@ class Client extends openapi_core_1.default {
|
|
|
1194
1194
|
return await this.deletePromptTemplateWithOptions(workspaceId, promptTemplateId, headers, runtime);
|
|
1195
1195
|
}
|
|
1196
1196
|
/**
|
|
1197
|
-
*
|
|
1197
|
+
* Obtains the basic information of a document, including the document name, type, and status.
|
|
1198
1198
|
*
|
|
1199
1199
|
* @remarks
|
|
1200
1200
|
* 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 +1224,7 @@ class Client extends openapi_core_1.default {
|
|
|
1224
1224
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeFileResponse({}));
|
|
1225
1225
|
}
|
|
1226
1226
|
/**
|
|
1227
|
-
*
|
|
1227
|
+
* Obtains the basic information of a document, including the document name, type, and status.
|
|
1228
1228
|
*
|
|
1229
1229
|
* @remarks
|
|
1230
1230
|
* 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 +1432,7 @@ class Client extends openapi_core_1.default {
|
|
|
1432
1432
|
return await this.getIndexJobStatusWithOptions(WorkspaceId, request, headers, runtime);
|
|
1433
1433
|
}
|
|
1434
1434
|
/**
|
|
1435
|
-
*
|
|
1435
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
1436
1436
|
*
|
|
1437
1437
|
* @param request - GetIndexMonitorRequest
|
|
1438
1438
|
* @param headers - map
|
|
@@ -1469,7 +1469,7 @@ class Client extends openapi_core_1.default {
|
|
|
1469
1469
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIndexMonitorResponse({}));
|
|
1470
1470
|
}
|
|
1471
1471
|
/**
|
|
1472
|
-
*
|
|
1472
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
1473
1473
|
*
|
|
1474
1474
|
* @param request - GetIndexMonitorRequest
|
|
1475
1475
|
* @returns GetIndexMonitorResponse
|
|
@@ -1711,7 +1711,7 @@ class Client extends openapi_core_1.default {
|
|
|
1711
1711
|
return await this.highCodeDeployWithOptions(workspaceId, request, headers, runtime);
|
|
1712
1712
|
}
|
|
1713
1713
|
/**
|
|
1714
|
-
*
|
|
1714
|
+
* Lists the details about the next or multiple categories in a specified workspace.
|
|
1715
1715
|
*
|
|
1716
1716
|
* @param request - ListCategoryRequest
|
|
1717
1717
|
* @param headers - map
|
|
@@ -1754,7 +1754,7 @@ class Client extends openapi_core_1.default {
|
|
|
1754
1754
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCategoryResponse({}));
|
|
1755
1755
|
}
|
|
1756
1756
|
/**
|
|
1757
|
-
*
|
|
1757
|
+
* Lists the details about the next or multiple categories in a specified workspace.
|
|
1758
1758
|
*
|
|
1759
1759
|
* @param request - ListCategoryRequest
|
|
1760
1760
|
* @returns ListCategoryResponse
|
|
@@ -2015,7 +2015,7 @@ class Client extends openapi_core_1.default {
|
|
|
2015
2015
|
return await this.listIndexFileDetailsWithOptions(WorkspaceId, request, headers, runtime);
|
|
2016
2016
|
}
|
|
2017
2017
|
/**
|
|
2018
|
-
* Lists knowledge bases in a specified workspace.
|
|
2018
|
+
* Lists the details about the next or multiple knowledge bases in a specified workspace.
|
|
2019
2019
|
*
|
|
2020
2020
|
* @remarks
|
|
2021
2021
|
* This interface is idempotent.
|
|
@@ -2055,7 +2055,7 @@ class Client extends openapi_core_1.default {
|
|
|
2055
2055
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListIndicesResponse({}));
|
|
2056
2056
|
}
|
|
2057
2057
|
/**
|
|
2058
|
-
* Lists knowledge bases in a specified workspace.
|
|
2058
|
+
* Lists the details about the next or multiple knowledge bases in a specified workspace.
|
|
2059
2059
|
*
|
|
2060
2060
|
* @remarks
|
|
2061
2061
|
* This interface is idempotent.
|
|
@@ -2363,7 +2363,7 @@ class Client extends openapi_core_1.default {
|
|
|
2363
2363
|
return await this.retrieveWithOptions(WorkspaceId, request, headers, runtime);
|
|
2364
2364
|
}
|
|
2365
2365
|
/**
|
|
2366
|
-
* Adds parsed documents to an unstructured knowledge base.
|
|
2366
|
+
* 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
2367
|
*
|
|
2368
2368
|
* @remarks
|
|
2369
2369
|
* 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 +2432,7 @@ class Client extends openapi_core_1.default {
|
|
|
2432
2432
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SubmitIndexAddDocumentsJobResponse({}));
|
|
2433
2433
|
}
|
|
2434
2434
|
/**
|
|
2435
|
-
* Adds parsed documents to an unstructured knowledge base.
|
|
2435
|
+
* 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
2436
|
*
|
|
2437
2437
|
* @remarks
|
|
2438
2438
|
* 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 +2704,7 @@ class Client extends openapi_core_1.default {
|
|
|
2704
2704
|
return await this.updateChunkWithOptions(WorkspaceId, request, headers, runtime);
|
|
2705
2705
|
}
|
|
2706
2706
|
/**
|
|
2707
|
-
*
|
|
2707
|
+
* Updates the tags of a specified document.
|
|
2708
2708
|
*
|
|
2709
2709
|
* @param tmpReq - UpdateFileTagRequest
|
|
2710
2710
|
* @param headers - map
|
|
@@ -2740,7 +2740,7 @@ class Client extends openapi_core_1.default {
|
|
|
2740
2740
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateFileTagResponse({}));
|
|
2741
2741
|
}
|
|
2742
2742
|
/**
|
|
2743
|
-
*
|
|
2743
|
+
* Updates the tags of a specified document.
|
|
2744
2744
|
*
|
|
2745
2745
|
* @param request - UpdateFileTagRequest
|
|
2746
2746
|
* @returns UpdateFileTagResponse
|
|
@@ -2751,7 +2751,7 @@ class Client extends openapi_core_1.default {
|
|
|
2751
2751
|
return await this.updateFileTagWithOptions(WorkspaceId, FileId, request, headers, runtime);
|
|
2752
2752
|
}
|
|
2753
2753
|
/**
|
|
2754
|
-
*
|
|
2754
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
2755
2755
|
*
|
|
2756
2756
|
* @param request - UpdateIndexRequest
|
|
2757
2757
|
* @param headers - map
|
|
@@ -2803,7 +2803,7 @@ class Client extends openapi_core_1.default {
|
|
|
2803
2803
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateIndexResponse({}));
|
|
2804
2804
|
}
|
|
2805
2805
|
/**
|
|
2806
|
-
*
|
|
2806
|
+
* \\<props="intl">Currently, this API is not supported.\\
|
|
2807
2807
|
*
|
|
2808
2808
|
* @param request - UpdateIndexRequest
|
|
2809
2809
|
* @returns UpdateIndexResponse
|