devilsberg/laravel-mariadb-vector
MariaDB 11.7+ native vector storage and similarity search for Laravel. Adds a VECTOR column type, binary-safe Eloquent casts, and nearestNeighbors() query macros powered by VEC_DISTANCE functions — essentially pgvector, but for MariaDB.
Laravel MariaDB Vector brings native vector storage and similarity search to Laravel, powered by MariaDB 11.7+'s VECTOR type and VEC_DISTANCE_* functions. It's the MariaDB equivalent of pgvector — with migration blueprints, binary-safe Eloquent casting, and query macros for ANN search.
vector() and vectorIndex() schema builders for migrationsnearestNeighbors() macro with cosine, euclidean, and dot-product distancesscore column on results for ranking similarity (0–1)Requires PHP 8.4+, Laravel 12+, and MariaDB 11.7+.
How can I help you explore Laravel packages today?