Retrieves the detailed configuration of a document library, including its name, description, and index settings.
Operation description
Prerequisites
- Activate the Alibaba Cloud Model Studio and Tongyi Dianjin services.
- Obtain the workspaceId: obtain a workspace identifier.
Try it now
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Debug
RAM authorization
The following table describes the authorization information of this API. You can use the Action element in a RAM policy statement to grant RAM users or RAM roles the permission to call this API. For more information, see:
- 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 you can authorize for the operation. For more information, see:
- Resource types marked with an asterisk (*) are required.
- If an operation does not support resource-level authorization,
全部资源is used.
- Condition keyword: the condition keys that are defined by the cloud service.
- Related operation: other permissions that are required to successfully perform the operation. The caller must have the permissions of the related operations to succeed.
| Operation | Access level | Resource type | Condition keyword | Related operation |
|---|---|---|---|---|
| dianjin:GetLibrary | get | *All resources * |
| N/A |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | No | Path parameter. The workspace ID. | llm-xxxxx |
| libraryId | string | Yes | The document library ID. | cjshcxxxx |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | The response data. | ||
| cost | long | The response time. | null |
| data | object | The response data. | |
| description | string | The document library description. | Document library description |
| documentCount | long | The number of documents. | 10 |
| gmtCreate | string | The creation time. | 2024-01-01 00:00:00 |
| gmtModified | string | The last modification time. | 2024-01-01 00:00:00 |
| id | string | The document library ID. | 19386728376 |
| indexSetting | object | The document library index settings. | |
| chunkStrategy | object | The chunking strategy. | |
| docTreeSplit | boolean | Layout-based splitting. | true |
| docTreeSplitSize | integer | The layout-based splitting size. | 160 |
| enhanceGraph | boolean | Whether to enhance images. | true |
| enhanceTable | boolean | Whether to enhance tables. | true |
| overlap | integer | The chunk overlap length. | 40 |
| sentenceSplit | boolean | Split by sentence. | true |
| sentenceSplitSize | integer | The sentence-based splitting size. | 160 |
| size | integer | The chunk size. | 256 |
| split | boolean | Whether to enable chunking. | true |
| modelConfig | object | The model configuration. | |
| temperature | double | The temperature. | 0.8 |
| topP | double | topP | 0.8 |
| promptRoleStyle | string | The 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 | Whether to record the session. | true |
| localKnowledgeId | string | The document library ID used for knowledge rewriting. | 2836482634 |
| withDocumentReference | boolean | Whether to include document references. | true |
| recallStrategy | object | The recall strategy. | |
| documentRankType | string | The merge and sort policy. | model |
| limit | integer | The number of results returned after two recall paths are merged and summarized. | 10 |
| textIndexSetting | object | The text index settings. | |
| category | string | The text index type. | ElasticSearch |
| enable | boolean | Whether to enable text indexing. | true |
| indexAnalyzer | string | The index analyzer of the text index: (Standard, IkMaxWord, IkSmart) | IkMaxWord |
| rankThreshold | double | The ranking threshold for text indexing. | null |
| searchAnalyzer | string | The search analyzer of the text index: (Standard, IkMaxWord, IkSmart) | Standard |
| topK | integer | The number of final summary results of text indexing. | 10 |
| vectorIndexSetting | object | The vector index settings. | |
| category | string | The vector index source: we recommend that you set it to ADB. | ADB |
| embeddingType | string | The text embedding model for the vector index. | DashScope |
| enable | boolean | Whether to enable it. | true |
| rankThreshold | double | The ranking threshold for vector indexing. | null |
| topK | integer | The number of final summary results of vector indexing. | 10 |
| libraryName | string | The document library name. | Test document library |
| dataType | string | The data type. | null |
| errCode | string | The error code. | 0 |
| message | string | The error type. | ok |
| requestId | string | The request ID. | 44BD277A-87F9-5310-8D63-3E6645F1DA85 |
| success | boolean | Whether the request is successful. | true |
| time | string | The timestamp. | 2024-01-01 00:00:00 |
Examples
Success response
JSON format