llama-index vector_stores analyticdb integration
Project description
Analytic DB Vector Store
A LlamaIndex vector store using Analytic DB as the backend.
Usage
Pre-requisite:
pip install llama-index-vector-stores-analyticdb
A minimal example:
from llama_index.vector_stores.analyticdb import AnalyticDBVectorStore
vector_store = AnalyticDBVectorStore.from_params(
access_key_id="your-ak", # Your alibaba cloud ram access key id
access_key_secret="your-sk", # Your alibaba cloud ram access key secret
region_id="cn-hangzhou", # Region id of the AnalyticDB instance
instance_id="gp-ab123456", # Your AnalyticDB instance id
account="testaccount", # Account of the AnalyticDB instance
account_password="testpassword", # Account password of the AnalyticDB instance
namespace="llama", # Schema name of the AnalyticDB instance
collection="llama", # Table name of the AnalyticDB instance
namespace_password="llamapassword", # Namespace corresponding password of the AnalyticDB instance
metrics="cosine", # Similarity algorithm, e.g. "cosine", "l2", "ip"
embedding_dimension=1536, # Embedding dimension of the embeddings model used
)
More references
AnalyticDB for PostgreSQL is a massively parallel processing (MPP) data warehousing service that is designed to analyze large volumes of data online.
A more detailed usage guide can be found at this document.
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
File details
Details for the file llama_index_vector_stores_analyticdb-0.2.0.tar.gz
.
File metadata
- Download URL: llama_index_vector_stores_analyticdb-0.2.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e0413394ef6fa482d15ab5ae9636841d5d824b17b857e9a2c06b280c4228b15 |
|
MD5 | 370858ce588b5e1c6fbb8ab6ca5d5d13 |
|
BLAKE2b-256 | a50835c07bc34fbdc686c2534270f5ff2f0d669d9a95b33e5284eb6a110ca4c5 |
File details
Details for the file llama_index_vector_stores_analyticdb-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_vector_stores_analyticdb-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b9523bdbd46fea18a5ac7653281b3df56b3b7f45f909f42d1441a654963fea6 |
|
MD5 | 72878e72b1bef24cf3bedfb4df90de85 |
|
BLAKE2b-256 | 7f02ed0c2b058f4540ce6333ab4bf24c515072db59e651d7485ada0a83239b14 |