mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-04 17:04:18 +01:00
This patch adds some libSQL vector extension functions such as `vector()` and `vector_distance_cos()`, which can be used for exact nearest neighbor search as follows: ``` limbo> SELECT embedding, vector_distance_cos(embedding, '[9, 9, 9]') ...> FROM movies ORDER BY vector_distance_cos(embedding, '[9, 9, 9]'); [4, 5, 6]|0.013072490692138672 [1, 2, 3]|0.07417994737625122 ```
17 lines
313 B
TOML
17 lines
313 B
TOML
[package]
|
|
name = "limbo_vector"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "lib"]
|
|
|
|
[features]
|
|
static= [ "limbo_ext/static" ]
|
|
|
|
[dependencies]
|
|
limbo_ext = { path = "../core", features = ["static"] }
|