Skip to content

Commit a97ec89

Browse files
authored
Merge pull request #207 from nmslib/develop
Merge develop to master
2 parents 1038a31 + aefeaec commit a97ec89

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Index methods:
6363

6464
* `set_num_threads(num_threads)` set the default number of cpu threads used during data insertion/querying.
6565

66-
* `get_items(ids)` - returns a numpy array (shape:`N*dim`) of vectors that have integer identifiers specified in `ids` numpy vector (shape:`N`).
66+
* `get_items(ids)` - returns a numpy array (shape:`N*dim`) of vectors that have integer identifiers specified in `ids` numpy vector (shape:`N`). Note that for cosine similarity it currently returns **normalized** vectors.
6767

6868
* `get_ids_list()` - returns a list of all elements' ids.
6969

@@ -197,6 +197,7 @@ https://github.com/dbaranchuk/ivf-hnsw
197197
* Go implementation: https://github.com/Bithack/go-hnsw
198198
* Python implementation (as a part of the clustering code by by Matteo Dell'Amico): https://github.com/matteodellamico/flexible-clustering
199199
* Java implementation: https://github.com/jelmerk/hnswlib
200+
* Java bindings using Java Native Access: https://github.com/stepstone-tech/hnswlib-jna
200201
* .Net implementation: https://github.com/microsoft/HNSW.Net
201202

202203
### Contributing to the repository

python_bindings/bindings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ class Index {
244244
return data;
245245
}
246246

247-
std::vector<unsigned int> getIdsList() {
247+
std::vector<hnswlib::labeltype> getIdsList() {
248248

249-
std::vector<unsigned int> ids;
249+
std::vector<hnswlib::labeltype> ids;
250250

251251
for(auto kv : appr_alg->label_lookup_) {
252252
ids.push_back(kv.first);

0 commit comments

Comments
 (0)