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

File metadata

File hashes

Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f9638e1fa19b77a34cdfed456f2b80a2eee6d3c08da340e0efa7f9763bfa8cc5
MD5 c8ef6d7d59f7598bc96c0ccc492361ef
BLAKE2b-256 1471869f2885e8270c5740eaa588a5d840fe100e58f2b7dbba7beee0b563d2c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a76707551a991b5088e849a76bfce659b73fc57b987359a400af416b82292fbc
MD5 1848a37a1d2d417cd30751703cfc024c
BLAKE2b-256 e0f3266d231a3cc66b3558f43a2aef93ac0604bae78cba9c4879bfdc9d31ea68

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