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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/hnswlib/version.rb +1 -1
- data/sig/hnswlib.rbs +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33dd2f9cd8656dfe469b4b9baf319ae4e0b78826dec58da8ae78516077a6fbc2
|
4
|
+
data.tar.gz: ad32e54a325136587ae12716243b88ed1269c7bc9cd4e92e9aa8896b2517d4d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 361822ebf216d8f8ba3abf8314e52b1a72887fb2a03aea29572940376326b128442fc007fa7de6a6e925facb0b9295076fb10a98ff053aad7e0fbe41e4973c2a
|
7
|
+
data.tar.gz: 38f9f4b10665d9e87940b23fae51a15640229367f6bb74a7dba176bab6e798c8fad8abce106c07e38e0acc9046949f80208f9f9b30e3341aceb5a6193dac3aca
|
data/CHANGELOG.md
CHANGED
data/lib/hnswlib/version.rb
CHANGED
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.
|
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-
|
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:
|