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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfe29cb17343b0e602684976fa3bd91a9756226e42fdaedded8398e8d97dc83d
4
- data.tar.gz: 5b1fca956e5a4bb3e28b46dd891f969a4dbfe7b1f03295657322ffc77b089595
3
+ metadata.gz: fc8a40172623a3439b17c8b1854017c845bf4dc23f4e1714e9427e4b6b701c9b
4
+ data.tar.gz: 95fa48d791f000bf48809e7067efaba9a654ab0dd517c626f689c66af3668d0e
5
5
  SHA512:
6
- metadata.gz: 213e43f294b0c6e306aef4a700df4b733b1cbd40253a61d91b15b272b7f0e2b095a5eebc79efb5d5d8af8b01048752a87bad4f610b528d49c1809d09e8e9c51b
7
- data.tar.gz: 2cffaef5381339dd85d8ad93aff9bf1e3ac271a7797b9e5a8c6122836d3401da17380f31db6594577d5412a0c1372609ed3e3b717c401b603370113d8d811e05
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](http://img.shields.io/badge/api-reference-blue.svg)](https://yoshoku.github.io/hnswlib.rb/doc/)
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](http://contributor-covenant.org) code of conduct.
74
+ and contributors are expected to adhere to the [Contributor Covenant](https://contributor-covenant.org) code of conduct.
@@ -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);