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

Encounter a problem while running the ACORN example. #2

Open
AdeelAslamUnimore opened this issue Jul 1, 2024 · 1 comment
Open

Comments

@AdeelAslamUnimore
Copy link

AdeelAslamUnimore commented Jul 1, 2024

Hi,
I encounter a problem while running the ACORN example.

Example Code Missing metadata Parameter in IndexACORNFlat Constructor

Description:
The provided example for IndexACORNFlat is missing the required std::vector<int>& metadata parameter.

The example should initialize the IndexACORNFLAT:

std::vector<int> metadata.............; 
faiss::IndexACORNFlat acorn_gamma(d, M, gamma,  metadata, M_beta);

instead of.
faiss::IndexACORNFlat acorn_gamma(d, M, gamma, M_beta);

Error encountered:
Without metadata, the example does not compile.

Request:
Would it be possible to update the complete example using random values instead of the fvecs file? This would greatly help in making the example more understandable. Thank you for being so considerate!

@gongyguo
Copy link

gongyguo commented Aug 7, 2024

I have similar questions, could you provide a simple and complete example for testing? Also, I noticed that the metadata is constructed by using 1D vector, can you provide some instructions on how to deal with higher dimensional Structured Data, such as datasets like LAION and Tripclick? Thanks for your help!

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