Skip to content

Index map #3

@matsui528

Description

@matsui528

Currently, an index for each item is automatically assigned sequentially. With a wrapper with an index mapper, any index can be assigned for each item, e.g.:

e = rii.RiiIDMap(codec)
vecs = np.random.random((3, D)).astype(np.float32)
ids = [1254, 23, 445]
e.add_configure(vecs=X, ids=ids)

This will support a remove function as well.

e.remove(id=23)

Ref: https://github.com/facebookresearch/faiss/wiki/Pre--and-post-processing#the-indexidmap

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions