llama-index vector_stores mariadb integration
Project description
LlamaIndex Vector_Stores Integration: MariaDB
Starting with version 11.7.1, the MariaDB relational database has vector search functionality integrated.
Thus now it can be used as a fully-functional vector store in LlamaIndex.
To learn more about the feature in MariaDB, check its Vector Overview documentation.
Please note that versions before 0.3.0 of this package are not compatible with MariaDB 11.7 and later.
They are compatible only with the one-off MariaDB 11.6 Vector preview release which used a slightly different syntax.
Installation
pip install llama-index-vector-stores-mariadb
Usage
from llama_index.vector_stores.mariadb import MariaDBVectorStore
vector_store = MariaDBVectorStore.from_params(
host="localhost",
port=3306,
user="llamaindex",
password="password",
database="vectordb",
table_name="llama_index_vectorstore",
embed_dim=1536, # OpenAI embedding dimension
default_m=6, # MariaDB Vector system parameter
ef_search=20, # MariaDB Vector system parameter
)
Development
Running Integration Tests
A suite of integration tests is available to verify the MariaDB vector store integration.
The test suite needs a MariaDB database with vector search support up and running. If not found, the tests are skipped.
To facilitate that, a sample docker-compose.yaml file is provided, so you can simply do:
docker compose -f tests/docker-compose.yaml up
pytest -v
# Clean up when you finish testing
docker compose -f tests/docker-compose.yaml down
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
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_mariadb-0.5.0.tar.gz.
File metadata
- Download URL: llama_index_vector_stores_mariadb-0.5.0.tar.gz
- Upload date:
- Size: 7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d365e1cc34995ce3aefe55871bd04b3e2a62337b00ca843cd6930e0adfca37fb
|
|
| MD5 |
1f21270357d450e8ae725be91b1301a5
|
|
| BLAKE2b-256 |
9213752a175197ba8b6818637661a047c8d34206b763196f6835760464247db2
|
File details
Details for the file llama_index_vector_stores_mariadb-0.5.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_vector_stores_mariadb-0.5.0-py3-none-any.whl
- Upload date:
- Size: 7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b5e89d513f3163f35835fabc88cfc3c91a49df0feebb2d38ee585acf1e08351
|
|
| MD5 |
b013f1005be12022a8c6e05cb60cd711
|
|
| BLAKE2b-256 |
7288cc279e3852b1b0f5743627cb8a02d1f4750f013159efb571be1f4a4ccaad
|