Skip to content

Report a bug about computing query norm in MIPS mode #16

Description

@HannanKan

for (uint32_t i = 0; i < this->data_dim; i++) {

loop condition should be
for (uint32_t i = 0; i < (this->data_dim-1); i++) {
this->data_dim is assigned at
this->data_dim = pq_file_dim;

and pq_file_dim is assigned at

get_bin_metadata(pq_table_bin, pq_file_num_centroids, pq_file_dim);

pq_file_dim is equal to number of dimensions of vectors in index file. However, In MIPS, original vectors are transformed with an additional dimension, which is sqrt(1-||x||/||w||). So vectors in index file are 1 more dimension than original vectors, whose number of dimensions are equal to queries'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions