feat: support subindex on ExactNNSearch#1617
Conversation
Signed-off-by: maxwelljin2 <gejin@berkeley.edu>
Signed-off-by: maxwelljin2 <gejin@berkeley.edu>
Signed-off-by: maxwelljin2 <gejin@berkeley.edu>
|
This PR introduces support for sub-indexing in the exactNNSearch by enabling nested documents. Here's a summary of the changes:
|
JoanFM
left a comment
There was a problem hiding this comment.
what happens when I call persist, does it persist and reload all the subindices?
|
I'll take a look on that. All doc contents should be persist. If the load_binary function call the initialization, it should reconstruct subindices. I'll try some examples |
And test it |
Signed-off-by: maxwelljin2 <gejin@berkeley.edu>
|
This new commit supports the persist storage on subindex document and includes the relevant test. |
| my_tens: NdArray[30] | ||
|
|
||
|
|
||
| def test_subindex_index(tmp_path): |
There was a problem hiding this comment.
I think we should also check that find and find_subindex work
There was a problem hiding this comment.
Sure, I'll add that
Signed-off-by: maxwelljin2 <gejin@berkeley.edu>
Currently, the subindex feature is not available on exact in-memory NNIndexer. This PR aims to support nested documents for ExactNNIndexer