Skip to main content

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

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

File metadata

  • Download URL: llama_index_vector_stores_alibabacloud_mysql-0.3.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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.3.0.tar.gz
Algorithm Hash digest
SHA256 da19cf2a45c81756f5049b04b0abe5996b125e765126009defc14289210150ee
MD5 59781a4c6ec20ea2b86b38de05cd4d1f
BLAKE2b-256 2d633fdd80dcd1b5d6b913f4b24761ef7f66a1d48a1320660a5b86c433e35ca9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_vector_stores_alibabacloud_mysql-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ccf855636999aefb2df6b2e93e67389548ec70f16dc4829a56e4d4628c5c355
MD5 6d19de4cd60e332f89fccf078c6e3e67
BLAKE2b-256 6e1d587f6911c198ea4f3f3c7c5160bdeb79920ca29805b427af7be0da30e75d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page