Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: reconstruct API #91

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

laptou
Copy link

@laptou laptou commented Feb 15, 2025

This branch includes the changes from #90, so please merge that one first.

I added support for Index::reconstruct and Index::reconstruct_n for reconstructing the original vector from the index. This is useful for my particular use case where I am bringing my own clusterer instead of using FAISS' k-means (which is actually a partitioner, not a clusterer).

I have some questions about the design of the code. Here, you defined a macro impl_native_index!, but then here and here and here and here it looks like you copy pasted the code instead of using the macro. I copy pasted my changes as well, so as to be minimally invasive, but I am wondering, why did you do that?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant