yahoojapan / NGT

Nearest Neighbor Search with Neighborhood Graph and Tree for High-dimensional Data
Apache License 2.0
1.22k stars 112 forks source link

Is there an interface that supports returning the number of vectors? #122

Closed lefeiwang closed 1 year ago

masajiro commented 1 year ago

For C++, getNumberOfIndexedObjects is the function to get the number of the indexed vectors. get_num_of_objects is for python.

lefeiwang commented 1 year ago

For C++, getNumberOfIndexedObjects is the function to get the number of the indexed vectors. get_num_of_objects is for python.

Is there an interface for golang calls?

masajiro commented 1 year ago

There is no interface for golang. However, I can provide the C API instead of that, if it is helpful.

lefeiwang commented 1 year ago

There is no interface for golang. However, I can provide the C API instead of that, if it is helpful.

If you have time, please help provide the C API.

masajiro commented 1 year ago

I have released NGT v1.14.8 with the interface that you requested.

lefeiwang commented 1 year ago

I have released NGT v1.14.8 with the interface that you requested.

Problem solved, thank you very much.