QVAC-20631 feat: add TurboVec CPU vector index support#3292
Draft
dev-nid wants to merge 4 commits into
Draft
Conversation
- Add native vector index wrapper and Bare binding for IdMapIndex - Expose JS and TypeScript APIs for add/search/remove/persist flows - Add qvac-fabric overlay and integration coverage for the POC
- Point qvac-fabric overlay at the production turbovec branch - Update IdMapIndex API for q8/f32 storage and .tvim v2 persistence - Expand integration coverage for q8, f32, validation, and corrupt loads
- Update qvac-fabric overlay to the TurboVec production commit. - Add q4, mmap, compact, filtered search, prepared filters, IVF, and delta log APIs. - Harden native bindings for disposal, path handling, overflow checks, and typed-array validation. - Expand IdMapIndex integration coverage for persistence, filters, IVF, mmap, delta replay/compaction, and corrupt files.
Contributor
Review StatusCurrent Status: ❌ PENDING Pending reviews: Needs 1 Management or Team Lead, and 1 more from Management, Team Lead, or Member. |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What problem does this PR solve?
embed-llamacppdid not have TurboVec CPU support for embedding vector search. Consumers could generate embeddings, but there was no in-package API for indexing vectors, searching by stable external IDs, persisting indexes, replaying incremental updates, or using TurboVec CPU search paths.📝 How does it solve it?
IdMapIndexAPI for embedding vector search.ggml-vector-index.bitWidth: 4 | 8 | 32.uint64external IDs.addLogged,removeLogged,loadWithDelta, andcompactDelta.dispose()for indexes and filters.qvac-fabricoverlay to the TurboVec CPU-capable commit.🧪 How was it tested?
bare-make generatebare-make buildbare-make installbare test/integration/id-map-index.test.js --exitnpm run lintFocused IdMapIndex validation passed with the CPU TurboVec coverage for q4/q8/f32, filters, IVF, mmap, delta logs, and disposal behavior.