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

File details

Details for the file llama_index_vector_stores_analyticdb-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_vector_stores_analyticdb-0.3.0.tar.gz
Algorithm Hash digest
SHA256 69c3e0b0a694d059207aac9c7b080b7d86e802d180a1440c71a7b64e0f972816
MD5 eadf074f39686dcc31c31daaab363ec8
BLAKE2b-256 fcb3229ccba96aa1f2a51bc963c7e577cb8f55ecd294a5ccc67c2f2fea0b875e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_analyticdb-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1d764ee2339760cfdb49984448f83773c7e9fc8738482e1e7e485c04a3c3fb7
MD5 5c65db25ce5eaf00e5979cc2f3487893
BLAKE2b-256 20a677ee2c1328e80370dc9f2af4c5b3b7e2f1d03c3b92277c76d7a6bb91d5fd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page