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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_vector_stores_analyticdb-0.4.0.tar.gz.
File metadata
- Download URL: llama_index_vector_stores_analyticdb-0.4.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a4d3e4a264cd49cc33a0eaa84d223c27ef7f599e1f290495b5034bcf1606c67
|
|
| MD5 |
97231fbdceed582b964d4b495202b373
|
|
| BLAKE2b-256 |
db48041a17fd7f165afb3b27b1a406e625548813155f3c0a5baed5656885cf02
|
File details
Details for the file llama_index_vector_stores_analyticdb-0.4.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_vector_stores_analyticdb-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7906c7149d18ddbf1aed3867bd46f362ce6792ef82851f87ec7f79e6d7b307d
|
|
| MD5 |
bec40d09d6e12888eb08be656fd1fc70
|
|
| BLAKE2b-256 |
6336614e658c8c258cc4b209fc043096994e5823cc6e85de9595ffd19b4c6050
|