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

Can the index file generated in version 1.7.4 be used in version 1.9.0 #4102

Closed
2 of 4 tasks
rose839 opened this issue Dec 19, 2024 · 2 comments
Closed
2 of 4 tasks
Assignees

Comments

@rose839
Copy link

rose839 commented Dec 19, 2024

Summary

I generated a vector index file using the following C++code on Faiss version 1.7.4:

faiss::IndexFlatL2 indexa = faiss::IndexFlatL2(d);
faiss::IndexIVFScalarQuantizer index = faiss::IndexIVFScalarQuantizer(&indexa,d,nlist,faiss::ScalarQuantizer::QuantizerType::QT_8bit); 

index.train(len,vdatas);
index.add(len,vdatas);

faiss::write_index(&index, "ivfsq8.index");

Can I load and use the generated index file "ivfsq8.index" on Faiss version 1.9.0?

Platform

OS: linux

Faiss version: 1.7.4 1.9.0

Installed from: compiled by myself

Faiss compilation options: ignore

Running on:

  • CPU
  • GPU

Interface:

  • C++
  • Python

Reproduction instructions

ignore

@mnorris11
Copy link

mnorris11 commented Dec 20, 2024

Hi @rose839, does this not work for you?

index_read and index_write should be backwards compatible. If a field is removed then it has to read/write a dummy, like in #3692.

@rose839
Copy link
Author

rose839 commented Dec 20, 2024

I did a simple test, it works between 1.7.4 and 1.9.0。Thank you very much。

@rose839 rose839 closed this as completed Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants