Skip to content

About interface #146

Open
Open
@orrorcol

Description

@orrorcol

I'm integrating hnswlib into my own code, I have the following suggestions:

  1. I think that the data passed to addPoint should be const void * .

void addPoint(void *data_point, labeltype label) {

  1. I think that searchKnn shuld first check if the "container" is empty, in wich case a search may result in a core dump.
    std::priority_queue<std::pair<dist_t, tableint>> searchKnnInternal(void *query_data, int k) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions