Skip to main content

llama-index vector_stores Alibaba Cloud OpenSearch integration

Project description

LlamaIndex Vector_Stores Integration: Alibaba Cloud OpenSearch

Please refer to the notebook for usage of AlibabaCloud OpenSearch as vector store in LlamaIndex.

Example Usage

pip install llama-index
pip install llama-index-vector-stores-alibabacloud-opensearch
# Connect to existing instance
from llama_index.core import VectorStoreIndex
from llama_index.vector_stores.alibabacloud_opensearch import (
    AlibabaCloudOpenSearchStore,
    AlibabaCloudOpenSearchConfig,
)

config = AlibabaCloudOpenSearchConfig(
    endpoint="***",
    instance_id="***",
    username="your_username",
    password="your_password",
    table_name="llama",
)

vector_store = AlibabaCloudOpenSearchStore(config)

# Create index from existing stored vectors
index = VectorStoreIndex.from_vector_store(vector_store)
query_engine = index.as_query_engine()
response = query_engine.query(
    "What did the author study prior to working on AI?"
)
print(response)

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_vector_stores_alibabacloud_opensearch-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dec703eaec1a3e79de92464ba91fdf9ab77093cbc84e40019bd75a37f8ca272a
MD5 9e1054f3ab4d7e3db5e4d73144be840c
BLAKE2b-256 2efb54dab8abad81b394dd351359240613324aa83bd06ddddd6b55929027969a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16cdb9be24442dc4c657b4c1b7dc361d25708a5efcf0e8704937d3af7bd074f5
MD5 c0e9a367b476facdbb9aac4532e819bf
BLAKE2b-256 362da630049b6c8e4301780f3fa4c1913eb336b46d2c68133289845f4b566e02

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