Skip to main content

llama-index embeddings alibabacloud_aisearch integration

Project description

LlamaIndex Embeddings Integration: Alibabacloud_Aisearch

Installation

pip install llama-index-embeddings-alibabacloud-aisearch

Usage

For further details, please visit 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.

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
# )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_embeddings_alibabacloud_aisearch-0.4.0.tar.gz.

File metadata

  • Download URL: llama_index_embeddings_alibabacloud_aisearch-0.4.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_embeddings_alibabacloud_aisearch-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a39dd96d98f04040ca28b200f5f72d5f519f6d80a4c2927ad829a215b82cb4a1
MD5 f40241cfbda99f28895ad496bdf28936
BLAKE2b-256 faf007fb0db1f0bc384263513c8ed8311a8ccb86e907a5a3e865a12d31cc3e2a

See more details on using hashes here.

File details

Details for the file llama_index_embeddings_alibabacloud_aisearch-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_embeddings_alibabacloud_aisearch-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_embeddings_alibabacloud_aisearch-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90e6dd8c67b9bf0ee75dd2e36b84bdefbeb8d670f1dbb8f33b8e395a3c8b5356
MD5 d1a8698a4e83cfe6cac0a246a3d1394e
BLAKE2b-256 8e43be99a0b3910fbd63676742f4cd0309ad53dec1bd681a919f1f9204bf329c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page