mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 03:54:21 +01:00
This PR provides Euclidean distance support for limbo's vector search. At the same time, some type abstractions are introduced, such as `DistanceCalculator`, etc. This is because I hope to unify the current vector module in the future to make it more structured, clearer, and more extensible. While practicing Euclidean distance for Limbo, I discovered that many checks could be done using the type system or in advance, rather than waiting until the distance is calculated. By building these checks into the type system or doing them ahead of time, this would allow us to explore more efficient computations, such as automatic vectorization or SIMD acceleration, which is future work. Reviewed-by: Nikita Sivukhin (@sivukhin) Closes #1986