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.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.3.0.tar.gz
Algorithm Hash digest
SHA256 fb85d07e1eaf19a6c15a278602e5b17fd2a7d6229fd27ba531611ab8edd4f468
MD5 c39f582c938e823d04a2143c47df1bc8
BLAKE2b-256 3b23347a826b141662ae6b3be03a879ed37490db9cbfc31acbe630c8ac1078cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 855f75203578b842707d30da36e9ec9b28522b7539ed08a7e6d1a6ea27ffdd06
MD5 7ea1f67c96f092069b4c72714ac618d9
BLAKE2b-256 7ee28b715f30ec820488920657d0117738da8ca960c3b00ad0a9f0f6928c406b

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