ReIndex

Updated at:

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.

Try it now

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 resources is 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.

OperationAccess levelResource typeCondition keyDependent operation
dianjin:ReIndexnone
*All resources
*
    None
None

Request syntax

PUT /{workspaceId}/api/library/document/reIndex HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample
workspaceIdstringYes

Path parameter. The ID of the workspace.

llm-xxxxx
documentIdstringYes

The ID of the document.

8326472354762354

Response parameters

NameTypeDescriptionExample
object

The response result.

costlong

Processing time

null
datastring

The response data.

True
dataTypestring

The data type.

null
errCodestring

The error code.

0
messagestring

The error message.

ok
requestIdstring

The request ID.

32FFC91D-0A9F-585A-B84F-8A54C5187035
successboolean

Indicates whether the operation is successful.

true
timestring

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.