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

File metadata

  • Download URL: llama_index_vector_stores_alibabacloud_mysql-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","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.1.0.tar.gz
Algorithm Hash digest
SHA256 37ed94c1aec78e80571efd48cda2369119ea588ef2a39c00d5a5bff5c9a1883d
MD5 4192138f6870c0d60e7b175ac367a6fc
BLAKE2b-256 62b6f5a13c8441a77624241730603802b34fa38476098ebbdc1d09eabed03a3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_vector_stores_alibabacloud_mysql-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f624d38efee103083e6e03da3cb96ca18464c1d156c6a9cc12d2250000f7caad
MD5 f3f3315b44dfa2284e79668c6c6303d2
BLAKE2b-256 9831a7401daefb8524486713a1535b2fd2117f908cdb5fa82a97f05f8476bde5

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