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
- Download URL: llama_index_vector_stores_alibabacloud_opensearch-0.3.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb85d07e1eaf19a6c15a278602e5b17fd2a7d6229fd27ba531611ab8edd4f468 |
|
MD5 | c39f582c938e823d04a2143c47df1bc8 |
|
BLAKE2b-256 | 3b23347a826b141662ae6b3be03a879ed37490db9cbfc31acbe630c8ac1078cf |
File details
Details for the file llama_index_vector_stores_alibabacloud_opensearch-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_vector_stores_alibabacloud_opensearch-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 855f75203578b842707d30da36e9ec9b28522b7539ed08a7e6d1a6ea27ffdd06 |
|
MD5 | 7ea1f67c96f092069b4c72714ac618d9 |
|
BLAKE2b-256 | 7ee28b715f30ec820488920657d0117738da8ca960c3b00ad0a9f0f6928c406b |