Skip to main content

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

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_analyticdb-0.4.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_vector_stores_analyticdb-0.4.1.tar.gz
Algorithm Hash digest
SHA256 0d9983f1cf7debeb0356e7cc15588eb9a7d2d61a23b25e47483b7cea8256a29b
MD5 d354ee03cfb69cc2e803f03b9f21a097
BLAKE2b-256 9407da762297c346c130692bfbba6ee05469cba192350129c4d9cf0e2b294a09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_analyticdb-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 527b46d88f50b094803ee5c99a1619b9c7cc7a9f7c091dc8b01a8c28b73c8cb3
MD5 b5caf2dc7197f5621ad392aeb5505c3b
BLAKE2b-256 e8e126880680108a452da9f715e43484131395185dfcca1fd92be01060efda7d

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