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

Support vector index on multiple columns #8661

Open
nicktobey opened this issue Dec 10, 2024 · 0 comments
Open

Support vector index on multiple columns #8661

nicktobey opened this issue Dec 10, 2024 · 0 comments
Labels
enhancement New feature or request vectors

Comments

@nicktobey
Copy link
Contributor

Currently our vector index workflow is based on MariaDB, which defines vector indexes on a single column that contains the entire vector. We currently support vector indexes on JSON columns and plan to add support for a dedicated VECTOR type.

However, some vector datasets on HuggingFace take a different approach and store each dimension of the vector in a different float column. Importing these datasets into Dolt in a way that makes them indexible requires extra steps to convert the representation of the data.

But there's no reason why we shouldn't be able to support vector indexes on multiple float columns. For example:

CREATE TABLE test(pk int primary key, v0 float, v1 float, v2 float, v3 float);
CREATE INDEX vidx on TEST(v0, v1, v2, v3);
@timsehn timsehn added the enhancement New feature or request label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vectors
Projects
None yet
Development

No branches or pull requests

2 participants