tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
9.54k stars 252 forks source link

vector search: full support all column types #1661

Closed sivukhin closed 1 month ago

sivukhin commented 1 month ago

Context

This PR implement full set of operations for 1bit and f64 vector data types. This includes:

Also, this PR changes the behaviour of vectorTT functions - before they returned binary blob as is which is weird (for example, vector64(vector32('[1]')) returned binary blob corresponding to vector32. This PR changes this behaviour and implement proper conversion between vector types - so now vectorTT always returns vector of the specified type

Changes