libsql icon indicating copy to clipboard operation
libsql copied to clipboard

No such function: vector

Open filipjnc opened this issue 1 year ago • 5 comments

According to this post, libsql should have native support for vectors. However, when I try to insert a vector like described in the post via libsql client I get LibsqlError: SQLITE_ERROR: no such function: vector. Any advice?

Version: "@libsql/client": "^0.6.2"

filipjnc avatar Jun 21 '24 22:06 filipjnc

I am facing the same issue with Typescript. Were you able to find a solution?

lojik-ng avatar Jun 24 '24 00:06 lojik-ng

I am facing the same issue with Typescript. Were you able to find a solution?

Not yet, hoping for a hint from the community or the turso team.

filipjnc avatar Jun 26 '24 19:06 filipjnc

Did you create your db using:

turso group create default --version vector

or updated existing group using:

turso group update default --version vector

?

haaawk avatar Jun 27 '24 08:06 haaawk

@haaawk I didn't create it on turso but locally. Does this command apply locally as well?

filipjnc avatar Jun 29 '24 20:06 filipjnc

@haaawk I didn't create it on turso but locally. Does this command apply locally as well?

Not at the moment.

haaawk avatar Jul 04 '24 05:07 haaawk

The vector() function is now part of the Rust, JavaScript, and Python SDKs.

penberg avatar Jul 26 '24 09:07 penberg