Skip to content

Encounter a problem while running the ACORN example. #2

@AdeelAslamUnimore

Description

@AdeelAslamUnimore

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions