Skip to content

Commit 228f992

Browse files
committed
feat: add hnsw index.(create,get,del); node.(add,get,del); search.knn features
Signed-off-by: weedge <[email protected]>
1 parent 297be9f commit 228f992

File tree

5 files changed

+463
-10
lines changed

5 files changed

+463
-10
lines changed

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
MIT License
2+
13
Copyright (c) 2023 weedge <weege007 at gmail dot com>
24

35
Permission is hereby granted, free of charge, to any person obtaining a copy

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ make build_hnsw # build hnsw crate
99
make build_usearch # build usearch crate
1010
make build_faiss # build faiss crate
1111
make build
12-
DEBUG=1 # build debug variant
12+
RELEASE=1 # build release variant
1313

1414
make clean # remove binary files
1515
ALL=1 # remove binary directories
@@ -33,11 +33,11 @@ include $(MK)/rules
3333

3434
#----------------------------------------------------------------------------------------------
3535

36-
ifeq ($(DEBUG),1)
37-
TARGET_DIR=target/debug
38-
else
36+
ifeq ($(RELEASE),1)
3937
CARGO_FLAGS += --release
4038
TARGET_DIR=target/release
39+
else
40+
TARGET_DIR=target/debug
4141
endif
4242

4343
#----------------------------------------------------------------------------------------------

rust/hnsw/src/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Zhao Lang, 2023 weedge <weege007 at gmail dot com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)