- Improved support for Postgres arrays
- Added experimental support for MariaDB 11.7
- Dropped experimental support for MariaDB 11.6 Vector
- Added experimental support for SQLite (sqlite-vec)
- Added experimental support for MariaDB 11.6 Vector
- Added experimental support for MySQL 9
- Changed
normalize
option to use Active Record normalization - Fixed connection leasing for Active Record 7.2
- Dropped support for Active Record < 7
- Added
rrf
method
- Fixed error with
nil
values
- Added
precision
option - Added support for
bit
dimensions to model generator - Fixed error with Numo arrays
- Added support for
halfvec
andsparsevec
types - Added support for
taxicab
,hamming
, andjaccard
distances withvector
extension - Added deserialization for
cube
andvector
columns withouthas_neighbor
- Added support for composite primary keys
- Changed
nearest_neighbors
to replace previousorder
scopes - Changed
normalize
option to usebefore_save
callback - Changed dimensions and finite values checks to use Active Record validations
- Fixed issue with
nearest_neighbors
scope overridingselect
values - Removed default attribute name
- Dropped support for Ruby < 3.1
- Added deprecation warning for
has_neighbors
without an attribute name - Added deprecation warning for
nearest_neighbors
without an attribute name
- Added support for passing multiple attributes to
has_neighbors
- Fixed error with
nearest_neighbors
scope with Ruby 3.2 and Active Record 6.1
- Dropped support for Ruby < 3 and Active Record < 6.1
- Added support for dimensions to model generator
- Added support for configurable attribute name
- Added support for multiple attributes per model
- Added support for Active Record 7
- Added support for pgvector
- Added
normalize
option - Made
dimensions
optional - Raise an error if
nearest_neighbors
already defined - Raise an error for non-finite values
- Fixed NaN with zero vectors and cosine distance
Breaking changes
- The
distance
option has been moved fromhas_neighbors
tonearest_neighbors
, and there is no longer a default
- Added
nearest_neighbors
scope
- Fixed
Could not dump table
error
- First release