-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support remapping for IVF_FLAT, IVF_PQ and IVF_SQ #2708
base: main
Are you sure you want to change the base?
Conversation
prepare for supporting remap for new vector index format, HNSW remap not supported because simply mapping the row ids could break the connectivity of graph Signed-off-by: BubbleCal <[email protected]>
Signed-off-by: BubbleCal <[email protected]>
Signed-off-by: BubbleCal <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2708 +/- ##
==========================================
+ Coverage 78.45% 78.52% +0.07%
==========================================
Files 244 244
Lines 84554 84770 +216
Branches 84554 84770 +216
==========================================
+ Hits 66333 66568 +235
+ Misses 15418 15363 -55
- Partials 2803 2839 +36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@BubbleCal I've marked this as draft, since I'm assuming it is not ready for review. (There are no unit tests.) Mark it as ready for review when it is ready. |
…ctor-index Signed-off-by: BubbleCal <[email protected]>
Signed-off-by: BubbleCal <[email protected]>
Signed-off-by: BubbleCal <[email protected]>
Signed-off-by: BubbleCal <[email protected]>
Signed-off-by: BubbleCal <[email protected]>
Signed-off-by: BubbleCal <[email protected]>
Signed-off-by: BubbleCal <[email protected]>
Signed-off-by: BubbleCal <[email protected]>
lance_io::ReadBatchParams::RangeFull, | ||
4096, | ||
16, | ||
projection, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need the part_id
in batch, just don't read it to save resources
Signed-off-by: BubbleCal <[email protected]>
@@ -134,6 +135,10 @@ impl IvfSubIndex for FlatIndex { | |||
Ok(Self {}) | |||
} | |||
|
|||
fn remap(&self, _: &HashMap<u64, Option<u64>>) -> Result<Self> { | |||
Ok(self.clone()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: let's add a warning log here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh w8, we should remap sub index here no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for v3 we need to remap the subindex & vector storage. flat index doesn't contain anything so it simply returns itself here
not support IVF_HNSW_* index yet