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
Release history Release notifications | RSS feed
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
Close
Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0af180f174ef25cf435bf15c65713f11e94a8624cff16fc7df7d07eee8784881 |
|
MD5 | c5beae12d87a5e7814d8edb8c8cca05d |
|
BLAKE2b-256 | dd5b2942810ec984379771e3460a4391b7df58624945a43a3bc98c334839b578 |
Close
Hashes for llama_index_vector_stores_alibabacloud_opensearch-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 502dba2cd46e649b11476bcea0750d1c421a7621a1050ad1b45cd83d25a8758a |
|
MD5 | 802b893f7d0e1e1f8b81998c8b2adc50 |
|
BLAKE2b-256 | 3d12de73146da8be879d52fe9ccebc5d2c469422ab6c664d3679809fb94533c2 |