Skip to content

Reader::iter may return vectors with the wrong dimensions #152

Description

@dureuill

When:

  • The dimensions is not a multiple of 64
  • The distance is binary quantized (tested with BinaryQuantizedCosine, might reproduce with other distances)
  • Then Reader::iter returns vectors with a dimension rounded up to the next multiple of 64.

User workaround:

  • truncate any obtained vector to the dimensions of the reader.

Note: hannoy has the same issue: nnethercott/hannoy#78

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