Skip to content

feat/diskann dynamic load#378

Open
richyreachy wants to merge 39 commits intoalibaba:mainfrom
richyreachy:feat/diskann_dynamic_load
Open

feat/diskann dynamic load#378
richyreachy wants to merge 39 commits intoalibaba:mainfrom
richyreachy:feat/diskann_dynamic_load

Conversation

@richyreachy
Copy link
Copy Markdown
Collaborator

Use dynamic loading to avoid environmental dependencies.

@richyreachy
Copy link
Copy Markdown
Collaborator Author

richyreachy commented Apr 29, 2026

cpp usage would be like:

#include <zvec/plugin/diskann_plugin.h>

if (zvec::IsLibAioAvailable()) {
    if (zvec::LoadDiskAnnPlugin() == zvec::kDiskAnnPluginOk) {
        // Now safe to create DiskAnnIndex / DiskAnnBuilder / DiskAnnStreamer.
    }
}

python usage would be like:

import zvec

if zvec.is_libaio_available():
    status = zvec.load_diskann_plugin()          
    assert status == zvec.DiskAnnPluginStatus.OK
  

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.

1 participant