Reconstructing all vectors with Arbitrary ID mapping #3560
Unanswered
Isaac-the-Man
asked this question in
Q&A
Replies: 2 comments
-
Please use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the quick response, I'd still like to know if there is any way to bypass ID Mapping and call all the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
How do I reconstruct all vectors from an Index with ID mapping enabled? The IDs are non-contiguous arbitrary integers in my case, and calling
reconstruct_n(0, index.ntotal)
throws a Fatal Python Error which I assume is because faiss is reconstructing the vectors based on my non-contiguous ID mapping.If I understand this correctly, I should be able to get pass the ID maps and call
reconstruct_n
directly on the Index, which I assume still uses incremental IDs starting at 0.I'm aware that I can always loop through the IDs and call
reconstruct
on each item, but I believe there must be a better way?Platform
OS:
Faiss version:
Installed from:
Faiss compilation options:
Running on:
Interface:
Reproduction instructions
Beta Was this translation helpful? Give feedback.
All reactions