llama-index vector_stores Volcengine MySQL integration
Project description
LlamaIndex Vector_Stores Integration: Volcengine MySQL
This integration provides a VolcengineMySQLVectorStore that leverages the native vector index capabilities of Volcano engine Cloud Database for MySQL. It allows you to use RDS for MySQL as a fully-functional vector store in LlamaIndex for high-performance similarity search.
To learn more about the native vector feature in Volcengine RDS for MySQL, you can refer to its official documentation. This integration is specifically designed for Volcengine's enhanced MySQL and is not intended for standard community MySQL instances.
Installation
pip install llama-index-vector-stores-volcengine-mysql
Usage
from llama_index.vector_stores.volcengine_mysql import (
VolcengineMySQLVectorStore,
)
# Initialize the vector store
vector_store = VolcengineMySQLVectorStore.from_params(
host="your-rds-instance-host",
port=3306,
user="your-username",
password="your-password",
database="your-database",
table_name="llama_index_vector_store",
embed_dim=1536, # Example: OpenAI embedding dimension
)
Requirements
To use this integration, you need a Volcengine RDS for MySQL instance with the following features enabled:
- The
loose_vector_index_enabledparameter set toON. - Support for
VECTOR(N)data type for columns. - Support for
VECTOR INDEX(HNSW) for indexing. - Access to vector functions like
TO_VECTOR(...),L2_DISTANCE(...), andCOSINE_DISTANCE(...).
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_vector_stores_volcengine_mysql-0.2.0.tar.gz.
File metadata
- Download URL: llama_index_vector_stores_volcengine_mysql-0.2.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
002223f22f84547cf4da5ac33aedd3e66e1c8837f0d85f0bb3259e35e8f4d8fa
|
|
| MD5 |
5d8c59e584d0f0dfe2d0bdd8a46ca406
|
|
| BLAKE2b-256 |
6ce4a471c2a0606b1327a3b667175d0fe3ce0344563c1cfdf0d110e7f03a502f
|
File details
Details for the file llama_index_vector_stores_volcengine_mysql-0.2.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_vector_stores_volcengine_mysql-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e059acd3dc413afb308a94c4a93802e3a58642191fce1b213291af3abcbbc4c9
|
|
| MD5 |
b6d2c375eb835a493127a00ad85d88dc
|
|
| BLAKE2b-256 |
1a8b099fd38c8885a4b972945de401a8388b815ed41c32e287897196eebefa53
|