Skip to content

Conversation

@meiravgri
Copy link
Collaborator

@meiravgri meiravgri commented Jan 12, 2026

Generalize the disk index creation API to support any disk-based algorithm.

Problem:

  • Disk metadata (storage, indexName) was embedded in VecSimHNSWDiskParams
  • Coupled disk infrastructure to HNSW algorithm only

Solution:

  • Introduce VecSimDiskContext for disk metadata (storage, indexName)
  • Introduce VecSimDiskParams wrapper that accepts any VecSimParams* + disk context
  • Remove VecSimHNSWDiskParams - use HNSWParams directly
  • Add TieredHNSWDiskParams to support Tiered HNSW Disk

VecSimHNSWDiskParams: replace hnsw alg parametrs with HNSWParams struct

introduce TieredHNSWDiskParams

have TieredHNSWDiskParams in the union of TieredIndexParams
void *storage; // Opaque pointer to disk storage
const char *indexName;
size_t indexNameLen;
void *logCtx;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

void *logCtx is in VecSimParams

@meiravgri meiravgri changed the title Meiravg_disk_index_params [MOD-13164] [MOD-13481] Jan 12, 2026
@meiravgri meiravgri changed the title [MOD-13164] [MOD-13481] [MOD-13164] [MOD-13481] Introduce VecSimParamsDisk Wrapper for Disk-Based Vector Indexes Jan 12, 2026
@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.09%. Comparing base (f5e69ac) to head (a2806dd).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #887      +/-   ##
==========================================
- Coverage   97.13%   97.09%   -0.05%     
==========================================
  Files         129      129              
  Lines        7615     7493     -122     
==========================================
- Hits         7397     7275     -122     
  Misses        218      218              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@meiravgri meiravgri requested a review from GuyAv46 January 12, 2026 17:00
@meiravgri meiravgri enabled auto-merge January 12, 2026 17:01
 typedef struct {
    void *storage; // Opaque pointer to disk storage
    const char *indexName;
    size_t indexNameLen;
} VecSimDiskContext;

split VecSimParamsDisk to:

typedef struct {
    VecSimParams *indexParams;
    VecSimDiskContext *diskContext;
} VecSimDiskParams;
@meiravgri meiravgri changed the title [MOD-13164] [MOD-13481] Introduce VecSimParamsDisk Wrapper for Disk-Based Vector Indexes [MOD-13164] [MOD-13481] Introduce VecSimDiskParams Wrapper for Disk-Based Vector Indexes Jan 13, 2026
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