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

Non-similar length vectors? #45

Closed
Hadryan opened this issue Dec 1, 2022 · 1 comment
Closed

Non-similar length vectors? #45

Hadryan opened this issue Dec 1, 2022 · 1 comment

Comments

@Hadryan
Copy link

Hadryan commented Dec 1, 2022

The vectors have arbitrary length, how to import them?

@ankane
Copy link
Member

ankane commented Dec 1, 2022

Hey @Hadryan, you can create a vector column without specifying the dimensions:

CREATE TABLE items (embedding vector);
INSERT INTO items VALUES ('[1,2]'), ('[4,5,6,7]');

However, you won't be able to add an approximate index to the column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants