-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Feature integrate alibabacloud mysql vector #3479
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
base: main
Are you sure you want to change the base?
Feature integrate alibabacloud mysql vector #3479
Conversation
- Adds the MariaDBConfig configuration class and MariaDB vector store implementation - Updates factory.py and configs.py to support MariaDB - Adds MariaDB-related test cases - Adds the mysql-connector-python dependency to pyproject.toml
- Adds the MariaDBConfig configuration class and MariaDB vector store implementation - Updates factory.py and configs.py to support MariaDB - Adds MariaDB-related test cases - Adds the mysql-connector-python dependency to pyproject.toml
- Adds the MySQLVectorConfig configuration class and MySQL vector store implementation - Updates factory.py and configs.py to support MariaDB - Adds MySQLVector-related test cases - Adds the mysql-connector-python dependency to pyproject.toml
|
@parshvadaftari Could you please review this PR? We rely on this feature to publish our own product capability description. |
|
@wangype Hey this is on the roadmap but this will be integrated in the future releases of 1.0.0. |
- Changed the file and class names related to aliyun_mysql to alibabacloud_mysql - Updated related import paths and configuration names - Retained the original functionality and logic
|
@parshvadaftari Hi,I noticed that your version 1.0.0 has been released, which adds the integration of Azure MySQL.I would like to integrate Alibaba Cloud MySQL in this PR to implement vector storage. And some of our customers plan to use mem0 to use Alibaba Cloud's MySQL |
…ter application. - Removed unused imports of struct - Adjusted the search method call to remove the variable that receives the result - Retained the assertion check in mock_cursor.execute to verify that the filter is applied in the SQL query
…ter application. - Removed unused imports of struct - Adjusted the search method call to remove the variable that receives the result - Retained the assertion check in mock_cursor.execute to verify that the filter is applied in the SQL query
…abase - Adds a guide to installing and using the AlibabaCloud MySQL database - Provides sample code for various connection methods, including standard connections, SSL connections, and connection string methods - Provides a detailed list of configuration parameters and their default values - Introduces database features, such as native vector support, HNSW indexes, and various distance functions - Explains prerequisites and connection string formats - Explains distance functions and performance tuning parameters - Describes error handling mechanisms
…abase - Adds a guide to installing and using the AlibabaCloud MySQL database - Provides sample code for various connection methods, including standard connections, SSL connections, and connection string methods - Provides a detailed list of configuration parameters and their default values - Introduces database features, such as native vector support, HNSW indexes, and various distance functions - Explains prerequisites and connection string formats - Explains distance functions and performance tuning parameters - Describes error handling mechanisms
|
@parshvadaftari Could you please review the code? our customers are waiting to use mem0 to access RDS MySQL. |
Description
AlibabaCloud RDS MySQL recently released native vector capabilities, See the release notes here. enabling efficient storage and similarity search of high-dimensional vectors directly within MySQL databases. This commit integrates this new vector feature into the mem0 project to provide seamless support for AlibabaCloud MySQL Vector stores.
The implementation includes:
The implementation leverages AlibabaCloud RDS MySQL's native vector capabilities including HNSW vector indexing, VEC_FromText functions, and VEC_DISTANCE operations. It supports advanced features like SSL connections, connection string parsing, and both euclidean and cosine distance functions, making it a robust choice for production vector storage needs.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Please delete options that are not relevant.
Test Details:
tests/vector_stores/test_aliyun_mysql.py(244 lines)Checklist: