Skip to content

use 64-bit dim-id for storing sparse vectors - #5687

Merged
agourlay merged 6 commits into
devfrom
64-bit-sparse-vector-storage
Jan 7, 2025
Merged

agourlay merged 6 commits into
devfrom
64-bit-sparse-vector-storage

Conversation

@generall

Copy link
Copy Markdown
Member

Eventually we want to allow 64bit DimId for sparse vectors. This is one of the steps towards.

@generall
generall requested a review from agourlay December 22, 2024 00:12
@generall

Copy link
Copy Markdown
Member Author

ToDo: do we need to regen storage compatibility?

@generall

Copy link
Copy Markdown
Member Author

Also todo: maybe instead of bincode we do @xzfc 's bitpacking?

@generall

Copy link
Copy Markdown
Member Author

Another ToDo: maybe make compression in blob_storage optional, and rely on the "bitpacking" only

@generall

Copy link
Copy Markdown
Member Author

I haven't figure out how to replace bincode completely. But compression seems to work

@agourlay

agourlay commented Jan 6, 2025 •

Copy link
Copy Markdown
Member

I will run some benchmarks with realistic data to see how delta+bitpacking performs here.

The storage compatibility will have to be regen. also.

@agourlay
agourlay force-pushed the 64-bit-sparse-vector-storage branch from 9451036 to 44842bf Compare January 7, 2025 14:25
@agourlay

agourlay commented Jan 7, 2025

Copy link
Copy Markdown
Member

My criterion benchmark of the storage layer show that the new implementation is slightly faster than the compression based for reads and writes.

I will push a sanitized version of the benchmark which does not expose the internal compression scheme.

@agourlay

agourlay commented Jan 7, 2025 •

Copy link
Copy Markdown
Member

I will regen the storage compat for the upcoming v1.12.6 and merge right after to not block other PRs.

@agourlay
agourlay merged commit b5edc90 into dev Jan 7, 2025
@agourlay
agourlay deleted the 64-bit-sparse-vector-storage branch January 7, 2025 20:45
timvisee pushed a commit that referenced this pull request Jan 8, 2025
* use 64-bit dim-id for storing sparse vectors

* allow to disable compression in blob storage

* use bitpack compression instead of lz4

* add basic bench for mmap sparse vector storage

* misc

* bump storage compat pre-release

---------

Co-authored-by: Arnaud Gourlay <[email protected]>
@timvisee timvisee mentioned this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants