hnswlib 0.8.0 → 0.8.1

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: b5b9bb4199b5f8632fe95367083d304c47588d32c7a278cf962fff2a21a1bcda
4
- data.tar.gz: be1988b82ab3dee3fcb0926746b20db29f9dfe7c50598c0bd096245454cf6d4f
3
+ metadata.gz: 33dd2f9cd8656dfe469b4b9baf319ae4e0b78826dec58da8ae78516077a6fbc2
4
+ data.tar.gz: ad32e54a325136587ae12716243b88ed1269c7bc9cd4e92e9aa8896b2517d4d2
5
5
  SHA512:
6
- metadata.gz: 7633712aadef67f78daa1e1d6d8534cf4f3d9e9f301b204df59b4f14f46bc8ffc33952a54d0e5ea5a66b5976bd0d27b532c9c922115baf974816fe7986de5739
7
- data.tar.gz: c2fde5d220d72920cfe23c7cfe8f9bdd01d6719ea6f3dba0eff07f76c6bf02cb498c9ea68ddae8c4236d94ea46ac0b2468bcf284be376a804580065754121937
6
+ metadata.gz: 361822ebf216d8f8ba3abf8314e52b1a72887fb2a03aea29572940376326b128442fc007fa7de6a6e925facb0b9295076fb10a98ff053aad7e0fbe41e4973c2a
7
+ data.tar.gz: 38f9f4b10665d9e87940b23fae51a15640229367f6bb74a7dba176bab6e798c8fad8abce106c07e38e0acc9046949f80208f9f9b30e3341aceb5a6193dac3aca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.8.1] - 2023-03-18
2
+
3
+ - Update the type declarations of HierarchicalNSW and BruteforceSearch along with recent changes.
4
+
1
5
  ## [0.8.0] - 2023-03-14
2
6
 
3
7
  **Breaking change:**
@@ -3,7 +3,7 @@
3
3
  # Hnswlib.rb provides Ruby bindings for the Hnswlib.
4
4
  module Hnswlib
5
5
  # The version of Hnswlib.rb you install.
6
- VERSION = '0.8.0'
6
+ VERSION = '0.8.1'
7
7
 
8
8
  # The version of Hnswlib included with gem.
9
9
  HSWLIB_VERSION = '0.7.0'
data/sig/hnswlib.rbs CHANGED
@@ -48,7 +48,7 @@ module Hnswlib
48
48
  def max_elements: () -> Integer
49
49
  def remove_point: (Integer idx) -> void
50
50
  def save_index: (String filename) -> void
51
- def search_knn: (Array[Float] arr, Integer k) -> [Array[Integer], Array[Float]]
51
+ def search_knn: (Array[Float] arr, Integer k, ?filter: Proc filter) -> [Array[Integer], Array[Float]]
52
52
  end
53
53
 
54
54
  class HierarchicalNSW
@@ -62,10 +62,14 @@ module Hnswlib
62
62
  def get_point: (Integer idx) -> Array[Float]
63
63
  def load_index: (String filename, ?allow_replace_deleted: (true | false) allow_replace_deleted) -> void
64
64
  def mark_deleted: (Integer idx) -> void
65
+ def unmark_deleted: (Integer idx) -> void
65
66
  def max_elements: () -> Integer
66
67
  def resize_index: (Integer new_max_elements) -> void
67
68
  def save_index: (String filename) -> void
68
- def search_knn: (Array[Float] arr, Integer k) -> [Array[Integer], Array[Float]]
69
+ def search_knn: (Array[Float] arr, Integer k, ?filter: Proc filter) -> [Array[Integer], Array[Float]]
69
70
  def set_ef: (Integer ef) -> void
71
+ def get_ef: () -> Integer
72
+ def ef_construction: () -> Integer
73
+ def m: () -> Integer
70
74
  end
71
75
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hnswlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-14 00:00:00.000000000 Z
11
+ date: 2023-03-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Hnswlib.rb provides Ruby bindings for the Hnswlib.
14
14
  email: