# LlamaIndex Node_Parser Integration: Alibabacloud_Aisearch
## Installation
```
pip install llama-index-node-parser-alibabacloud-aisearch
```
## Optional Installation
For automatic parsing of image slices, you can optionally install `llama-index-readers-alibabacloud-aisearch`.
```
pip install llama-index-readers-alibabacloud-aisearch
```
## Usage
For further details, please visit [document-split-api-details](https://help.aliyun.com/zh/open-search/search-platform/developer-reference/document-split-api-details).
You can specify the `endpoint` and `aisearch_api_key` in the constructor, or set the environment variables `AISEARCH_ENDPOINT` and `AISEARCH_API_KEY`.
```python
from llama_index.node_parser.alibabacloud_aisearch import (
AlibabaCloudAISearchNodeParser,
)
from llama_index.core import Document
try:
from llama_index.readers.alibabacloud_aisearch import (
AlibabaCloudAISearchImageReader,
)
image_reader = AlibabaCloudAISearchImageReader(
service_id="ops-image-analyze-vlm-001"
)
except ImportError:
image_reader = None
node_parser = AlibabaCloudAISearchNodeParser(
chunk_size=1024, image_reader=image_reader
)
nodes = node_parser(
[
Document(text="content1", mimetype="text/markdown"),
Document(
text="content2 ",
mimetype="text/markdown",
),
],
show_progress=True,
)
for i, node in enumerate(nodes):
print(f"[SPLIT#{i}]:\n{node.get_content()}")
print("-" * 80)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-node-parser-alibabacloud-aisearch",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "llama-index",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/0b/9b/cca3864ddd5e7e680fcf5ceedcb913601dd1d61f566858237b24dab3a9ee/llama_index_node_parser_alibabacloud_aisearch-0.3.0.tar.gz",
"platform": null,
"description": "# LlamaIndex Node_Parser Integration: Alibabacloud_Aisearch\n\n## Installation\n\n```\npip install llama-index-node-parser-alibabacloud-aisearch\n```\n\n## Optional Installation\n\nFor automatic parsing of image slices, you can optionally install `llama-index-readers-alibabacloud-aisearch`.\n\n```\npip install llama-index-readers-alibabacloud-aisearch\n```\n\n## Usage\n\nFor further details, please visit [document-split-api-details](https://help.aliyun.com/zh/open-search/search-platform/developer-reference/document-split-api-details).\n\nYou can specify the `endpoint` and `aisearch_api_key` in the constructor, or set the environment variables `AISEARCH_ENDPOINT` and `AISEARCH_API_KEY`.\n\n```python\nfrom llama_index.node_parser.alibabacloud_aisearch import (\n AlibabaCloudAISearchNodeParser,\n)\nfrom llama_index.core import Document\n\ntry:\n from llama_index.readers.alibabacloud_aisearch import (\n AlibabaCloudAISearchImageReader,\n )\n\n image_reader = AlibabaCloudAISearchImageReader(\n service_id=\"ops-image-analyze-vlm-001\"\n )\nexcept ImportError:\n image_reader = None\nnode_parser = AlibabaCloudAISearchNodeParser(\n chunk_size=1024, image_reader=image_reader\n)\nnodes = node_parser(\n [\n Document(text=\"content1\", mimetype=\"text/markdown\"),\n Document(\n text=\"content2 \",\n mimetype=\"text/markdown\",\n ),\n ],\n show_progress=True,\n)\nfor i, node in enumerate(nodes):\n print(f\"[SPLIT#{i}]:\\n{node.get_content()}\")\n print(\"-\" * 80)\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "llama-index node_parser alibabacloud_aisearch integration",
"version": "0.3.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "3d67dd040cb4374d2c0bc5b03ac1dbf22a4bcced0c1b13d9c8e33ee105ebd503",
"md5": "7d07ee4ef92eafef9b7ffc7115ef986f",
"sha256": "f281993f24395d899f72bc5d8db3a206bf82b2c48838e8c39180b3f61aa9707e"
},
"downloads": -1,
"filename": "llama_index_node_parser_alibabacloud_aisearch-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7d07ee4ef92eafef9b7ffc7115ef986f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 5328,
"upload_time": "2025-07-30T20:51:43",
"upload_time_iso_8601": "2025-07-30T20:51:43.714361Z",
"url": "https://files.pythonhosted.org/packages/3d/67/dd040cb4374d2c0bc5b03ac1dbf22a4bcced0c1b13d9c8e33ee105ebd503/llama_index_node_parser_alibabacloud_aisearch-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "0b9bcca3864ddd5e7e680fcf5ceedcb913601dd1d61f566858237b24dab3a9ee",
"md5": "5230195c493f9ea8409536ff3d2b7c7d",
"sha256": "e6fb5d7d101ac337e6171414fcd7e11816e7ef35b0c4e9fba1911041bad6ca71"
},
"downloads": -1,
"filename": "llama_index_node_parser_alibabacloud_aisearch-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "5230195c493f9ea8409536ff3d2b7c7d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 5386,
"upload_time": "2025-07-30T20:51:44",
"upload_time_iso_8601": "2025-07-30T20:51:44.400211Z",
"url": "https://files.pythonhosted.org/packages/0b/9b/cca3864ddd5e7e680fcf5ceedcb913601dd1d61f566858237b24dab3a9ee/llama_index_node_parser_alibabacloud_aisearch-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-30 20:51:44",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-node-parser-alibabacloud-aisearch"
}