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

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_alibabacloud_aisearch-0.2.0.tar.gz
Algorithm Hash digest
SHA256 88f206a0c9a90db986c0ded5e409ebe67b364892a03907dd81a46c39ba0306ca
MD5 0c97f1aeafed1da15211dcb53e847ce1
BLAKE2b-256 897d22253f3438e92da0b20a7b8b04a38bc667de5189b9569fadd063523fa34a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_alibabacloud_aisearch-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 732a6d9e68018b4ea0159a2eecd386681d2d3f76835441a3cc48b9a3b549a220
MD5 f200b03863be0e90e83a4c89c3aa05d4
BLAKE2b-256 13831affbc08f1f0b14905e630c86477c037713bee0932ceb6def168f8176cf3

See more details on using hashes here.

Supported by

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