Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support MariaDB 11.7 in the MariaDB vector store integration #17497

Merged
merged 4 commits into from
Jan 15, 2025

Conversation

karsov
Copy link
Contributor

@karsov karsov commented Jan 13, 2025

Description

Update the MariaDB vector store integration to work with MariaDB 11.7.
Currently, it is working only for the one-off MariaDB 11.6 Vector Preview release which is not supported further. 11.7 is the next LTS (long-term support) release of MariaDB so with the changes here we should be able to use MariaDB and LlamaIndex for production workloads and not only for investigation purposes.

There are significant differences between the SQL syntax in MariaDB between the vector preview release and 11.7 which means that older version of the integration cannot work with MariaDB 11.7, and the code here doesn't work with the MariaDB 11.6 Vector Preview release. It doesn't make sense to spent time on support since MariaDB 11.6 Vector Preview was a one-off release and is not supported.

Version Bump

Did I bump the version in the pyproject.toml file of the package I am updating? (Except for the llama-index-core package)

  • Yes
  • No

Type of Change

Please delete options that are not relevant.

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Your pull-request will likely not be merged unless it is covered by some form of impactful unit testing.

  • I added new unit tests to cover this change
  • I believe this change is already covered by existing unit tests

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added Google Colab support for the newly added notebooks.
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I ran make format; make lint to appease the lint gods

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 13, 2025
To learn more about the feature, check the [Vector Overview](https://mariadb.com/kb/en/vector-overview/) in the MariaDB docs.
To learn more about the feature in MariaDB, check its [Vector Overview documentation](https://mariadb.com/kb/en/vector-overview/).

Please note that versions before `0.0.3` of this package are not compatible with MariaDB 11.7 and later.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: 0.3.0*

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Fixed.

Copy link
Collaborator

@logan-markewich logan-markewich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but is it possible to check in the class itself the current mariadb version and raise an error as needed?

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 13, 2025
@karsov karsov force-pushed the mariadb-vector-store-db-update branch from dc70a20 to db6ac68 Compare January 15, 2025 15:31
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jan 15, 2025
@karsov
Copy link
Contributor Author

karsov commented Jan 15, 2025

Rebased from main and added validation that the MariaDB server version is supported.

@logan-markewich logan-markewich merged commit 0de7c36 into run-llama:main Jan 15, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants