Skip to content

[Feature] Add support for passing extra information with KNNVectorField #14247

Open
@navneet1v

Description

@navneet1v

Description

Currently KnnFloatVectorField(float/byte) supports only passing Vector information(which includes dim etc). But sometime you need to pass some more extra information with vector the vector field which will be helpful in building the efficient search data structures. A naive example for this can be a tenant id where you might want to cluster the points specific to a tenant in the hnsw graph.

The ask for this issue is to have a byte array/or some thing similar that can be passed with the vector field and can be made accessible at the KNNVectorsFormat level.

Alternatives

I tried passing the information in another field like a BinaryDocValues, but during indexing at the KNNVectorsFormat we don't have access to the BDV. If there is an alternative way to access which I might be missing, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions