Replies: 1 comment 2 replies
|
hi, quick take. short reason: libsql itself does not provide a built in dot operator because vector math is usually handled by extensions or by the vector index layer, not by the core SQL engine. that design keeps the DB small and lets specialised extensions (pgvector, qdrant, etc) implement fast, numeric routines. what you can do now, pick one:
quick checks for you: if you want, paste one example row (sanitised) and i’ll give a minimal SQL snippet for computing dot over an array, or a tiny UDF you can drop into the DB. say "show snippet" and i’ll paste it. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I work with normalized vectors, so the dot product of two vectors is equivalent to their cosine similarity. I trying CF vectorize and Qdrant and both have that operation available. To my surprise, it seems the dot product isn't available in libsql. Why is the reason the simplest operation isn't supported?
All reactions