You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be obvious to others but it might be worth mentioning in the docs that vec0 tables cannot be renamed.
I was trying to migrate an existing table to use sqlite-vec with the following migration script:
CREATE VIRTUAL TABLE new_item_embeddings USING vec0(
embedding FLOAT[1024]
);
INSERT INTO new_item_embeddings (rowid, embedding)
SELECT id, embedding FROM item_embeddings;
DROPTABLE item_embeddings;
ALTERTABLE new_item_embeddings RENAME TO item_embeddings;
However, trying to select or insert using that renamed table fails with an error like: Internal sqlite-vec error: could not initialize 'rowids get chunk position' statement.
This migration script works:
ALTERTABLE item_embeddings RENAME TO old_item_embeddings;
CREATE VIRTUAL TABLE item_embeddings USING vec0(
embedding FLOAT[1024]
);
INSERT INTO item_embeddings (rowid, embedding)
SELECT id, embedding FROM old_item_embeddings;
DROPTABLE old_item_embeddings;
The text was updated successfully, but these errors were encountered:
This might be obvious to others but it might be worth mentioning in the docs that vec0 tables cannot be renamed.
I was trying to migrate an existing table to use
sqlite-vec
with the following migration script:However, trying to select or insert using that renamed table fails with an error like:
Internal sqlite-vec error: could not initialize 'rowids get chunk position' statement
.This migration script works:
The text was updated successfully, but these errors were encountered: