This operation retrieves a list of documents. You can filter documents by metadata or use paging.
Operation description
Prerequisites
You have activated Alibaba Cloud Model Studio and the Tongyi Dianjin service.
Obtain the workspaceId: get the workspace identity.
Try it now
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Debug
RAM authorization
The following table lists the authorization information for this API. You can use the Action element of RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details:
- Action: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the operation. Details:
- For required resource types, an asterisk (*) is prefixed.
- For operations that do not support resource-level authorization,
All resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent action: the other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| dianjin:GetFilterDocumentList | none | *All resources * |
| None |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | Path parameter, workspace ID | llm-xxxxx |
| body | object | No | Request body. | |
| and | array<object> | No | AND expression used to filter documents/document chunks | |
| and | object | No | A series of constraints in triplet format, joined by AND | |
| boost | float | No | The weight of the value in the text retrieval engine. Default is 1. | 1 |
| key | string | No | The metadata key in the document library | company |
| operator | string | No | Relationship between the value stored under the document library metadata key and the input value
| eq |
| value | string | No | The input metadata value | alibaba |
| docIdList | array | No | List of document IDs used to filter documents/document chunks | |
| docIdList | string | No | Document ID | 3553835752369972270 |
| libraryId | string | Yes | Document library ID used to filter documents/document chunks | cjshcxxxx |
| or | array<object> | No | OR expression used to filter documents/document chunks. | |
| or | object | No | A series of constraints in triplet format, joined by OR | |
| boost | float | No | The weight of the value in the text retrieval engine. Default is 1. | 1 |
| key | string | No | The metadata key in the document library | company |
| operator | string | No | Relationship between the value stored under the document library metadata key and the input value
| contains |
| value | string | No | The input metadata value | alibaba |
| page | integer | No | Page number, used for pagination | 1 |
| pageSize | integer | No | Page size, used for pagination | 10 |
| status | array | No | List of document statuses, used to filter documents. Document parsing status list, Status codes: WaitRefresh, InQueue, FetchingData, Embedding, Completed, FormatError, Error
| |
| statu | string | No | Document status, used to filter documents. | Completed |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | Returned data | ||
| cost | long | Time consumed | null |
| data | object | Response data | |
| currentPage | long | Current page number | 1 |
| pageSize | long | Number of records per page | 10 |
| records | array<object> | Records | |
| record | object | Data | |
| docId | string | Document ID | 29368126816 |
| documentMeta | object | Document metadata | {"a": "1"} |
| fileType | string | Document type | |
| gmtCreate | string | Creation time | 2024-01-01 00:00:00 |
| gmtModified | string | Modification time | 2024-01-01 00:00:00 |
| libraryId | string | The ID of the library to which the document belongs | sdfgsjdfg |
| statusCode | string | Document status (WaitRefresh: waiting for refresh, InQueue: pending, FetchingData: retrieving data, Embedding: processing document, Error: error, Completed: available, Null: unknown) | WaitRefresh |
| title | string | Document title | Company document |
| url | string | Document URL | null |
| totalPages | long | Total number of pages | 10 |
| totalRecords | long | Total number of records | 100 |
| dataType | string | Data type | null |
| errCode | string | Error code | 0 |
| message | string | Error message | ok |
| requestId | string | Request ID | 7ADF010C-FD89-569D-A079-2D4D5247E943 |
| success | boolean | Whether the request is successful | true |
| time | string | Timestamp | 2024-01-01 00:00:00 |
Examples
Success response
JSON format