llama-index-embeddings-alibabacloud-aisearch


Namellama-index-embeddings-alibabacloud-aisearch JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
Summaryllama-index embeddings alibabacloud_aisearch integration
upload_time2024-09-11 04:14:59
maintainerNone
docs_urlNone
authorllama-index
requires_python<4.0,>=3.8.1
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LlamaIndex Embeddings Integration: Alibabacloud_Aisearch

## Installation

```
pip install llama-index-embeddings-alibabacloud-aisearch
```

## Usage

For further details, please visit [text-embedding-api-details](`https://help.aliyun.com/zh/open-search/search-platform/developer-reference/text-embedding-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.embeddings.alibabacloud_aisearch import (
    AlibabaCloudAISearchEmbedding,
)

embed_model = AlibabaCloudAISearchEmbedding()
embedding = embed_model.get_query_embedding("llama-index")
print(len(embedding))

# embeddings = embed_model.get_text_embedding_batch(
#     ["科学技术是第一生产力", "opensearch产品文档"], show_progress=True
# )
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-embeddings-alibabacloud-aisearch",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8.1",
    "maintainer_email": null,
    "keywords": null,
    "author": "llama-index",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/b7/08/df2f1e20fbebad01de757a949bad35a1248409408f542baddf849aa573ec/llama_index_embeddings_alibabacloud_aisearch-0.1.0.tar.gz",
    "platform": null,
    "description": "# LlamaIndex Embeddings Integration: Alibabacloud_Aisearch\n\n## Installation\n\n```\npip install llama-index-embeddings-alibabacloud-aisearch\n```\n\n## Usage\n\nFor further details, please visit [text-embedding-api-details](`https://help.aliyun.com/zh/open-search/search-platform/developer-reference/text-embedding-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.embeddings.alibabacloud_aisearch import (\n    AlibabaCloudAISearchEmbedding,\n)\n\nembed_model = AlibabaCloudAISearchEmbedding()\nembedding = embed_model.get_query_embedding(\"llama-index\")\nprint(len(embedding))\n\n# embeddings = embed_model.get_text_embedding_batch(\n#     [\"\u79d1\u5b66\u6280\u672f\u662f\u7b2c\u4e00\u751f\u4ea7\u529b\", \"opensearch\u4ea7\u54c1\u6587\u6863\"], show_progress=True\n# )\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index embeddings alibabacloud_aisearch integration",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c8e0690606a2d7bf0675e036e6f62d2e46ef352dbfbfe4325fed0a1e14f6b1cc",
                "md5": "817b5590276f66f99a754fd65cbe4cae",
                "sha256": "da63040ed8d57d364bd388316944c70f6865966899b94c2fb148f6696183fdc7"
            },
            "downloads": -1,
            "filename": "llama_index_embeddings_alibabacloud_aisearch-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "817b5590276f66f99a754fd65cbe4cae",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8.1",
            "size": 3571,
            "upload_time": "2024-09-11T04:14:58",
            "upload_time_iso_8601": "2024-09-11T04:14:58.556954Z",
            "url": "https://files.pythonhosted.org/packages/c8/e0/690606a2d7bf0675e036e6f62d2e46ef352dbfbfe4325fed0a1e14f6b1cc/llama_index_embeddings_alibabacloud_aisearch-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b708df2f1e20fbebad01de757a949bad35a1248409408f542baddf849aa573ec",
                "md5": "fb83c23d1e3420746b27cf0e1375f31d",
                "sha256": "ea106ca1df8d01c9ce6816fc3705a164dcb6bc316a58383e84d2a3b35fb534b1"
            },
            "downloads": -1,
            "filename": "llama_index_embeddings_alibabacloud_aisearch-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "fb83c23d1e3420746b27cf0e1375f31d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8.1",
            "size": 2979,
            "upload_time": "2024-09-11T04:14:59",
            "upload_time_iso_8601": "2024-09-11T04:14:59.906378Z",
            "url": "https://files.pythonhosted.org/packages/b7/08/df2f1e20fbebad01de757a949bad35a1248409408f542baddf849aa573ec/llama_index_embeddings_alibabacloud_aisearch-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-11 04:14:59",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-embeddings-alibabacloud-aisearch"
}
        
Elapsed time: 0.41794s