@alicloud/bailian20231229 2.5.0 → 2.6.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 +102 -20
- package/dist/client.js +129 -20
- package/dist/client.js.map +1 -1
- package/dist/models/ApplyTempStorageLeaseRequest.d.ts +29 -0
- package/dist/models/ApplyTempStorageLeaseRequest.js +60 -0
- package/dist/models/ApplyTempStorageLeaseRequest.js.map +1 -0
- package/dist/models/ApplyTempStorageLeaseResponse.d.ts +19 -0
- package/dist/models/ApplyTempStorageLeaseResponse.js +69 -0
- package/dist/models/ApplyTempStorageLeaseResponse.js.map +1 -0
- package/dist/models/ApplyTempStorageLeaseResponseBody.d.ts +80 -0
- package/dist/models/ApplyTempStorageLeaseResponseBody.js +118 -0
- package/dist/models/ApplyTempStorageLeaseResponseBody.js.map +1 -0
- package/dist/models/ChangeParseSettingRequest.d.ts +27 -0
- package/dist/models/ChangeParseSettingRequest.js.map +1 -1
- package/dist/models/ChangeParseSettingResponseBody.d.ts +25 -0
- package/dist/models/ChangeParseSettingResponseBody.js.map +1 -1
- package/dist/models/ChangeParseSettingShrinkRequest.d.ts +15 -0
- package/dist/models/ChangeParseSettingShrinkRequest.js.map +1 -1
- package/dist/models/CreateIndexRequest.d.ts +147 -44
- package/dist/models/CreateIndexRequest.js.map +1 -1
- package/dist/models/CreateIndexResponseBody.d.ts +5 -5
- package/dist/models/CreateIndexShrinkRequest.d.ts +81 -44
- package/dist/models/CreateIndexShrinkRequest.js.map +1 -1
- package/dist/models/DeleteChunkRequest.d.ts +4 -0
- package/dist/models/DeleteChunkRequest.js.map +1 -1
- package/dist/models/DeleteChunkResponseBody.d.ts +19 -1
- package/dist/models/DeleteChunkResponseBody.js.map +1 -1
- package/dist/models/DeleteChunkShrinkRequest.d.ts +4 -0
- package/dist/models/DeleteChunkShrinkRequest.js.map +1 -1
- package/dist/models/GetAvailableParserTypesRequest.d.ts +2 -0
- package/dist/models/GetAvailableParserTypesRequest.js.map +1 -1
- package/dist/models/GetAvailableParserTypesResponseBody.d.ts +41 -0
- package/dist/models/GetAvailableParserTypesResponseBody.js.map +1 -1
- package/dist/models/GetParseSettingsRequest.d.ts +3 -0
- package/dist/models/GetParseSettingsRequest.js.map +1 -1
- package/dist/models/GetParseSettingsResponseBody.d.ts +58 -0
- package/dist/models/GetParseSettingsResponseBody.js.map +1 -1
- package/dist/models/ListFileRequest.d.ts +2 -0
- package/dist/models/ListFileRequest.js.map +1 -1
- package/dist/models/ListFileResponseBody.d.ts +11 -0
- package/dist/models/ListFileResponseBody.js.map +1 -1
- package/dist/models/ListIndexFileDetailsResponseBody.d.ts +72 -0
- package/dist/models/ListIndexFileDetailsResponseBody.js.map +1 -1
- package/dist/models/UpdateChunkRequest.d.ts +19 -0
- package/dist/models/UpdateChunkRequest.js.map +1 -1
- package/dist/models/UpdateChunkResponseBody.d.ts +19 -1
- package/dist/models/UpdateChunkResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +15 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +133 -20
- package/src/models/ApplyTempStorageLeaseRequest.ts +44 -0
- package/src/models/ApplyTempStorageLeaseResponse.ts +40 -0
- package/src/models/ApplyTempStorageLeaseResponseBody.ts +135 -0
- package/src/models/ChangeParseSettingRequest.ts +27 -0
- package/src/models/ChangeParseSettingResponseBody.ts +25 -0
- package/src/models/ChangeParseSettingShrinkRequest.ts +15 -0
- package/src/models/CreateIndexRequest.ts +147 -44
- package/src/models/CreateIndexResponseBody.ts +5 -5
- package/src/models/CreateIndexShrinkRequest.ts +81 -44
- package/src/models/DeleteChunkRequest.ts +4 -0
- package/src/models/DeleteChunkResponseBody.ts +19 -1
- package/src/models/DeleteChunkShrinkRequest.ts +4 -0
- package/src/models/GetAvailableParserTypesRequest.ts +2 -0
- package/src/models/GetAvailableParserTypesResponseBody.ts +41 -0
- package/src/models/GetParseSettingsRequest.ts +3 -0
- package/src/models/GetParseSettingsResponseBody.ts +58 -0
- package/src/models/ListFileRequest.ts +2 -0
- package/src/models/ListFileResponseBody.ts +11 -0
- package/src/models/ListIndexFileDetailsResponseBody.ts +72 -0
- package/src/models/UpdateChunkRequest.ts +19 -0
- package/src/models/UpdateChunkResponseBody.ts +19 -1
- package/src/models/model.ts +5 -0
package/dist/client.d.ts
CHANGED
|
@@ -107,7 +107,25 @@ export default class Client extends OpenApi {
|
|
|
107
107
|
*/
|
|
108
108
|
applyFileUploadLease(CategoryId: string, WorkspaceId: string, request: $_model.ApplyFileUploadLeaseRequest): Promise<$_model.ApplyFileUploadLeaseResponse>;
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* 申请临时文件存储上传许可
|
|
111
|
+
*
|
|
112
|
+
* @param request - ApplyTempStorageLeaseRequest
|
|
113
|
+
* @param headers - map
|
|
114
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
115
|
+
* @returns ApplyTempStorageLeaseResponse
|
|
116
|
+
*/
|
|
117
|
+
applyTempStorageLeaseWithOptions(WorkspaceId: string, request: $_model.ApplyTempStorageLeaseRequest, headers: {
|
|
118
|
+
[key: string]: string;
|
|
119
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ApplyTempStorageLeaseResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* 申请临时文件存储上传许可
|
|
122
|
+
*
|
|
123
|
+
* @param request - ApplyTempStorageLeaseRequest
|
|
124
|
+
* @returns ApplyTempStorageLeaseResponse
|
|
125
|
+
*/
|
|
126
|
+
applyTempStorageLease(WorkspaceId: string, request: $_model.ApplyTempStorageLeaseRequest): Promise<$_model.ApplyTempStorageLeaseResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Configure the parsing method for a specific file type. For example, use LLM parsing for .pdf files, or use Qwen VL parsing for .jpg files.
|
|
111
129
|
*
|
|
112
130
|
* @param tmpReq - ChangeParseSettingRequest
|
|
113
131
|
* @param headers - map
|
|
@@ -118,7 +136,7 @@ export default class Client extends OpenApi {
|
|
|
118
136
|
[key: string]: string;
|
|
119
137
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ChangeParseSettingResponse>;
|
|
120
138
|
/**
|
|
121
|
-
*
|
|
139
|
+
* Configure the parsing method for a specific file type. For example, use LLM parsing for .pdf files, or use Qwen VL parsing for .jpg files.
|
|
122
140
|
*
|
|
123
141
|
* @param request - ChangeParseSettingRequest
|
|
124
142
|
* @returns ChangeParseSettingResponse
|
|
@@ -143,12 +161,17 @@ export default class Client extends OpenApi {
|
|
|
143
161
|
*/
|
|
144
162
|
createAndPulishAgent(workspaceId: string, request: $_model.CreateAndPulishAgentRequest): Promise<$_model.CreateAndPulishAgentResponse>;
|
|
145
163
|
/**
|
|
146
|
-
*
|
|
164
|
+
* Create a knowledge base of the document search type.
|
|
147
165
|
*
|
|
148
166
|
* @remarks
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
167
|
+
* **Limits**: This operation can create only knowledge base of the document search type. Data query and image Q\\&A types are not supported. Use the console instead.
|
|
168
|
+
* * **Required permissions**
|
|
169
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:CreateIndex permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
170
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
171
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
172
|
+
* * **What to do next**: This operation only initializes knowledge base creation job. After that, call **SubmitIndexJob** to complete the creation. Otherwise, you will get an empty knowledge base. For more information about the sample code, see [Knowledge base API guide](https://help.aliyun.com/document_detail/2852772.html).
|
|
173
|
+
* * **Idempotence**: This operation is not idempotent. If you call the operation for multiple times, you may create several knowledge bases with the same name. We recommend following a "query first, then create" logic.
|
|
174
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
152
175
|
*
|
|
153
176
|
* @param tmpReq - CreateIndexRequest
|
|
154
177
|
* @param headers - map
|
|
@@ -159,12 +182,17 @@ export default class Client extends OpenApi {
|
|
|
159
182
|
[key: string]: string;
|
|
160
183
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateIndexResponse>;
|
|
161
184
|
/**
|
|
162
|
-
*
|
|
185
|
+
* Create a knowledge base of the document search type.
|
|
163
186
|
*
|
|
164
187
|
* @remarks
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
188
|
+
* **Limits**: This operation can create only knowledge base of the document search type. Data query and image Q\\&A types are not supported. Use the console instead.
|
|
189
|
+
* * **Required permissions**
|
|
190
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:CreateIndex permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
191
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
192
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
193
|
+
* * **What to do next**: This operation only initializes knowledge base creation job. After that, call **SubmitIndexJob** to complete the creation. Otherwise, you will get an empty knowledge base. For more information about the sample code, see [Knowledge base API guide](https://help.aliyun.com/document_detail/2852772.html).
|
|
194
|
+
* * **Idempotence**: This operation is not idempotent. If you call the operation for multiple times, you may create several knowledge bases with the same name. We recommend following a "query first, then create" logic.
|
|
195
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
168
196
|
*
|
|
169
197
|
* @param request - CreateIndexRequest
|
|
170
198
|
* @returns CreateIndexResponse
|
|
@@ -255,7 +283,18 @@ export default class Client extends OpenApi {
|
|
|
255
283
|
*/
|
|
256
284
|
deleteCategory(CategoryId: string, WorkspaceId: string): Promise<$_model.DeleteCategoryResponse>;
|
|
257
285
|
/**
|
|
258
|
-
*
|
|
286
|
+
* Deletes a specified text chunk from a knowledge base. The deleted chunk cannot be retrieved or recalled.
|
|
287
|
+
*
|
|
288
|
+
* @remarks
|
|
289
|
+
* *
|
|
290
|
+
* **Warning** After a text chunk is deleted, it cannot be restored. Proceed with caution.
|
|
291
|
+
* * **Required permissions**:
|
|
292
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:DeleteChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
293
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
294
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
295
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
296
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been deleted, the interface returns a success.
|
|
297
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
259
298
|
*
|
|
260
299
|
* @param tmpReq - DeleteChunkRequest
|
|
261
300
|
* @param headers - map
|
|
@@ -266,7 +305,18 @@ export default class Client extends OpenApi {
|
|
|
266
305
|
[key: string]: string;
|
|
267
306
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChunkResponse>;
|
|
268
307
|
/**
|
|
269
|
-
*
|
|
308
|
+
* Deletes a specified text chunk from a knowledge base. The deleted chunk cannot be retrieved or recalled.
|
|
309
|
+
*
|
|
310
|
+
* @remarks
|
|
311
|
+
* *
|
|
312
|
+
* **Warning** After a text chunk is deleted, it cannot be restored. Proceed with caution.
|
|
313
|
+
* * **Required permissions**:
|
|
314
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:DeleteChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
315
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
316
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
317
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
318
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been deleted, the interface returns a success.
|
|
319
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
270
320
|
*
|
|
271
321
|
* @param request - DeleteChunkRequest
|
|
272
322
|
* @returns DeleteChunkResponse
|
|
@@ -460,7 +510,7 @@ export default class Client extends OpenApi {
|
|
|
460
510
|
*/
|
|
461
511
|
getAlipayUrl(request: $_model.GetAlipayUrlRequest): Promise<$_model.GetAlipayUrlResponse>;
|
|
462
512
|
/**
|
|
463
|
-
*
|
|
513
|
+
* Lists all supported parser types based on the input file type (file extension).
|
|
464
514
|
*
|
|
465
515
|
* @param request - GetAvailableParserTypesRequest
|
|
466
516
|
* @param headers - map
|
|
@@ -471,7 +521,7 @@ export default class Client extends OpenApi {
|
|
|
471
521
|
[key: string]: string;
|
|
472
522
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetAvailableParserTypesResponse>;
|
|
473
523
|
/**
|
|
474
|
-
*
|
|
524
|
+
* Lists all supported parser types based on the input file type (file extension).
|
|
475
525
|
*
|
|
476
526
|
* @param request - GetAvailableParserTypesRequest
|
|
477
527
|
* @returns GetAvailableParserTypesResponse
|
|
@@ -536,7 +586,7 @@ export default class Client extends OpenApi {
|
|
|
536
586
|
*/
|
|
537
587
|
getMemoryNode(workspaceId: string, memoryId: string, memoryNodeId: string): Promise<$_model.GetMemoryNodeResponse>;
|
|
538
588
|
/**
|
|
539
|
-
*
|
|
589
|
+
* Queries the data parsing settings in a specified category.
|
|
540
590
|
*
|
|
541
591
|
* @param request - GetParseSettingsRequest
|
|
542
592
|
* @param headers - map
|
|
@@ -547,7 +597,7 @@ export default class Client extends OpenApi {
|
|
|
547
597
|
[key: string]: string;
|
|
548
598
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetParseSettingsResponse>;
|
|
549
599
|
/**
|
|
550
|
-
*
|
|
600
|
+
* Queries the data parsing settings in a specified category.
|
|
551
601
|
*
|
|
552
602
|
* @param request - GetParseSettingsRequest
|
|
553
603
|
* @returns GetParseSettingsResponse
|
|
@@ -646,7 +696,13 @@ export default class Client extends OpenApi {
|
|
|
646
696
|
*/
|
|
647
697
|
listChunks(WorkspaceId: string, request: $_model.ListChunksRequest): Promise<$_model.ListChunksResponse>;
|
|
648
698
|
/**
|
|
649
|
-
*
|
|
699
|
+
* Queries the details of one or more documents in a specified category.
|
|
700
|
+
*
|
|
701
|
+
* @remarks
|
|
702
|
+
* If you are using a RAM user, you must first obtain the OpenAPI management permissions (namely sfm:ListFile) of Model Studio. For more information, see [Grant OpenAPI permissions to a RAM user](https://help.aliyun.com/document_detail/2848578.html). If you are using the Alibaba Cloud account, you do not need permissions. We recommend that you use [the latest version of the SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
|
|
703
|
+
* * During a paged query, set `MaxResults` to specify the maximum number of entries to return. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you query subsequent pages, set the `NextToken` parameter to the `NextToken` obtained in the last returned result. You can also set the `MaxResults` parameter to limit the number of entries to be returned. If no `NextToken` is returned, the result is completely returned and no more requests are required.
|
|
704
|
+
* * This operation is idempotent.
|
|
705
|
+
* **Throttling:** Throttling will be triggered if you call this operation frequently. Do not exceed 5 times per second. If throttling is triggered, try again later.
|
|
650
706
|
*
|
|
651
707
|
* @param request - ListFileRequest
|
|
652
708
|
* @param headers - map
|
|
@@ -657,7 +713,13 @@ export default class Client extends OpenApi {
|
|
|
657
713
|
[key: string]: string;
|
|
658
714
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListFileResponse>;
|
|
659
715
|
/**
|
|
660
|
-
*
|
|
716
|
+
* Queries the details of one or more documents in a specified category.
|
|
717
|
+
*
|
|
718
|
+
* @remarks
|
|
719
|
+
* If you are using a RAM user, you must first obtain the OpenAPI management permissions (namely sfm:ListFile) of Model Studio. For more information, see [Grant OpenAPI permissions to a RAM user](https://help.aliyun.com/document_detail/2848578.html). If you are using the Alibaba Cloud account, you do not need permissions. We recommend that you use [the latest version of the SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
|
|
720
|
+
* * During a paged query, set `MaxResults` to specify the maximum number of entries to return. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you query subsequent pages, set the `NextToken` parameter to the `NextToken` obtained in the last returned result. You can also set the `MaxResults` parameter to limit the number of entries to be returned. If no `NextToken` is returned, the result is completely returned and no more requests are required.
|
|
721
|
+
* * This operation is idempotent.
|
|
722
|
+
* **Throttling:** Throttling will be triggered if you call this operation frequently. Do not exceed 5 times per second. If throttling is triggered, try again later.
|
|
661
723
|
*
|
|
662
724
|
* @param request - ListFileRequest
|
|
663
725
|
* @returns ListFileResponse
|
|
@@ -928,7 +990,17 @@ export default class Client extends OpenApi {
|
|
|
928
990
|
*/
|
|
929
991
|
updateAndPublishAgentSelective(workspaceId: string, appCode: string, request: $_model.UpdateAndPublishAgentSelectiveRequest): Promise<$_model.UpdateAndPublishAgentSelectiveResponse>;
|
|
930
992
|
/**
|
|
931
|
-
*
|
|
993
|
+
* Modifies the content and title of a specified text chunk in the knowledge base, and sets whether the chunk participates in knowledge base retrieval.
|
|
994
|
+
*
|
|
995
|
+
* @remarks
|
|
996
|
+
* **Limits**: This operation supports only knowledge base of the document search type. Data query and image Q\\&A types are not supported.
|
|
997
|
+
* * **Required permissions**:
|
|
998
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:UpdateChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
999
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
1000
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
1001
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
1002
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been updated, the interface returns a success.
|
|
1003
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
932
1004
|
*
|
|
933
1005
|
* @param request - UpdateChunkRequest
|
|
934
1006
|
* @param headers - map
|
|
@@ -939,7 +1011,17 @@ export default class Client extends OpenApi {
|
|
|
939
1011
|
[key: string]: string;
|
|
940
1012
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateChunkResponse>;
|
|
941
1013
|
/**
|
|
942
|
-
*
|
|
1014
|
+
* Modifies the content and title of a specified text chunk in the knowledge base, and sets whether the chunk participates in knowledge base retrieval.
|
|
1015
|
+
*
|
|
1016
|
+
* @remarks
|
|
1017
|
+
* **Limits**: This operation supports only knowledge base of the document search type. Data query and image Q\\&A types are not supported.
|
|
1018
|
+
* * **Required permissions**:
|
|
1019
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:UpdateChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
1020
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
1021
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
1022
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
1023
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been updated, the interface returns a success.
|
|
1024
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
943
1025
|
*
|
|
944
1026
|
* @param request - UpdateChunkRequest
|
|
945
1027
|
* @returns UpdateChunkResponse
|
package/dist/client.js
CHANGED
|
@@ -320,7 +320,52 @@ class Client extends openapi_core_1.default {
|
|
|
320
320
|
return await this.applyFileUploadLeaseWithOptions(CategoryId, WorkspaceId, request, headers, runtime);
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
|
-
*
|
|
323
|
+
* 申请临时文件存储上传许可
|
|
324
|
+
*
|
|
325
|
+
* @param request - ApplyTempStorageLeaseRequest
|
|
326
|
+
* @param headers - map
|
|
327
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
328
|
+
* @returns ApplyTempStorageLeaseResponse
|
|
329
|
+
*/
|
|
330
|
+
async applyTempStorageLeaseWithOptions(WorkspaceId, request, headers, runtime) {
|
|
331
|
+
request.validate();
|
|
332
|
+
let body = {};
|
|
333
|
+
if (!$dara.isNull(request.fileName)) {
|
|
334
|
+
body["FileName"] = request.fileName;
|
|
335
|
+
}
|
|
336
|
+
if (!$dara.isNull(request.sizeInBytes)) {
|
|
337
|
+
body["SizeInBytes"] = request.sizeInBytes;
|
|
338
|
+
}
|
|
339
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
340
|
+
headers: headers,
|
|
341
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
342
|
+
});
|
|
343
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
344
|
+
action: "ApplyTempStorageLease",
|
|
345
|
+
version: "2023-12-29",
|
|
346
|
+
protocol: "HTTPS",
|
|
347
|
+
pathname: `/${$dara.URL.percentEncode(WorkspaceId)}/datacenter`,
|
|
348
|
+
method: "POST",
|
|
349
|
+
authType: "AK",
|
|
350
|
+
style: "ROA",
|
|
351
|
+
reqBodyType: "formData",
|
|
352
|
+
bodyType: "json",
|
|
353
|
+
});
|
|
354
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ApplyTempStorageLeaseResponse({}));
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* 申请临时文件存储上传许可
|
|
358
|
+
*
|
|
359
|
+
* @param request - ApplyTempStorageLeaseRequest
|
|
360
|
+
* @returns ApplyTempStorageLeaseResponse
|
|
361
|
+
*/
|
|
362
|
+
async applyTempStorageLease(WorkspaceId, request) {
|
|
363
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
364
|
+
let headers = {};
|
|
365
|
+
return await this.applyTempStorageLeaseWithOptions(WorkspaceId, request, headers, runtime);
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Configure the parsing method for a specific file type. For example, use LLM parsing for .pdf files, or use Qwen VL parsing for .jpg files.
|
|
324
369
|
*
|
|
325
370
|
* @param tmpReq - ChangeParseSettingRequest
|
|
326
371
|
* @param headers - map
|
|
@@ -365,7 +410,7 @@ class Client extends openapi_core_1.default {
|
|
|
365
410
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ChangeParseSettingResponse({}));
|
|
366
411
|
}
|
|
367
412
|
/**
|
|
368
|
-
*
|
|
413
|
+
* Configure the parsing method for a specific file type. For example, use LLM parsing for .pdf files, or use Qwen VL parsing for .jpg files.
|
|
369
414
|
*
|
|
370
415
|
* @param request - ChangeParseSettingRequest
|
|
371
416
|
* @returns ChangeParseSettingResponse
|
|
@@ -438,12 +483,17 @@ class Client extends openapi_core_1.default {
|
|
|
438
483
|
return await this.createAndPulishAgentWithOptions(workspaceId, request, headers, runtime);
|
|
439
484
|
}
|
|
440
485
|
/**
|
|
441
|
-
*
|
|
486
|
+
* Create a knowledge base of the document search type.
|
|
442
487
|
*
|
|
443
488
|
* @remarks
|
|
444
|
-
*
|
|
445
|
-
*
|
|
446
|
-
*
|
|
489
|
+
* **Limits**: This operation can create only knowledge base of the document search type. Data query and image Q\\&A types are not supported. Use the console instead.
|
|
490
|
+
* * **Required permissions**
|
|
491
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:CreateIndex permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
492
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
493
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
494
|
+
* * **What to do next**: This operation only initializes knowledge base creation job. After that, call **SubmitIndexJob** to complete the creation. Otherwise, you will get an empty knowledge base. For more information about the sample code, see [Knowledge base API guide](https://help.aliyun.com/document_detail/2852772.html).
|
|
495
|
+
* * **Idempotence**: This operation is not idempotent. If you call the operation for multiple times, you may create several knowledge bases with the same name. We recommend following a "query first, then create" logic.
|
|
496
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
447
497
|
*
|
|
448
498
|
* @param tmpReq - CreateIndexRequest
|
|
449
499
|
* @param headers - map
|
|
@@ -560,12 +610,17 @@ class Client extends openapi_core_1.default {
|
|
|
560
610
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateIndexResponse({}));
|
|
561
611
|
}
|
|
562
612
|
/**
|
|
563
|
-
*
|
|
613
|
+
* Create a knowledge base of the document search type.
|
|
564
614
|
*
|
|
565
615
|
* @remarks
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
*
|
|
616
|
+
* **Limits**: This operation can create only knowledge base of the document search type. Data query and image Q\\&A types are not supported. Use the console instead.
|
|
617
|
+
* * **Required permissions**
|
|
618
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:CreateIndex permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
619
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
620
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
621
|
+
* * **What to do next**: This operation only initializes knowledge base creation job. After that, call **SubmitIndexJob** to complete the creation. Otherwise, you will get an empty knowledge base. For more information about the sample code, see [Knowledge base API guide](https://help.aliyun.com/document_detail/2852772.html).
|
|
622
|
+
* * **Idempotence**: This operation is not idempotent. If you call the operation for multiple times, you may create several knowledge bases with the same name. We recommend following a "query first, then create" logic.
|
|
623
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
569
624
|
*
|
|
570
625
|
* @param request - CreateIndexRequest
|
|
571
626
|
* @returns CreateIndexResponse
|
|
@@ -771,7 +826,18 @@ class Client extends openapi_core_1.default {
|
|
|
771
826
|
return await this.deleteCategoryWithOptions(CategoryId, WorkspaceId, headers, runtime);
|
|
772
827
|
}
|
|
773
828
|
/**
|
|
774
|
-
*
|
|
829
|
+
* Deletes a specified text chunk from a knowledge base. The deleted chunk cannot be retrieved or recalled.
|
|
830
|
+
*
|
|
831
|
+
* @remarks
|
|
832
|
+
* *
|
|
833
|
+
* **Warning** After a text chunk is deleted, it cannot be restored. Proceed with caution.
|
|
834
|
+
* * **Required permissions**:
|
|
835
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:DeleteChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
836
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
837
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
838
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
839
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been deleted, the interface returns a success.
|
|
840
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
775
841
|
*
|
|
776
842
|
* @param tmpReq - DeleteChunkRequest
|
|
777
843
|
* @param headers - map
|
|
@@ -810,7 +876,18 @@ class Client extends openapi_core_1.default {
|
|
|
810
876
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChunkResponse({}));
|
|
811
877
|
}
|
|
812
878
|
/**
|
|
813
|
-
*
|
|
879
|
+
* Deletes a specified text chunk from a knowledge base. The deleted chunk cannot be retrieved or recalled.
|
|
880
|
+
*
|
|
881
|
+
* @remarks
|
|
882
|
+
* *
|
|
883
|
+
* **Warning** After a text chunk is deleted, it cannot be restored. Proceed with caution.
|
|
884
|
+
* * **Required permissions**:
|
|
885
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:DeleteChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
886
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
887
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
888
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
889
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been deleted, the interface returns a success.
|
|
890
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
814
891
|
*
|
|
815
892
|
* @param request - DeleteChunkRequest
|
|
816
893
|
* @returns DeleteChunkResponse
|
|
@@ -1208,7 +1285,7 @@ class Client extends openapi_core_1.default {
|
|
|
1208
1285
|
return await this.getAlipayUrlWithOptions(request, headers, runtime);
|
|
1209
1286
|
}
|
|
1210
1287
|
/**
|
|
1211
|
-
*
|
|
1288
|
+
* Lists all supported parser types based on the input file type (file extension).
|
|
1212
1289
|
*
|
|
1213
1290
|
* @param request - GetAvailableParserTypesRequest
|
|
1214
1291
|
* @param headers - map
|
|
@@ -1239,7 +1316,7 @@ class Client extends openapi_core_1.default {
|
|
|
1239
1316
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAvailableParserTypesResponse({}));
|
|
1240
1317
|
}
|
|
1241
1318
|
/**
|
|
1242
|
-
*
|
|
1319
|
+
* Lists all supported parser types based on the input file type (file extension).
|
|
1243
1320
|
*
|
|
1244
1321
|
* @param request - GetAvailableParserTypesRequest
|
|
1245
1322
|
* @returns GetAvailableParserTypesResponse
|
|
@@ -1377,7 +1454,7 @@ class Client extends openapi_core_1.default {
|
|
|
1377
1454
|
return await this.getMemoryNodeWithOptions(workspaceId, memoryId, memoryNodeId, headers, runtime);
|
|
1378
1455
|
}
|
|
1379
1456
|
/**
|
|
1380
|
-
*
|
|
1457
|
+
* Queries the data parsing settings in a specified category.
|
|
1381
1458
|
*
|
|
1382
1459
|
* @param request - GetParseSettingsRequest
|
|
1383
1460
|
* @param headers - map
|
|
@@ -1408,7 +1485,7 @@ class Client extends openapi_core_1.default {
|
|
|
1408
1485
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetParseSettingsResponse({}));
|
|
1409
1486
|
}
|
|
1410
1487
|
/**
|
|
1411
|
-
*
|
|
1488
|
+
* Queries the data parsing settings in a specified category.
|
|
1412
1489
|
*
|
|
1413
1490
|
* @param request - GetParseSettingsRequest
|
|
1414
1491
|
* @returns GetParseSettingsResponse
|
|
@@ -1661,7 +1738,13 @@ class Client extends openapi_core_1.default {
|
|
|
1661
1738
|
return await this.listChunksWithOptions(WorkspaceId, request, headers, runtime);
|
|
1662
1739
|
}
|
|
1663
1740
|
/**
|
|
1664
|
-
*
|
|
1741
|
+
* Queries the details of one or more documents in a specified category.
|
|
1742
|
+
*
|
|
1743
|
+
* @remarks
|
|
1744
|
+
* If you are using a RAM user, you must first obtain the OpenAPI management permissions (namely sfm:ListFile) of Model Studio. For more information, see [Grant OpenAPI permissions to a RAM user](https://help.aliyun.com/document_detail/2848578.html). If you are using the Alibaba Cloud account, you do not need permissions. We recommend that you use [the latest version of the SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
|
|
1745
|
+
* * During a paged query, set `MaxResults` to specify the maximum number of entries to return. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you query subsequent pages, set the `NextToken` parameter to the `NextToken` obtained in the last returned result. You can also set the `MaxResults` parameter to limit the number of entries to be returned. If no `NextToken` is returned, the result is completely returned and no more requests are required.
|
|
1746
|
+
* * This operation is idempotent.
|
|
1747
|
+
* **Throttling:** Throttling will be triggered if you call this operation frequently. Do not exceed 5 times per second. If throttling is triggered, try again later.
|
|
1665
1748
|
*
|
|
1666
1749
|
* @param request - ListFileRequest
|
|
1667
1750
|
* @param headers - map
|
|
@@ -1701,7 +1784,13 @@ class Client extends openapi_core_1.default {
|
|
|
1701
1784
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListFileResponse({}));
|
|
1702
1785
|
}
|
|
1703
1786
|
/**
|
|
1704
|
-
*
|
|
1787
|
+
* Queries the details of one or more documents in a specified category.
|
|
1788
|
+
*
|
|
1789
|
+
* @remarks
|
|
1790
|
+
* If you are using a RAM user, you must first obtain the OpenAPI management permissions (namely sfm:ListFile) of Model Studio. For more information, see [Grant OpenAPI permissions to a RAM user](https://help.aliyun.com/document_detail/2848578.html). If you are using the Alibaba Cloud account, you do not need permissions. We recommend that you use [the latest version of the SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
|
|
1791
|
+
* * During a paged query, set `MaxResults` to specify the maximum number of entries to return. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you query subsequent pages, set the `NextToken` parameter to the `NextToken` obtained in the last returned result. You can also set the `MaxResults` parameter to limit the number of entries to be returned. If no `NextToken` is returned, the result is completely returned and no more requests are required.
|
|
1792
|
+
* * This operation is idempotent.
|
|
1793
|
+
* **Throttling:** Throttling will be triggered if you call this operation frequently. Do not exceed 5 times per second. If throttling is triggered, try again later.
|
|
1705
1794
|
*
|
|
1706
1795
|
* @param request - ListFileRequest
|
|
1707
1796
|
* @returns ListFileResponse
|
|
@@ -2446,7 +2535,17 @@ class Client extends openapi_core_1.default {
|
|
|
2446
2535
|
return await this.updateAndPublishAgentSelectiveWithOptions(workspaceId, appCode, request, headers, runtime);
|
|
2447
2536
|
}
|
|
2448
2537
|
/**
|
|
2449
|
-
*
|
|
2538
|
+
* Modifies the content and title of a specified text chunk in the knowledge base, and sets whether the chunk participates in knowledge base retrieval.
|
|
2539
|
+
*
|
|
2540
|
+
* @remarks
|
|
2541
|
+
* **Limits**: This operation supports only knowledge base of the document search type. Data query and image Q\\&A types are not supported.
|
|
2542
|
+
* * **Required permissions**:
|
|
2543
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:UpdateChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
2544
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
2545
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
2546
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
2547
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been updated, the interface returns a success.
|
|
2548
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
2450
2549
|
*
|
|
2451
2550
|
* @param request - UpdateChunkRequest
|
|
2452
2551
|
* @param headers - map
|
|
@@ -2492,7 +2591,17 @@ class Client extends openapi_core_1.default {
|
|
|
2492
2591
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateChunkResponse({}));
|
|
2493
2592
|
}
|
|
2494
2593
|
/**
|
|
2495
|
-
*
|
|
2594
|
+
* Modifies the content and title of a specified text chunk in the knowledge base, and sets whether the chunk participates in knowledge base retrieval.
|
|
2595
|
+
*
|
|
2596
|
+
* @remarks
|
|
2597
|
+
* **Limits**: This operation supports only knowledge base of the document search type. Data query and image Q\\&A types are not supported.
|
|
2598
|
+
* * **Required permissions**:
|
|
2599
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:UpdateChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
2600
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
2601
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
2602
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
2603
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been updated, the interface returns a success.
|
|
2604
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
2496
2605
|
*
|
|
2497
2606
|
* @param request - UpdateChunkRequest
|
|
2498
2607
|
* @returns UpdateChunkResponse
|