Skip to main content

llama-index vector_stores alibabacloud-mysql integration

Project description

LlamaIndex Vector_Stores Integration: Alibaba Cloud MySQL

Alibaba Cloud MySQL supports vector search functionality. This package provides a vector store implementation that allows you to use Alibaba Cloud MySQL as a vector database in LlamaIndex.

Installation

pip install llama-index-vector-stores-alibabacloud-mysql

Usage

from llama_index.vector_stores.alibabacloud_mysql import (
    AlibabaCloudMySQLVectorStore,
)

vector_store = AlibabaCloudMySQLVectorStore(
    host="your-instance-endpoint.mysql.rds.aliyuncs.com",
    port=3306,
    user="llamaindex",
    password="password",
    database="vectordb",
)

Or using the from_params class method:

from llama_index.vector_stores.alibabacloud_mysql import (
    AlibabaCloudMySQLVectorStore,
)

vector_store = AlibabaCloudMySQLVectorStore.from_params(
    host="your-instance-endpoint.mysql.rds.aliyuncs.com",
    port=3306,
    user="llamaindex",
    password="password",
    database="vectordb",
)

Features

  • Full compatibility with Alibaba Cloud MySQL 8.0+
  • Support for vector indexing and fast similarity search
  • Filtering support with metadata queries
  • Easy integration with LlamaIndex
  • Uses mysql.connector for direct database connections
  • Enhanced validation for vector function support

Development

Running Integration Tests

A suite of integration tests is available to verify the Alibaba Cloud MySQL vector store integration. The test suite needs an Alibaba Cloud MySQL database with vector search support up and running. If not found, the tests are skipped.

pytest -v

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_alibabacloud_mysql-0.2.0.tar.gz.

File metadata

  • Download URL: llama_index_vector_stores_alibabacloud_mysql-0.2.0.tar.gz
  • Upload date:
  • Size: 8.4 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_alibabacloud_mysql-0.2.0.tar.gz
Algorithm Hash digest
SHA256 158d4d8a01bbfc964a50bcf77255e0093d3cbb053ef61adfd1f5fac70a4966f2
MD5 2c9defb15c2b4686b669eafb5cd094fb
BLAKE2b-256 9b8974b8b38815814d46c3707b3e4905d68982aa27dc047399326253427ff17a

See more details on using hashes here.

File details

Details for the file llama_index_vector_stores_alibabacloud_mysql-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_vector_stores_alibabacloud_mysql-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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_alibabacloud_mysql-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1e5fa6e455bbe40fbe853fce1eb6b8b034f262e874e5fcb0da96bad6c5e6f22
MD5 b2d39d2838011e5230fec2582e8152bb
BLAKE2b-256 3faca11096dfafd5f77e3f582bc06bbb813be60714c29810b5af20736b68dfb4

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