Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move vector into core from extensions #902

Merged
merged 4 commits into from
Feb 6, 2025

Conversation

krishvishal
Copy link
Contributor

To make implementation of DiskANN in limbo easier, I'm moving vector from extensions to core.

Now vector related function are exposed via Function op code.

I've defined a new enum called VectorFunc to group the vector related functions.

The vector.test TCL test runs fine.

limbo>   SELECT vector_extract(vector('[]'));
[]
limbo> SELECT vector_extract(vector('  [  1  ,  2  ,  3  ]  '));
[1,2,3]
limbo> SELECT vector_extract(vector('[-1000000000000000000]'));
[-1000000000000000000]
limbo> SELECT vector_distance_cos(vector('[1,2,3]'), vector('[3,2,1]'));
0.2857142686843872

@penberg penberg merged commit 2546413 into tursodatabase:main Feb 6, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants