ReIndex
Reindexing reprocesses the specified document by parsing it, splitting it into chunks, and building a new index.
Operation description
Make sure that you fully understand the billing method and pricing of Tongyi Dianjin before you use this operation.
Prerequisites- Alibaba Cloud Model Studio and Tongyi Dianjin are activated.
- You have obtained the workspaceId: Obtain the workspace identifier.
Debugging
You can run this operation directly in OpenAPI Explorer, which saves you the trouble of calculating signatures. After the operation succeeds, OpenAPI Explorer can automatically generate SDK code examples.
RAM authorization
The following table describes the authorization information of the API. You can use it in the Action element of RAM policy statements to grant RAM users or RAM roles the permission to call this API. For details:
-
Operation: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, and List.
-
Resource type: the resource types that support authorization in the operation. For details:
- Required resource types are marked with a leading asterisk (*).
- For operations that do not support resource-level authorization,
All resourcesis used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Dependent operation: other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent operations for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent operation |
|---|---|---|---|---|
| dianjin:ReIndex | none | *All resources * |
| None |
Request syntax
PUT /{workspaceId}/api/library/document/reIndex HTTP/1.1
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | Path parameter. The ID of the workspace. | llm-xxxxx |
| documentId | string | Yes | The ID of the document. | 8326472354762354 |
Response parameters
| Name | Type | Description | Example |
|---|---|---|---|
| object | The response result. | ||
| cost | long | Processing time | null |
| data | string | The response data. | True |
| dataType | string | The data type. | null |
| errCode | string | The error code. | 0 |
| message | string | The error message. | ok |
| requestId | string | The request ID. | 32FFC91D-0A9F-585A-B84F-8A54C5187035 |
| success | boolean | Indicates whether the operation is successful. | true |
| time | string | The timestamp. | 2024-04-24 11:54:34 |
Examples
Success response
JSON format
{
"cost": 0,
"data": "True",
"dataType": null,
"errCode": 0,
"message": "ok",
"requestId": "32FFC91D-0A9F-585A-B84F-8A54C5187035",
"success": true,
"time": "2024-04-24 11:54:34"
}
Error codes
Visit the Error Center to view more error codes.