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

llama_index_vector_stores_analyticdb-0.5.0.tar.gz (6.6 kB view details)

Uploaded Source

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.5.0.tar.gz.

File metadata

  • Download URL: llama_index_vector_stores_analyticdb-0.5.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_vector_stores_analyticdb-0.5.0.tar.gz
Algorithm Hash digest
SHA256 56cb66e2df880efb1c34e8f4a8804a26630a5f5d8f3b7e2a4e1696b3f67f9862
MD5 9794dbc14badc8cb470de008b8c60830
BLAKE2b-256 0256b9606fc905ebe92d7bc6e17d24088ffc4767d8d8a625eb4c95ddc5b00444

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_vector_stores_analyticdb-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_vector_stores_analyticdb-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70279c272171c07343ba92ed314d57a0a3d47c2aefca5e84fa7ba91e329eecd8
MD5 72064467a9928809cfe81ae4b55e8020
BLAKE2b-256 345b4042fa1b3a4ed4e19f6ba33ec732663013274f5803047c45c6391618c372

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