Skip to content

Feature: Allow uint32/uint40 key types in Python library #601

@frank-lsf

Description

@frank-lsf

Describe what you are looking for

Currently in the Python library, the key type is hard-coded as uint64:

https://github.com/unum-cloud/usearch/blob/main/python/usearch/index.py#L72

It seems difficult to use uint32 as keys for an index. I have billions of vectors, so a smaller key would help a lot with saving space and memory.

Can you contribute to the implementation?

  • I can contribute

Is your feature request specific to a certain interface?

Python bindings

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions