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

[question] Do I need to recreate the vec table after changing distance_metric #155

Open
arkohut opened this issue Dec 11, 2024 · 3 comments

Comments

@arkohut
Copy link

arkohut commented Dec 11, 2024

The default distance_metric is l2_distance which is not the one using for embedding. I need to change it to distance_metric=cosine.

How to migrate this change and minimize the impact? Can I save the existing vector data?

@markuswustenberg
Copy link

I'm in the same boat. I think we/you could just create a new table with the other distance metric, do a insert into new_table select * from old_table, and it's good? I'm going to try this.

@markuswustenberg
Copy link

I think that may work, as long as the old table isn't dropped and the new one renamed. I'm getting an SQL logic error in that case. Maybe renaming on virtual tables isn't supported?

@arkohut
Copy link
Author

arkohut commented Dec 23, 2024

#125

And there is also other issues I encountered: #154

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

No branches or pull requests

2 participants