Skip to content

refactor(core): align layout with zvec - #32

Merged
zhenghaoz merged 1 commit into
mainfrom
refactor/zvec-core-layout
Aug 24, 2026
Merged

refactor(core): align layout with zvec#32
zhenghaoz merged 1 commit into
mainfrom
refactor/zvec-core-layout

Conversation

@zhangzhenghao

Copy link
Copy Markdown
Collaborator

Summary

  • move the cohesive vector index implementation into internal/core/algorithm
  • rename implementation and test files to follow Alibaba zvec src/core terminology
  • update internal consumers and examples to use the new package path
  • keep internal/core/metric as the existing independent leaf package

The implementation remains a single Go package because DiskANN, Vamana, HNSW variants, IVF, quantizers, and query utilities currently share private representations and helpers. This keeps the change behavior-preserving without exposing implementation details solely to force package boundaries.

Verification

  • go list ./internal/core/...
  • go test ./internal/core/...
  • go test ./...
  • go test -race ./...
  • go vet ./...
  • git diff --check

@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.79%. Comparing base (17cad6e) to head (8b64616).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #32      +/-   ##
==========================================
+ Coverage   82.78%   82.79%   +0.01%     
==========================================
  Files         118      118              
  Lines       25089    25089              
==========================================
+ Hits        20769    20773       +4     
+ Misses       4320     4316       -4     

☔ View full report in Codecov by Harness.
📢 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.

@zhenghaoz
zhenghaoz merged commit d3241bd into main Aug 24, 2026
7 checks passed
@zhenghaoz
zhenghaoz deleted the refactor/zvec-core-layout branch August 24, 2026 14:49
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