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
Metadata
Release files for llama-index-vector-stores-mariadb 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_vector_stores_mariadb-0.6.0.tar.gz | 7.6 kB | Without provenance | Details for llama_index_vector_stores_mariadb-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_vector_stores_mariadb-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_vector_stores_mariadb-0.6.0-py3-none-any.whl |
Total release size: 15.1 kB
Release files / llama_index_vector_stores_mariadb-0.6.0.tar.gz
| Download URL | llama_index_vector_stores_mariadb-0.6.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
022ff81079d8977b0667768a61feb1d61e188689d4df6e8e21c27ba17132442a
|
|
BLAKE2b-256 checksum How to use checksums |
a82858aa357c73d2da55985d5b91a5de9980976c7a95b94e5960ee67c71820f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / llama_index_vector_stores_mariadb-0.6.0-py3-none-any.whl
| Download URL | llama_index_vector_stores_mariadb-0.6.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a1a550ca8ce98281950e228d196ef281a8659c713cc63b888383128bfedf8b9
|
|
BLAKE2b-256 checksum How to use checksums |
f1bf1d944d8c048936747741cb66bfda1605f49741dbddcc2fab75f190a1eedc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for llama-index-vector-stores-mariadb 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.