Commit a51585e
[8.2] [MOD-10236] Add serialization to SVS index (#782)
[MOD-10236] Add serialization to SVS index (#716)
* generalize
* remove serializer.cpp from cmake
* prepare merge with rafik commit
* [SVS] Implement Save/Load + test
* seperate hnsw_serializer to h and cpp
* remove get version impl
* save impl
* add load
* change camelcase
* for mat
* generalzie saveIndexFields
* format
* compare metadata on load
* Add checkIntegrity with error
* checkIntegrity
* remove duplicate verification in compare meta data
* format
* svs serializetion version testing
* Revert "svs serializetion version testing"
This reverts commit 9ed7730.
* common serializer test
* remove changes_num from metadata
* Add location c'tor
* Add location ctor and to test
* Remove outdated comment from serializer header
* Enhance documentation for loadIndex function in SVSIndex
* Add comments
* format + remove test
* enable tests
* serializer test
* format
* reset SVS to master
* add logging to test_svs
* format
* remove duplicate NewIndexImpl
* expose loadIndex in VecSimIndex, add BUILD_TEST gurad
* remove string ctor from SVSIndex
* format
* fix BUILD_TEST in svs_factory
* document loadIndex
* move loadIndex to serializer
* remove excess declarations
* remove extra ;
* compatable -> compatible
* remove redundant params from test
* remove comments from threadpool_handle
* remove error context comments
* add checkIntegrity
* update checkIntegrity and format
* move loadIndex to SVSSerializer
* update bindings
* format
* add test
* add single
* adjust labels
* Refactor save_load test to simplify vector generation logic
* add HAVE_SVS guard
* Add missing include for <sstream> in svs_serializer.h
* free faulty index
* Free index
* Improve error message for index loading failure in NewIndex function
* format
---------
Co-authored-by: Rafik Saliev <rafik.f.saliev@intel.com>1 parent 2ee1e15 commit a51585e
File tree
24 files changed
+1216
-378
lines changed- src
- VecSim
- algorithms
- hnsw
- svs
- containers
- index_factories
- utils
- python_bindings
- tests/unit
24 files changed
+1216
-378
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
2355 | 2356 | | |
2356 | 2357 | | |
2357 | 2358 | | |
2358 | | - | |
| 2359 | + | |
2359 | 2360 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
Lines changed: 19 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
12 | 11 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 12 | + | |
28 | 13 | | |
| 14 | + | |
29 | 15 | | |
30 | 16 | | |
31 | | - | |
32 | | - | |
| 17 | + | |
33 | 18 | | |
34 | | - | |
| 19 | + | |
| 20 | + | |
35 | 21 | | |
36 | 22 | | |
37 | | - | |
38 | | - | |
| 23 | + | |
| 24 | + | |
39 | 25 | | |
40 | 26 | | |
41 | | - | |
| 27 | + | |
42 | 28 | | |
43 | 29 | | |
44 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments