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

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

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d3c7fac13e305258029d11e78990de5e15db996a71246064d5a3c1a8383101aa
MD5 f7328ef093c087144df0d6334b09b102
BLAKE2b-256 7f16d2e4c5b6c8944a3a3bf05867dfd01f5850fada8c985a1bdea85dd397ff55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d5d44b26b48845003b8794baeeff187a2678ddab50ba3a39bebc4f1f028e91c
MD5 80f8ae74ebe5d2c0a4b060cb5acd4e9c
BLAKE2b-256 288e3199c71c136ccf99c5cf05547d2655f3132b48c1771134e732a8efefa480

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