hnswlib 0.5.3 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +2 -2
- data/ext/hnswlib/hnswlibext.cpp +1 -2
- data/ext/hnswlib/hnswlibext.hpp +568 -576
- data/ext/hnswlib/src/bruteforce.h +5 -1
- data/ext/hnswlib/src/hnswalg.h +8 -7
- data/lib/hnswlib/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc8a40172623a3439b17c8b1854017c845bf4dc23f4e1714e9427e4b6b701c9b
|
4
|
+
data.tar.gz: 95fa48d791f000bf48809e7067efaba9a654ab0dd517c626f689c66af3668d0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07c449031cc7afbf80803ae15c8094589a146b59b1852ea72e88fcd39067def572bbdd58277e3a85c47c537e8dc6eef645f9f404a2b874e4e217b559adc38054
|
7
|
+
data.tar.gz: 4b71a7f4fe0ffb3c15124e32c9c8fbba9eb6f82e6f0b95f5d91dd35c6b10be8aeba25d7313eabeaa5078b051b3410195415843ecd600b58ec1b0b36532b7ae1d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
## [0.6.2] - 2022-06-25
|
2
|
+
|
3
|
+
- Refactor codes and configs with RuboCop and clang-format.
|
4
|
+
- Change to raise ArgumentError when non-array object is given to distance method.
|
5
|
+
|
6
|
+
## [0.6.1] - 2022-04-30
|
7
|
+
|
8
|
+
- Change the `search_knn` method of `BruteforceSearch` to output warning message instead of rasing RuntimeError
|
9
|
+
when the number of search results is less than the requested number of neighbors.
|
10
|
+
- Fix to raise RuntimeError when failing to open file on the `load_index` method of `BruteforceSearch`.
|
11
|
+
- Add guard to not free unallocated memory space.
|
12
|
+
|
13
|
+
## [0.6.0] - 2022-04-16
|
14
|
+
|
15
|
+
**Breaking change:**
|
16
|
+
|
17
|
+
- Change the `search_knn` method of `HierarchicalNSW` to output warning message instead of rasing RuntimeError
|
18
|
+
when the number of search results is less than the requested number of neighbors.
|
19
|
+
|
1
20
|
## [0.5.3] - 2022-03-05
|
2
21
|
|
3
22
|
- Add error handling for std::runtime_error throwed from hnswlib.
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[![Build Status](https://github.com/yoshoku/hnswlib.rb/actions/workflows/build.yml/badge.svg)](https://github.com/yoshoku/hnswlib.rb/actions/workflows/build.yml)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/hnswlib.svg)](https://badge.fury.io/rb/hnswlib)
|
5
5
|
[![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://github.com/yoshoku/hnswlib.rb/blob/main/LICENSE.txt)
|
6
|
-
[![Documentation](
|
6
|
+
[![Documentation](https://img.shields.io/badge/api-reference-blue.svg)](https://yoshoku.github.io/hnswlib.rb/doc/)
|
7
7
|
|
8
8
|
Hnswlib.rb provides Ruby bindings for the [Hnswlib](https://github.com/nmslib/hnswlib)
|
9
9
|
that implements approximate nearest-neghbor search based on
|
@@ -71,4 +71,4 @@ The gem is available as open source under the terms of the [Apache-2.0 License](
|
|
71
71
|
|
72
72
|
Bug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/hnswlib.rb.
|
73
73
|
This project is intended to be a safe, welcoming space for collaboration,
|
74
|
-
and contributors are expected to adhere to the [Contributor Covenant](
|
74
|
+
and contributors are expected to adhere to the [Contributor Covenant](https://contributor-covenant.org) code of conduct.
|
data/ext/hnswlib/hnswlibext.cpp
CHANGED
@@ -20,8 +20,7 @@
|
|
20
20
|
|
21
21
|
VALUE rb_mHnswlib;
|
22
22
|
|
23
|
-
extern "C"
|
24
|
-
void Init_hnswlibext(void) {
|
23
|
+
extern "C" void Init_hnswlibext(void) {
|
25
24
|
rb_mHnswlib = rb_define_module("Hnswlib");
|
26
25
|
RbHnswlibL2Space::define_class(rb_mHnswlib);
|
27
26
|
RbHnswlibInnerProductSpace::define_class(rb_mHnswlib);
|