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

File metadata

File hashes

Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.4.1.tar.gz
Algorithm Hash digest
SHA256 23db638e4f198953ae2d1e7554952ecac7dfd007aa585ee3953b04900372ada7
MD5 b4ad9250bb535522d4a08cab9956d97f
BLAKE2b-256 9c197ddba38532d77ed5e1d1c485807cc95e1dee592c43a9457e18ff4a3c4662

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd995082abd0954951a9bcf4c860ad1e8163cc9f0333cbc1576e140a129be92a
MD5 1ed1bb0049d0cce81c8aa053cb9c8809
BLAKE2b-256 87eeecc31c8a305d3221f5609d0b5246d1e5daaf4bdfb2f30463a781f9a3c38e

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