Commit graph

57 commits

Author SHA1 Message Date
Pekka Enberg
d8db724b07 core/vector: Improve error handling in vector_types.rs 2025-11-24 07:48:43 +02:00
Pekka Enberg
0b9382e3cf core/vector: Eliminate unwrap() calls from mod.rs
Instead of using registers_to_ref_values(), let's just pass a slice to
vector functions to eliminate bunch of unwraps.
2025-11-24 07:48:43 +02:00
pedrocarlo
505a6ba5ea convert vector functions to use AsValueRef 2025-11-11 16:11:46 -03:00
Nikita Sivukhin
fe974dd414 fix slice operation implementation 2025-11-05 20:44:43 +04:00
Nikita Sivukhin
10ead9f3b6 one more clippy fix 2025-10-21 21:10:58 +04:00
Nikita Sivukhin
792e0033ae fix tests and clippy 2025-10-21 21:03:45 +04:00
Nikita Sivukhin
2483d08bca do not allocate if possible 2025-10-21 16:28:00 +04:00
Nikita Sivukhin
948bd557cd use simsimd for dense operations 2025-10-21 14:59:01 +04:00
Nikita Sivukhin
427a145663 fmt 2025-10-14 22:22:14 +04:00
Nikita Sivukhin
9dac7e00ba relax check in the vector test
- fixes https://github.com/tursodatabase/turso/issues/3732
2025-10-14 22:19:19 +04:00
Nikita Sivukhin
51122d3e9c fix clippy 2025-10-10 11:39:06 +04:00
Nikita Sivukhin
7e727d07af fix bugs add tests 2025-10-09 23:23:16 +04:00
Nikita Sivukhin
10c51c8da0 add test for convert operation 2025-10-09 22:14:38 +04:00
Nikita Sivukhin
e18f26a1f1 fix bug after refactoring 2025-10-09 21:28:46 +04:00
Nikita Sivukhin
ac9a25a417 fix clippy 2025-10-09 21:19:35 +04:00
Nikita Sivukhin
5336801574 add jaccard distance 2025-10-09 21:15:39 +04:00
Nikita Sivukhin
585d11b736 implement operations for sparse vectors 2025-10-09 20:52:58 +04:00
Nikita Sivukhin
84643dc4f2 implement sparse vector operations 2025-10-09 19:19:33 +04:00
Nikita Sivukhin
1ebf2b7c8d add f32 sparse vector type 2025-10-09 17:25:40 +04:00
Nikita Sivukhin
9e68fa7f4a simplify vector_slice operation 2025-10-09 17:11:13 +04:00
Nikita Sivukhin
d7f3a450ad return Nan for cosine distance instead of error
- errors are hard to handle in case of some scan operations (something went wrong in the middle - whoe query aborted)
- it will be more flexibly if we will return NaN and let user handle situation
2025-10-09 17:06:49 +04:00
Nikita Sivukhin
14e104f830 add convert operation 2025-10-09 16:56:36 +04:00
Nikita Sivukhin
8584ee18a3 refactor parsing/deserialization 2025-10-09 16:36:39 +04:00
Nikita Sivukhin
a2f4376bd2 move more operations to the operations/ folder 2025-10-09 16:18:53 +04:00
Nikita Sivukhin
7e9e102f20 move vector operations under operations/ folder 2025-10-09 16:02:03 +04:00
Nikita Sivukhin
5b6e8e4b84 Float32/Float64 -> Float32Dense/Float64Dense 2025-10-09 13:28:40 +04:00
Mikaël Francoeur
2ee0132afe
rename functions 2025-08-15 17:08:53 -04:00
bit-aloo
86b72758ff
fix clippy 2025-07-31 20:51:43 +05:30
bit-aloo
a3d3a21030
allow empty vector blobs by removing is_empty check in vector_type 2025-07-31 20:24:59 +05:30
bit-aloo
78d291b73f
assert empty vector concat returns empty vector 2025-07-31 20:24:59 +05:30
bit-aloo
09542c9be0
ensure f64 slice view is properly aligned and sized 2025-07-31 20:24:59 +05:30
bit-aloo
6b7b1f43a4
ensure f32 slice view is properly aligned and sized 2025-07-31 20:24:59 +05:30
bit-aloo
1be93c8c18
skip invalid inputs in cosine distance prop test 2025-07-30 21:27:55 +05:30
bit-aloo
a828b9f29b
add start > end condition and corresponding test 2025-07-30 14:49:11 +05:30
bit-aloo
bf58ede567
make vectortype copy and cloned variant's accordingly 2025-07-30 14:28:15 +05:30
bit-aloo
44707495b9
add more test covering the edge cases 2025-07-30 14:19:37 +05:30
bit-aloo
6f45cb9770
update vector slice to adhere to start..end and not start, length 2025-07-30 14:10:43 +05:30
bit-aloo
c546261010
update as_int to return Option, instead of panicking. Update vector_slice and vector_concat accordingly 2025-07-30 13:54:55 +05:30
bit-aloo
96a99ca48a
rename subvector to vector_slice 2025-07-30 13:34:49 +05:30
bit-aloo
a5dce2b50b
add subvector execution flow 2025-07-30 09:51:08 +05:30
bit-aloo
c8ba6a7d49
update subvector implementation to make handle out of bound cases correctly and correctly parse the vector 2025-07-30 09:51:03 +05:30
bit-aloo
e4d79a6516
add vec_concat execution flow 2025-07-30 06:07:03 +05:30
bit-aloo
5a0622b937
add test for subvector method 2025-07-29 23:12:19 +05:30
bit-aloo
cae4ead606
add vector concat test 2025-07-29 23:10:48 +05:30
bit-aloo
0e6708575d
add vector subvector method 2025-07-29 22:58:08 +05:30
bit-aloo
3ca87a823f
add vector concat method 2025-07-29 22:57:49 +05:30
KaguraMilet
bd891d1cc9 modify based on review comments 2025-07-10 19:15:39 +08:00
KaguraMilet
566151c533 make clippy happy 2025-07-07 21:30:38 +08:00
KaguraMilet
ac95758f76 feat(vector): integrate euclidean distance into limbo 2025-07-07 21:11:51 +08:00
KaguraMilet
d49707a80d feat(vector): implement euclidean distance calculation 2025-07-07 21:11:51 +08:00