Retrieve the document library list. The list includes document names, descriptions, and unique identifiers.
Operation description
Prerequisites
- You have activated Alibaba Cloud Model Studio and Tongyi Dianjin.
- Obtain the workspaceId: Obtain the workspace identifier.
Debug
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
Authorization information
The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
- Action: the specific permission point.
- Access level: the access level of each action. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the action. Details are as follows:
- For required resource types, an asterisk (*) is added as a prefix.
- For actions that do not support resource-level authorization,
All resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Related action: other permissions required to successfully perform the action. The caller must also have the permissions of the related actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Related action |
|---|---|---|---|---|
| dianjin:GetLibraryList | get | *All resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | Path parameter, the business space ID. | llm-xxxxx |
| page | integer | No | Page number | 1 |
| pageSize | integer | No | Number of records per page | 10 |
| query | string | No | Search keyword. Supports document library names and descriptions. | Test document library |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | ResultCode<PageVO > | ||
| cost | long | Processing time | null |
| data | object | Response data | |
| currentPage | long | Page number | 1 |
| pageSize | long | Number of records per page | 10 |
| records | array<object> | Record list | |
| record | object | Record | |
| description | string | Document library description | Document library |
| documentCount | long | Document count | 10 |
| gmtCreate | string | Creation time | 2024-01-01 00:00:00 |
| gmtModified | string | Modification time | 2024-01-01 00:00:00 |
| id | string | Document library ID | 24vs4aa42jv1rg7 |
| indexSetting | object | Document library index settings | |
| chunkStrategy | object | Chunking strategy | |
| docTreeSplit | boolean | Layout-based splitting | true |
| docTreeSplitSize | integer | Layout-based split size | 160 |
| enhanceGraph | boolean | Whether to enhance images | true |
| enhanceTable | boolean | Whether to enhance tables | true |
| overlap | integer | Chunk overlap length | 40 |
| sentenceSplit | boolean | Split by sentence | true |
| sentenceSplitSize | integer | Sentence-based split size | 160 |
| size | integer | Chunk size | 256 |
| split | boolean | Whether to split into chunks | true |
| modelConfig | object | Model configuration | |
| temperature | double | Temperature | 0.8 |
| topP | double | topP | 0.8 |
| promptRoleStyle | string | Prompt role style | You are an information processing expert. |
| queryEnhancer | object | Query enhancement | |
| enableFollowUp | boolean | Multi-turn enhancement | true |
| enableMultiQuery | boolean | Whether to use LLM knowledge to decompose questions | true |
| enableOpenQa | boolean | Whether to use LLM knowledge to answer questions | true |
| enableQueryRewrite | boolean | Whether to rewrite questions based on domain knowledge | true |
| enableSession | boolean | Record session | true |
| localKnowledgeId | string | Document library ID used for knowledge rewriting | sdbcjsbc |
| withDocumentReference | boolean | Whether to include document references | true |
| recallStrategy | object | Recall strategy | |
| documentRankType | string | Merge & sort strategy | model |
| limit | integer | Number of results from two-way merge and summarization | 10 |
| textIndexSetting | object | Text index settings | |
| category | string | Text index type | ElasticSearch |
| enable | boolean | Whether to enable the text index | true |
| indexAnalyzer | string | Index analyzer of the text index: (Standard, IkMaxWord, IkSmart) | Standard |
| rankThreshold | double | Text index ranking threshold | null |
| searchAnalyzer | string | Search analyzer of the text index: (Standard, IkMaxWord, IkSmart) | Standard |
| topK | integer | Number of final text index summary results | 10 |
| vectorIndexSetting | object | Vector index settings | |
| category | string | Vector index source: ADB is recommended | ADB |
| embeddingType | string | Text Embedding model of the vector index | DashScope |
| enable | boolean | Whether to enable | true |
| rankThreshold | double | Vector index ranking threshold | null |
| topK | integer | Number of final vector index summary results | 10 |
| libraryName | string | Document library name | Test document library |
| totalPages | long | Total pages | 10 |
| totalRecords | long | Total records | 100 |
| dataType | string | Data type | null |
| errCode | string | Error code | 0 |
| message | string | Error message | ok |
| requestId | string | Request ID | 0a06dfe817156528535968405edce3 |
| success | boolean | Whether the operation is successful | true |
| time | string | Timestamp | 2024-01-01 00:00:00 |
Examples
Success response
JSON format